X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Flm32-tdep.c;h=779575c77365afaac3a9f22a358aabc978308598;hb=2e0569314c2ee9e5635899d47b0bc0a4b9b08d8d;hp=11cf897cc971d71514e1e73d3194104e72b91f90;hpb=28e7fd62340426746f9c896cbc40c5d374ec47aa;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/lm32-tdep.c b/gdb/lm32-tdep.c index 11cf897cc9..779575c773 100644 --- a/gdb/lm32-tdep.c +++ b/gdb/lm32-tdep.c @@ -1,7 +1,7 @@ /* Target-dependent code for Lattice Mico32 processor, for GDB. Contributed by Jon Beniston - Copyright (C) 2009-2013 Free Software Foundation, Inc. + Copyright (C) 2009-2015 Free Software Foundation, Inc. This file is part of GDB. @@ -37,8 +37,6 @@ #include "reggroups.h" #include "opcodes/lm32-desc.h" -#include "gdb_string.h" - /* Macros to extract fields from an instruction. */ #define LM32_OPCODE(insn) ((insn >> 26) & 0x3f) #define LM32_REG0(insn) ((insn >> 21) & 0x1f) @@ -527,7 +525,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 = XMALLOC (struct gdbarch_tdep); + tdep = XNEW (struct gdbarch_tdep); gdbarch = gdbarch_alloc (&info, tdep); /* Type sizes. */