• 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: "J.P. Pellet" <email@hidden>
  • Date: Wed, 2 Apr 2008 23:48:43 +0200

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?

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:
@apple.com


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
  • Follow-Ups:
    • 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: Jean-Daniel Dupas <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>)

  • Prev by Date: Re: Xcode 3 custom install location vs Shared workgroup builds
  • Next by Date: followup to: broken ref lib: java api lookup fails in 2.5 on tiger
  • Previous by thread: Re: How does Xcode start gdb? (or: Why can't I locate breakpoints in Xcode?)
  • Next by thread: Re: How does Xcode start gdb? (or: Why can't I locate breakpoints in Xcode?)
  • Index(es):
    • Date
    • Thread