[rfa:rs6000] Move rs6000_fix_call_dummy into push_dummy_call

Andrew Cagney ac131313@redhat.com
Tue Sep 9 21:48:00 GMT 2003


Hello,

This isn't so obvious.

The rs6000 was unconditionally setting the FIX_CALL_DUMMY method and 
then using it as a way of setting the TOC register.  #include "the thing 
is" ...

The function looks like:

   if (rs6000_find_toc_address_hook != NULL)
     {
       CORE_ADDR tocvalue = (*rs6000_find_toc_address_hook) (fun);
       write_register (gdbarch_tdep (current_gdbarch)->ppc_toc_regnum,
                       tocvalue);
     }

but "rs6000_find_toc_address_hook" is only non NULL when the GDB build 
includes "rs6000-nat.c" which is AIX specific.

Hence, since this is an AIX / RS6000 / PowerOpen specific thing (and not 
PPC SysV), I'm only moving it to rs6000_push_dummy_call.

make sense?  ok?
Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20030909/8d3af111/attachment.ksh>


More information about the Gdb-patches mailing list