aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.h
diff options
context:
space:
mode:
authorRandolph Chung <tausq@debian.org>2004-06-07 02:08:07 +0000
committerRandolph Chung <tausq@debian.org>2004-06-07 02:08:07 +0000
commitd49771efb59f489ecc7ece815583f57ffebbb523 (patch)
tree965a6fab6595c6c1bbd711a633a1d2cea0a39703 /gdb/hppa-tdep.h
parent7d9b040b53ba0e94d46774491ec01dd919af6587 (diff)
downloadgdb-d49771efb59f489ecc7ece815583f57ffebbb523.zip
gdb-d49771efb59f489ecc7ece815583f57ffebbb523.tar.gz
gdb-d49771efb59f489ecc7ece815583f57ffebbb523.tar.bz2
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.
Diffstat (limited to 'gdb/hppa-tdep.h')
-rw-r--r--gdb/hppa-tdep.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/hppa-tdep.h b/gdb/hppa-tdep.h
index c5a78fa..3f2235d 100644
--- a/gdb/hppa-tdep.h
+++ b/gdb/hppa-tdep.h
@@ -78,6 +78,10 @@ struct gdbarch_tdep
/* Is this an ELF target? This can be 64-bit HP-UX, or a 32/64-bit GNU/Linux
system. */
int is_elf;
+
+ /* Given a function address, try to find the global pointer for the
+ corresponding shared object. */
+ CORE_ADDR (*find_global_pointer) (struct value *);
};
/*