Re: Easiest way to get function name/offset from a hex address?
Re: Easiest way to get function name/offset from a hex address?
- Subject: Re: Easiest way to get function name/offset from a hex address?
- From: Terry Lambert <email@hidden>
- Date: Fri, 30 Jan 2009 12:27:57 -0800
On Jan 29, 2009, at 6:29 AM, Karan, Cem (Civ, ARL/CISD) wrote:
Terry Lambert wrote on Wednesday, January 28, 2009 4:37 PM
Within the program itself:
man dladdr
Outside the program itself:
man atos
The debugger, gdb, also has multiple modes in which it
operates, two of which can be programmatically controlled (to
permit things like GUIs that still use gdb internally). You
could open the binary with gdb in one of these modes and
interactively query gdb for the information.
Can you tell me what these modes are? Or at least what to look for in
the manual?
The GDB/MI Interface
<http://sourceware.org/gdb/current/onlinedocs/gdb_26.html#SEC260>
My first choice is GDB, if I can get it to launch GUI apps correctly.
However, for alpha/beta testing, the dladdr trick is probably what
I'll
need. Crash reports just don't give enough info on how I got into the
state I'm currently in.
You can attach GUI apps after they are already launched.
-- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden