]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove unnecessary XMALLOC definitions.
authorPedro Alves <palves@redhat.com>
Fri, 9 Aug 2013 15:41:46 +0000 (15:41 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 9 Aug 2013 15:41:46 +0000 (15:41 +0000)
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.

gdb/ChangeLog
gdb/avr-tdep.c
gdb/cli/cli-dump.c

index 940a9a4037475de94ac141a285544115e121aa5e..469678f0e5650ecc0a63930e2c4e1f2440c07c8e 100644 (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>
 
        * cli/cli-dump.c: Don't include cli/cli-dump.h.
@@ -14,7 +19,7 @@
 
 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.
 
 2013-08-09  Pedro Alves  <palves@redhat.com>
index 0bc08a8e74144f2052ceb38fdd6c5bb5f9ae9135..fc4e0f062dfe9662f1071d958d5bb31483df24f6 100644 (file)
@@ -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
index 9e202b6eaf659d2c0d40dbd3fee89191f4e8d0ca..774aa7ed529550a58c0fb0dd8db4b1a3ea0205cf 100644 (file)
@@ -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)