• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
gdb Not Finding Source Code Initially
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

^C

(gdb) show directories

Source directories searched: $cdir:$cwd


And then I do this: 

(gdb) quit


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

  • Prev by Date: Re: Error after upgrading Xcode 3 to 3.1.2
  • Next by Date: Xcode and "subprojects"
  • Previous by thread: Re: Error after upgrading Xcode 3 to 3.1.2
  • Next by thread: Xcode and "subprojects"
  • Index(es):
    • Date
    • Thread