Re: Function pointers in C ( standard tool)
Re: Function pointers in C ( standard tool)
- Subject: Re: Function pointers in C ( standard tool)
- From: Jason Molenda <email@hidden>
- Date: Fri, 4 May 2007 14:04:13 -0700
On May 4, 2007, at 1:06 PM, Alexander von Below wrote:
While, in theory, gdb should be able to find out where the pointer
is pointing to -- and thus, given debug symbols -- should be able to
figure out the name, I am not aware of a way to find that out.
There are usually a dozen different ways of doing things in gdb, but
here is the first one that comes to mind:
(gdb) p {void ()} $pc
$4 = {void ()} 0x1c3f <main+13>
(gdb)
Or you can disassemble the instruction at a given address,
(gdb) x/1i $pc
0x1c3f <main+13>: lea -24(ëp),êx
(gdb)
You could use one of your program's variables instead of $pc here; the
usual gdb expression evaluation is taking place.
J
_______________________________________________
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