diff options
author | Anton Kolesov <Anton.Kolesov@synopsys.com> | 2016-10-12 14:36:44 +0300 |
---|---|---|
committer | Anton Kolesov <Anton.Kolesov@synopsys.com> | 2016-10-12 14:47:09 +0300 |
commit | b845c31ecc4fe2677f1d938b0d8a3dc98397158e (patch) | |
tree | cf46c90e2503df4a73a74ab8756ac2ed5f4265ba /gdb/arc-tdep.c | |
parent | 187f5d00acf0ffe5390f282fd4d6285bcd6fccb9 (diff) | |
download | gdb-b845c31ecc4fe2677f1d938b0d8a3dc98397158e.zip gdb-b845c31ecc4fe2677f1d938b0d8a3dc98397158e.tar.gz gdb-b845c31ecc4fe2677f1d938b0d8a3dc98397158e.tar.bz2 |
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.
Diffstat (limited to 'gdb/arc-tdep.c')
-rw-r--r-- | gdb/arc-tdep.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c index 60a4e04..58de8e9 100644 --- a/gdb/arc-tdep.c +++ b/gdb/arc-tdep.c @@ -1159,7 +1159,10 @@ arc_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) if (!arc_tdesc_init (info, &tdesc, &tdesc_data)) 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. */ set_gdbarch_short_bit (gdbarch, 16); |