2004-06-06 Randolph Chung <tausq@debian.org>
authorRandolph Chung <tausq@debian.org>
Mon, 7 Jun 2004 02:08:07 +0000 (02:08 +0000)
committerRandolph Chung <tausq@debian.org>
Mon, 7 Jun 2004 02:08:07 +0000 (02:08 +0000)
commitd49771efb59f489ecc7ece815583f57ffebbb523
tree965a6fab6595c6c1bbd711a633a1d2cea0a39703
parent7d9b040b53ba0e94d46774491ec01dd919af6587
2004-06-06  Randolph Chung  <tausq@debian.org>

* hppa-tdep.h (struct value): Forward declaration.
(gdbarch_tdep): Define tdep find_global_pointer method.
* hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
associated with the function we are trying to call, and write it
to the gp register.
(hppa32_convert_from_funct_ptr_addr): New function.
(hppa_find_global_pointer): New function.
(hppa_gdbarch_init): Set default find_global_pointer method; set
convert_from_func_ptr_addr method.
* hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
(hppa_linux_init_abi): Set find_global_pointer method.
* Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
gdb/ChangeLog
gdb/Makefile.in
gdb/hppa-linux-tdep.c
gdb/hppa-tdep.c
gdb/hppa-tdep.h