Re: Avoiding "No symbol table is loaded" gdb error n Leopard?
Re: Avoiding "No symbol table is loaded" gdb error n Leopard?
- Subject: Re: Avoiding "No symbol table is loaded" gdb error n Leopard?
- From: Jim Correia <email@hidden>
- Date: Wed, 9 Jan 2008 18:37:35 -0500
On Jan 9, 2008, at 6:26 PM, Jim Ingham wrote:
If you are just attaching to some system process for which you have
no debug information then this error is coming because you are
asking gdb to look up the type "id" but there is no debug
information available.
This used to work on Tiger because it turned out that the AppKit
binary had a few little bits of debug info squirreled away in it -
including the definition of "id". But that's no longer true on
Leopard. You'll have to cast to built-in types (char *) or
suchlike) or make sure you have debug information somewhere in the
binary to which you are attaching.
I was casting to a built in type, but even though that worked, it felt
wrong to be passing anything other than an id to po :-)
If you want to use the "file" command to bring in debug information,
you need to issue that BEFORE you run the app, or do the attach.
Thanks for the tip.
symbol-file is only going to help if you have something to add that
actually HAS debug info in it.
Is there a framework/library on Leopard that has debug information for
id in it, or is casting to a built-in type the best solution?
Jim
_______________________________________________
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