Extension of remote-sim interface
Lukas Durfina <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, I want to add support for PIE files in the simulators. It requires to get an auxv object, where is an address of entry point. I want to discuss my (working) proposal before sending a patch. My plan is to add a new method to remote-sim.h for getting the address of various objects: SIM_ADDR sim_get_object_address(arg) -> as the argument it gets new enum value SIM_OBJECT_AUXV. The simulator returns the address, where auxv object is prepared and stored by the simulator. Finally, in remote-sim.c (gdbsim_target::xfer_partial) there is used gdbsim_xfer_memory to read the object from the memory. The usage of argument in sim_get_object_address opens an option for further extensions. If some simulator does not support it, it will return 0. Is such an extension appropriate? Or is there better way how to extend the sim interface? Thanks Lukas