Re: Very basic question
Re: Very basic question
- Subject: Re: Very basic question
- From: Jason Breckenridge <email@hidden>
- Date: Fri, 14 May 2010 18:16:44 +0100
Yes, I am able to debug normally. It stops at breakpoints as desired,I can view the values of variables, step into and out of functions, etc., but at each step GDB prints the message
Cannot access memory at address 0x0
as I previously mentioned. This message is printed whether I step in Xcode, or from the GDB console.
This is not a show-stopper, but I'm really puzzled as to the cause.
Thanks for your help,
Jason
On 13 May 2010, at 22:59, Xochitl Lunde wrote:
Are you meaning that you are able to
debug normally, but for some reason you get a message every time you step?
Or do you mean that you cannot debug and when you try to step you
get this message? Are you using Xcode to build your project or are
you building it on the command line using autotools, make, or something
similar?
Are you sure you're debugging the 'Debug'
build configuration and you aren't stripping your program? Xcode
will let you "debug" a Release build of a project, but the result
for me is that I can't really debug anything because the release is stripped.
Have you messed with the "Load Symbols Lazily" setting
in the Debugging section of Xcode preferences? In my project I need
to have that checked to be able to debug successfully, but the usual symptom
is that the program won't stop on breakpoints.
You can see all breakpoints by clicking
"Show Breakpoints" in the debugger window that opens with Command+Shift+Y.
You might have to make the window larger to see the "Show Breakpoints"
button to the right of the "Step Out" button on the top toolbar.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden