forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

psplink with eclipse problems

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
onkelbebu



Joined: 14 Feb 2009
Posts: 4

PostPosted: Sat Feb 14, 2009 12:35 am    Post subject: psplink with eclipse problems Reply with quote

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
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Sat Feb 14, 2009 3:19 am    Post subject: Reply with quote

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
View user's profile Send private message
onkelbebu



Joined: 14 Feb 2009
Posts: 4

PostPosted: Sat Feb 14, 2009 4:33 am    Post subject: Reply with quote

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
View user's profile Send private message
onkelbebu



Joined: 14 Feb 2009
Posts: 4

PostPosted: Sat Feb 14, 2009 7:25 am    Post subject: Reply with quote

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
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Sat Feb 14, 2009 2:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
onkelbebu



Joined: 14 Feb 2009
Posts: 4

PostPosted: Sun Feb 15, 2009 7:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group