arc: Add evaluation of long jump targets
authorAnton Kolesov <Anton.Kolesov@synopsys.com>
Wed, 12 Oct 2016 11:36:44 +0000 (14:36 +0300)
committerAnton Kolesov <Anton.Kolesov@synopsys.com>
Wed, 12 Oct 2016 11:47:45 +0000 (14:47 +0300)
commitaaf43c4882f827d9f778b40dcdb93566f765f5f9
tree35cf72feb379edd029febf970d92b1855b5aba60
parentb845c31ecc4fe2677f1d938b0d8a3dc98397158e
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.
gdb/ChangeLog
gdb/arc-tdep.c
gdb/arc-tdep.h