gdb Not Finding Source Code Initially
gdb Not Finding Source Code Initially
- Subject: gdb Not Finding Source Code Initially
- From: "Avery Nickelby" <email@hidden>
- Date: Sat, 6 Dec 2008 17:41:46 -0600
When I debug my app with Xcode, gdb is unable to find my source code initially.
Steps to reproduce:
1. Open project from Finder (Xcode is initially closed)
2. Run and debug (opening up the console)
I see this line: Warning - No location found for "AppController.m:41"
So I do this:
(gdb) show directories
Source directories searched: $cdir:$cwd
And then I do this:
And then launch the debugger again. This time the warning doesn't show up. I then do this:
^C
(gdb) info break
Num Type Disp Enb Address What
1 breakpoint keep y <PENDING> "AppController.m:41
2 breakpoint keep y <PENDING> "AppController.m:16
And then:
(gdb) cont
Continuing.
^C
(gdb) run
Starting program: /Users/amazing/Development/Builds/Debug/SpeakLine.app/Contents/MacOS/SpeakLine
Not executing.
(gdb) run
[Switching to process 297 local thread 0x3207]
Pending breakpoint 1 - ""AppController.m:41" resolved
Running…
Pending breakpoint 2 - ""AppController.m:16" resolved
2008-12-06 17:40:09.422 SpeakLine[297:813] init
Current language: auto; currently objective-c
Notice that it found the breakpoints after re-running it from the Console. How can I set up Xcode so that if finds my breakpoints right away?
Thanks!
Avery
_______________________________________________
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