This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How to call functions which have ifunc symbols (e.g. strcmp) from inside gdb
- From: Thiago Jung Bauermann <bauerman at br dot ibm dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: David Gardner <daveg at xmos dot com>, gdb at sourceware dot org
- Date: Mon, 06 Jun 2011 18:22:57 -0300
- Subject: Re: How to call functions which have ifunc symbols (e.g. strcmp) from inside gdb
- References: <20110602122944.GB30346@xmos.com> <20110602132922.GA32664@host1.jankratochvil.net>
On Thu, 2011-06-02 at 15:29 +0200, Jan Kratochvil wrote:
> If you still have old GDB you can cast it yourself:
> (gdb) p (*(int(*(*)())())strcmp)()("a","b")
> $1 = -1
If GDB supported Lisp, this is what it would look like. :-)
--
[]'s
Thiago Jung Bauermann
IBM Linux Technology Center