[rfc]: Replace current_gdbarch in hppa

Markus Deuling deuling@de.ibm.com
Fri Feb 15 06:48:00 GMT 2008


Hi,

ups, sorry. Forgot the subject. Here's one ...

This patch replaces some current_gdbarch's in hppa. Tested by gdb_buildall.sh.
Ok to commit?



ChangeLog:

    * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.

    * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
    current_gdbarch by gdbarch.
    (hppa64_hpux_find_global_pointer): Likewise.
    * hppa-tdep.c (hppa_find_global_pointer): Likewise.
    (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
    find_global_pointer.

    * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
    parameter.
    * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.

    * hppa-linux-nat.c (hppa_linux_register_addr): Add gdbarch as parameter.
    (fetch_register, store_register): Update call for
    hppa_linux_register_addr.

    * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
    replace current_gdbarch by gdbarch.    
    (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.


Regards,
Markus 

-- 
  Markus Deuling
  GNU Toolchain for Linux on Cell BE
  deuling@de.ibm.com

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff-hppa
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20080215/535b4637/attachment.ksh>


More information about the Gdb-patches mailing list