diff options
Diffstat (limited to 'gdb/lm32-tdep.c')
-rw-r--r-- | gdb/lm32-tdep.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/lm32-tdep.c b/gdb/lm32-tdep.c index 9c5dda3..3f91c05 100644 --- a/gdb/lm32-tdep.c +++ b/gdb/lm32-tdep.c @@ -42,7 +42,7 @@ #define LM32_REG2(insn) ((insn >> 11) & 0x1f) #define LM32_IMM16(insn) ((((long)insn & 0xffff) << 16) >> 16) -struct gdbarch_tdep +struct lm32_gdbarch_tdep : gdbarch_tdep { /* gdbarch target dependent data here. Currently unused for LM32. */ }; @@ -491,7 +491,6 @@ static struct gdbarch * lm32_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) { struct gdbarch *gdbarch; - struct gdbarch_tdep *tdep; /* If there is already a candidate, use it. */ arches = gdbarch_list_lookup_by_info (arches, &info); @@ -499,7 +498,7 @@ lm32_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return arches->gdbarch; /* None found, create a new architecture from the information provided. */ - tdep = XCNEW (struct gdbarch_tdep); + lm32_gdbarch_tdep *tdep = new lm32_gdbarch_tdep; gdbarch = gdbarch_alloc (&info, tdep); /* Type sizes. */ |