psplink with eclipse problems

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
onkelbebu
Posts: 4
Joined: Sat Feb 14, 2009 12:02 am

psplink with eclipse problems

Post by onkelbebu »

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
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

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).
onkelbebu
Posts: 4
Joined: Sat Feb 14, 2009 12:02 am

Post by onkelbebu »

i have.

my compile switches are:
-O0 -g3 -fno-exceptions -fno-rtti
well i try without -g later when i am home.
onkelbebu
Posts: 4
Joined: Sat Feb 14, 2009 12:02 am

Post by onkelbebu »

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
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

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
onkelbebu
Posts: 4
Joined: Sat Feb 14, 2009 12:02 am

Post by onkelbebu »

well dude you are awesome!

i wnat to say thanks for your tools! you should really set up some kind of donation system!
Post Reply