This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to call functions which have ifunc symbols (e.g. strcmp) from inside gdb


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]