• 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: Avoiding "No symbol table is loaded" gdb error n Leopard?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 Ingham <email@hidden>
  • Date: Wed, 9 Jan 2008 15:26:53 -0800

This message is not terribly clear.

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.

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.

symbol-file is only going to help if you have something to add that actually HAS debug info in it.

Jim

On Jan 9, 2008, at 2:55 PM, Jim Correia wrote:

I often find myself attaching to a process with gdb at the command line to debug it.

On Tiger, I could stop at a breakpoint in the attached process and examine values. On Leopard, I get the following error:

(gdb) po *(id *)($ebp+8)
No symbol table is loaded.  Use the "file" command.

If I take its literal advice, it then warns me that it is going to terminate the current process. That's not what I wanted.

I tried `symbol-file` and that didn't seem to solve the problem either.

What do I need to do differently?

Thanks,
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

_______________________________________________ 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: Avoiding "No symbol table is loaded" gdb error n Leopard?
      • From: Jim Correia <email@hidden>
References: 
 >Avoiding "No symbol table is loaded" gdb error n Leopard? (From: Jim Correia <email@hidden>)

  • Prev by Date: Avoiding "No symbol table is loaded" gdb error n Leopard?
  • Next by Date: Re: Avoiding "No symbol table is loaded" gdb error n Leopard?
  • Previous by thread: Avoiding "No symbol table is loaded" gdb error n Leopard?
  • Next by thread: Re: Avoiding "No symbol table is loaded" gdb error n Leopard?
  • Index(es):
    • Date
    • Thread