| View previous topic :: View next topic |
| Author |
Message |
onkelbebu
Joined: 14 Feb 2009 Posts: 4
|
Posted: Sat Feb 14, 2009 12:35 am Post subject: psplink with eclipse problems |
|
|
Hi,
i have minpspw running with eclipse as ide. When i use psplink to debug my program, the variables always display 0;
i debugged the wlan example and on screen the mac address appeared right, but when single stepping no assigned var changed its value.
Anybody knows whats possibly wrong?
i am Vista 64 with minpspw 0.8.11 and already tried falling back to 0.8.9
wihtout var value debuggin makes no sense imho :S |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Sat Feb 14, 2009 3:19 am Post subject: |
|
|
| You probably need to specify no optimisation (use the -O0 switch when compiling), MIPS stuff can get fairly heavily optimised and local variables are in registers which confuses GDB (not PSPLink's fault, it just follows GDB's lead). |
|
| Back to top |
|
 |
onkelbebu
Joined: 14 Feb 2009 Posts: 4
|
Posted: Sat Feb 14, 2009 4:33 am Post subject: |
|
|
i have.
my compile switches are:
-O0 -g3 -fno-exceptions -fno-rtti
well i try without -g later when i am home. |
|
| Back to top |
|
 |
onkelbebu
Joined: 14 Feb 2009 Posts: 4
|
Posted: Sat Feb 14, 2009 7:25 am Post subject: |
|
|
when i hoover over an variable psp-debug prints out this:
Cannot access memory at address 0xbbbfe20
Cannot access memory at address 0xbbbfe10
Cannot access memory at address 0xbbbfe14 |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Sat Feb 14, 2009 2:20 pm Post subject: |
|
|
Okay then you are using a slim ;) There is a minor issue with the slim in that the gdb stub restricts reads to the lower 32MB of memory (hey I didn't know the slim would ever be released :P).
I refer you to http://forums.ps2dev.org/viewtopic.php?t=11006 for a fix :P |
|
| Back to top |
|
 |
onkelbebu
Joined: 14 Feb 2009 Posts: 4
|
Posted: Sun Feb 15, 2009 7:51 pm Post subject: |
|
|
well dude you are awesome!
i wnat to say thanks for your tools! you should really set up some kind of donation system! |
|
| Back to top |
|
 |
|