Remove unnecessary XMALLOC definitions.

XMALLOC is defined in defs.h.

Tested by building with --enable-targets=all.

gdb/
2013-08-09  Pedro Alves  <palves@redhat.com>

	* avr-tdep.c (XMALLOC): Delete macro.
	* cli/cli-dump.c (XMALLOC): Delete macro.
This commit is contained in:
Pedro Alves 2013-08-09 15:41:46 +00:00
parent db22972466
commit 156d08c82a
3 changed files with 6 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2013-08-09 Pedro Alves <palves@redhat.com>
* avr-tdep.c (XMALLOC): Delete macro.
* cli/cli-dump.c (XMALLOC): Delete macro.
2013-08-09 Pedro Alves <palves@redhat.com> 2013-08-09 Pedro Alves <palves@redhat.com>
* cli/cli-dump.c: Don't include cli/cli-dump.h. * cli/cli-dump.c: Don't include cli/cli-dump.h.
@ -14,7 +19,7 @@
2013-08-09 Pedro Alves <palves@redhat.com> 2013-08-09 Pedro Alves <palves@redhat.com>
* breakpoint.c (save_breakpoints): Show tilde-expanded filename in * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
error message. error message.
2013-08-09 Pedro Alves <palves@redhat.com> 2013-08-09 Pedro Alves <palves@redhat.com>

View file

@ -68,9 +68,6 @@
via the remote serial protocol. The extra bits are the MSBs and are used to via the remote serial protocol. The extra bits are the MSBs and are used to
decode which memory space the address is referring 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 */ /* Constants: prefixed with AVR_ to avoid name space clashes */
enum enum

View file

@ -34,8 +34,6 @@
#include "gdb_bfd.h" #include "gdb_bfd.h"
#include "filestuff.h" #include "filestuff.h"
#define XMALLOC(TYPE) ((TYPE*) xmalloc (sizeof (TYPE)))
static char * static char *
scan_expression_with_cleanup (char **cmd, const char *def) scan_expression_with_cleanup (char **cmd, const char *def)