[rfa/mips] Shared library trampoline support for mips-linux

Andrew Cagney cagney@gnu.org
Wed Feb 11 18:33:00 GMT 2004


> On Tue, Feb 10, 2004 at 06:38:50PM -0500, Andrew Cagney wrote:
> 
>> >-  /* Hook in OS ABI-specific overrides, if they have been registered.  */
>> >-  gdbarch_init_osabi (info, gdbarch);
>> >-
>> >   set_gdbarch_skip_trampoline_code (gdbarch, mips_skip_stub);
>> > 
>> >   set_gdbarch_in_solib_call_trampoline (gdbarch, mips_in_call_stub);
>> >   set_gdbarch_in_solib_return_trampoline (gdbarch, mips_in_return_stub);
> 
>> 
>> Assuming that the default is no OS, I'm actually wondering why these are 
>> set at all.
> 
> 
> Because they're used for MIPS16, presumably.  The fact that MIPS16 call
> stubs use the solib machinery is why I had a ??? in my question.

If you can wrap those two in an "if (osabi isn't for an os)", and add a 
rude comment, I'm ok.

I get the feeling that infrun should just have a list of per-osabi 
function names that it either silently step-outof or finishes.  If it 
were user visible, people could even add to it.

Andrew




More information about the Gdb-patches mailing list