• 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
Re: How does Xcode start gdb? (or: Why can't I locate breakpoints in Xcode?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How does Xcode start gdb? (or: Why can't I locate breakpoints in Xcode?)


  • Subject: Re: How does Xcode start gdb? (or: Why can't I locate breakpoints in Xcode?)
  • From: Jim Ingham <email@hidden>
  • Date: Thu, 3 Apr 2008 11:06:01 -0700


On Apr 2, 2008, at 2:48 PM, J.P. Pellet wrote:

Jim,

Thanks for pointing this out. Yes, Load Symbols Lazily" is off. When attaching to the process, gdb does seem to load symbols. But trying to set any additional breakpoint tells me that no symbol table is loaded… Weird. Any other idea?


Not without more information. Can you turn on the Xcode/gdb log (in Xcode 3.0 there's a preference in the Debugging Pref Pane to do this) and file a bug with the log & some description of what you did? That might give us a little more to go on.


Jim


On 2 avr. 08, at 19:35, Jim Ingham wrote:
Did you try turning off "Load Symbols Lazily" in the Debugging Pref pane?

Jim

On Apr 2, 2008, at 8:27 AM, J.P. Pellet wrote:

I'm trying to debug a JNI plugin here. I use Eclipse for Java Rich Client Platform development and Xcode for the C/C++ JNI stuff. I can do the following: start debugging in Java, break on the first line of main(), go to a terminal, and type

$ gdb
...
(gdb) attach <javaprocesspid>

Then I can set breakpoints on the command line successfully, but I don't want to go through this terminal debugger. Therefore I set up a dummy executable in my Xcode project, uncheck "Start executable after starting debugger", start a debug session, and try to attach to the paused Java code. I can successfully attach, but if I then list my breakpoints with

(gdb) info break

I can see that they are all pending. I also cannot add any other, including the exact ones that I could add on the terminal gdb I used before.

How can I fix this? What does Xcode do to gdb such that it cannot find my breakpoints?

TIA,
J.P.
_______________________________________________
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


_______________________________________________ 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
References: 
 >How does Xcode start gdb? (or: Why can't I locate breakpoints in Xcode?) (From: "J.P. Pellet" <email@hidden>)
 >Re: How does Xcode start gdb? (or: Why can't I locate breakpoints in Xcode?) (From: Jim Ingham <email@hidden>)
 >Re: How does Xcode start gdb? (or: Why can't I locate breakpoints in Xcode?) (From: "J.P. Pellet" <email@hidden>)

  • Prev by Date: Debug and Profile Libraries for Mac OS X
  • Next by Date: zerolink bug in Xcode 2.5?
  • Previous by thread: Re: How does Xcode start gdb? (or: Why can't I locate breakpoints in Xcode?)
  • Next by thread: Xcode 3 custom install location vs Shared workgroup builds
  • Index(es):
    • Date
    • Thread