This is the mail archive of the gdb-patches@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: [PATCH 4/4] compile: New 'compile print'


On Fri, 27 Mar 2015 10:56:18 +0100, Eli Zaretskii wrote:
> Are you sure the last part (calling functions in the inferior) will
> work

Yes, as 'compile print' is almost the same as 'compile code' and for 'compile
code' it is already a part of the gdb.compile/ GDB testsuite.


> on all platforms?  Won't it need some kind of import library on Windows?

I really have no idea(+interest+duties).  Have you tried it?


> How does the GCC plugin know to resolve the address of the inferior's
> functions correctly?  

compile_object_load() contains relocator for mst_text references.
Additionally convert_one_symbol()/convert_symbol_bmsym()/etc. provide symbol
addresses during compilation of the module.  Some symbol types are resolved
that way, other symbols types the other way, it is partially interchangeable.


Jan


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