From: Pedro Alves Date: Fri, 9 Aug 2013 15:41:46 +0000 (+0000) Subject: Remove unnecessary XMALLOC definitions. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=156d08c82a586b3424e3f90b86c6a8b69156fef9;p=binutils-gdb.git Remove unnecessary XMALLOC definitions. XMALLOC is defined in defs.h. Tested by building with --enable-targets=all. gdb/ 2013-08-09 Pedro Alves * avr-tdep.c (XMALLOC): Delete macro. * cli/cli-dump.c (XMALLOC): Delete macro. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 940a9a40374..469678f0e56 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-08-09 Pedro Alves + + * avr-tdep.c (XMALLOC): Delete macro. + * cli/cli-dump.c (XMALLOC): Delete macro. + 2013-08-09 Pedro Alves * cli/cli-dump.c: Don't include cli/cli-dump.h. @@ -14,7 +19,7 @@ 2013-08-09 Pedro Alves - * breakpoint.c (save_breakpoints): Show tilde-expanded filename in + * breakpoint.c (save_breakpoints): Show tilde-expanded filename in error message. 2013-08-09 Pedro Alves diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c index 0bc08a8e741..fc4e0f062df 100644 --- a/gdb/avr-tdep.c +++ b/gdb/avr-tdep.c @@ -68,9 +68,6 @@ via the remote serial protocol. The extra bits are the MSBs and are used to decode which memory space the address is referring to. */ -#undef XMALLOC -#define XMALLOC(TYPE) ((TYPE*) xmalloc (sizeof (TYPE))) - /* Constants: prefixed with AVR_ to avoid name space clashes */ enum diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c index 9e202b6eaf6..774aa7ed529 100644 --- a/gdb/cli/cli-dump.c +++ b/gdb/cli/cli-dump.c @@ -34,8 +34,6 @@ #include "gdb_bfd.h" #include "filestuff.h" -#define XMALLOC(TYPE) ((TYPE*) xmalloc (sizeof (TYPE))) - static char * scan_expression_with_cleanup (char **cmd, const char *def)