aboutsummaryrefslogtreecommitdiff
path: root/gdb/arc-tdep.h
diff options
context:
space:
mode:
authorAnton Kolesov <Anton.Kolesov@synopsys.com>2016-10-12 14:36:44 +0300
committerAnton Kolesov <Anton.Kolesov@synopsys.com>2016-10-12 14:47:45 +0300
commitaaf43c4882f827d9f778b40dcdb93566f765f5f9 (patch)
tree35cf72feb379edd029febf970d92b1855b5aba60 /gdb/arc-tdep.h
parentb845c31ecc4fe2677f1d938b0d8a3dc98397158e (diff)
downloadgdb-aaf43c4882f827d9f778b40dcdb93566f765f5f9.zip
gdb-aaf43c4882f827d9f778b40dcdb93566f765f5f9.tar.gz
gdb-aaf43c4882f827d9f778b40dcdb93566f765f5f9.tar.bz2
arc: Add evaluation of long jump targets
Standard get_longjmp_target implementation, similar to what is in arm-tdep.c. Actual value of jb_pc should be set in init_osabi methods of particular OS/ABI implementations. gdb/ChangeLog: * arc-tdep.h (struct gdbarch_tdep) <jb_pc>: New field. * arc-tdep.c (arc_get_longjmp_target): New function. (arc_gdbarch_init): Set get_longjmp_target if jb_pc is non-negative. (arc_dump_tdep): Print jb_pc.
Diffstat (limited to 'gdb/arc-tdep.h')
-rw-r--r--gdb/arc-tdep.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/arc-tdep.h b/gdb/arc-tdep.h
index ea34b9e..1e792b9 100644
--- a/gdb/arc-tdep.h
+++ b/gdb/arc-tdep.h
@@ -81,6 +81,9 @@ extern int arc_debug;
struct gdbarch_tdep
{
+ /* Offset to PC value in jump buffer. If this is negative, longjmp
+ support will be disabled. */
+ int jb_pc;
};
/* Utility functions used by other ARC-specific modules. */