summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2013-10-17 06:11:22 +0000
committerJoel Brobecker <brobecker@gnat.com>2013-10-17 06:11:22 +0000
commit706d9c897e5a7ac8e644348dbda917057cf3d3a7 (patch)
tree26ec402084249821d5b2ca0e8c5e88c68c59006d
parent51ba09d69f612e79ba2f892ace45f3eef2ce1a73 (diff)
downloadgdb-706d9c897e5a7ac8e644348dbda917057cf3d3a7.tar.gz
Document the get_longjmp_target gdbarch method.
gdb/ChangeLog: * gdbarch.sh (get_longjmp_target): Add method documentation. * gdbarch.h: Regenerate.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/gdbarch.h5
-rwxr-xr-xgdb/gdbarch.sh7
3 files changed, 15 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6ae91ee751d..300993571fe 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2013-10-17 Joel Brobecker <brobecker@adacore.com>
+
+ * gdbarch.sh (get_longjmp_target): Add method documentation.
+ * gdbarch.h: Regenerate.
+
2013-10-16 Tom Tromey <tromey@redhat.com>
* dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index 5d20ea6d12c..b58efc868e2 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -400,7 +400,10 @@ typedef int (gdbarch_cannot_store_register_ftype) (struct gdbarch *gdbarch, int
extern int gdbarch_cannot_store_register (struct gdbarch *gdbarch, int regnum);
extern void set_gdbarch_cannot_store_register (struct gdbarch *gdbarch, gdbarch_cannot_store_register_ftype *cannot_store_register);
-/* setjmp/longjmp support. */
+/* Determine the address where a longjmp will land and save this address
+ in PC. Return nonzero on success.
+
+ FRAME corresponds to the longjmp frame. */
extern int gdbarch_get_longjmp_target_p (struct gdbarch *gdbarch);
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh
index 5e467881443..644718d5b4e 100755
--- a/gdb/gdbarch.sh
+++ b/gdb/gdbarch.sh
@@ -486,8 +486,13 @@ M:void:print_vector_info:struct ui_file *file, struct frame_info *frame, const c
m:int:register_sim_regno:int reg_nr:reg_nr::legacy_register_sim_regno::0
m:int:cannot_fetch_register:int regnum:regnum::cannot_register_not::0
m:int:cannot_store_register:int regnum:regnum::cannot_register_not::0
-# setjmp/longjmp support.
+
+# Determine the address where a longjmp will land and save this address
+# in PC. Return nonzero on success.
+#
+# FRAME corresponds to the longjmp frame.
F:int:get_longjmp_target:struct frame_info *frame, CORE_ADDR *pc:frame, pc
+
#
v:int:believe_pcc_promotion:::::::
#