• 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: GDB problems and version
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GDB problems and version


  • Subject: Re: GDB problems and version
  • From: Jim Ingham <email@hidden>
  • Date: Thu, 16 Jul 2009 14:42:47 -0700


On Jul 16, 2009, at 2:36 PM, Christian Thalinger wrote:

Jim Ingham wrote:
Jonas is right, you should use "add-symbol-file" rather than "symbol-
file", that's true in both FSF & our gdb.  But Jonas is also right,
you shouldn't have to use either, gdb should find the symbols for
libraries as they get loaded.

The problem is that info sharedlibrary does not show any loaded shared libraries. So I cannot load the debugging symbols.

Yeah, something is screwy then. If you do something like:

$ gdb
...
(gdb) attach Mail
...
(gdb) info sharedlibrary

(substitute any other normal running app for Mail) do you get lots of shared libraries?

If not, something's broken in your setup. The first candidate is your .gdbinit. Make sure you haven't put anything funny in your .gdbinit. Easiest way to do that is:

$ gdb -nx
...
(gdb) attach Mail
...
(gdb) info sharedlibrary

If that works then then you need to go trim your .gdbinit to figure out what the problem was.

If everything works fine for the normal app, but just not for your app, then your app must be doing something funny. Be sure you tell us about that (even better if you can get a copy of the project to us, though I realize that's often not possible) when you file the bug.

bugreporter.apple.com seems to be working fine for me. Give it a bit & try again...

Jim




We don't support the merge with the FSF sources that the Ada folks did, we only have time to support our fork. But if you have problems with the gdb that comes with Xcode, you might try filing bugs against that at bugreporter.apple.com.

I know that Apple does not support the FSF GDB, filing a bug seems like
the best idea. Unfortunately the website does not work right now...


-- Christian

_______________________________________________ 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: GDB problems and version
      • From: Christian Thalinger <email@hidden>
References: 
 >GDB problems and version (From: Christian Thalinger <email@hidden>)
 >Re: GDB problems and version (From: Christian Thalinger <email@hidden>)
 >Re: GDB problems and version (From: Jim Ingham <email@hidden>)
 >Re: GDB problems and version (From: Christian Thalinger <email@hidden>)

  • Prev by Date: Re: GDB problems and version
  • Next by Date: Re: GDB problems and version
  • Previous by thread: Re: GDB problems and version
  • Next by thread: Re: GDB problems and version
  • Index(es):
    • Date
    • Thread