[PATCH 4/4] compile: New 'compile print'

Eli Zaretskii eliz@gnu.org
Fri Mar 27 09:56:00 GMT 2015


> Date: Fri, 27 Mar 2015 10:16:17 +0100
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: Phil Muldoon <pmuldoon@redhat.com>, gdb-patches@sourceware.org
> 
> > Can it include calls to standard functions?  Can it call functions from
> > libraries other than libc?  What about functions defined by the inferior?
> 
> yes, yes (as long as the library is already DT_NEEDEDed or dlopen()ed by the
> inferior), yes.

Are you sure the last part (calling functions in the inferior) will
work on all platforms?  How does the GCC plugin know to resolve the
address of the inferior's functions correctly?  Won't it need some
kind of import library on Windows?



More information about the Gdb-patches mailing list