arc: Add a gdbarch_tdep structure
Add target-specific structure gdbarch_tdep for ARC. gdb/ChangeLog: * arc-tdep.h (struct gdbarch_tdep): New. * arc-tdep.c (arc_gdbarch_init): Allocate gdbarch_tdep.
This commit is contained in:
parent
187f5d00ac
commit
b845c31ecc
|
@ -1,3 +1,8 @@
|
||||||
|
2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
|
||||||
|
|
||||||
|
* arc-tdep.h (struct gdbarch_tdep): New.
|
||||||
|
* arc-tdep.c (arc_gdbarch_init): Allocate gdbarch_tdep.
|
||||||
|
|
||||||
2016-10-12 Yao Qi <yao.qi@linaro.org>
|
2016-10-12 Yao Qi <yao.qi@linaro.org>
|
||||||
|
|
||||||
PR tdep/20682
|
PR tdep/20682
|
||||||
|
|
|
@ -1159,7 +1159,10 @@ arc_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||||
if (!arc_tdesc_init (info, &tdesc, &tdesc_data))
|
if (!arc_tdesc_init (info, &tdesc, &tdesc_data))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
struct gdbarch *gdbarch = gdbarch_alloc (&info, NULL);
|
/* Allocate the ARC-private target-dependent information structure, and the
|
||||||
|
GDB target-independent information structure. */
|
||||||
|
struct gdbarch_tdep *tdep = XCNEW (struct gdbarch_tdep);
|
||||||
|
struct gdbarch *gdbarch = gdbarch_alloc (&info, tdep);
|
||||||
|
|
||||||
/* Data types. */
|
/* Data types. */
|
||||||
set_gdbarch_short_bit (gdbarch, 16);
|
set_gdbarch_short_bit (gdbarch, 16);
|
||||||
|
|
|
@ -77,6 +77,12 @@ enum arc_regnum
|
||||||
|
|
||||||
extern int arc_debug;
|
extern int arc_debug;
|
||||||
|
|
||||||
|
/* Target-dependent information. */
|
||||||
|
|
||||||
|
struct gdbarch_tdep
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
/* Utility functions used by other ARC-specific modules. */
|
/* Utility functions used by other ARC-specific modules. */
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
|
|
Loading…
Reference in New Issue