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.
This commit is contained in:
Anton Kolesov
2016-10-12 14:36:44 +03:00
parent b845c31ecc
commit aaf43c4882
3 changed files with 39 additions and 1 deletions

View File

@ -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. */