From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32078 invoked by alias); 9 Aug 2013 15:44:35 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 32025 invoked by uid 89); 9 Aug 2013 15:44:35 -0000 X-Spam-SWARE-Status: No, score=-6.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RDNS_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.1 Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 09 Aug 2013 15:44:34 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r79FiQY0010095 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 9 Aug 2013 11:44:26 -0400 Received: from brno.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r79FiO6Q001909 for ; Fri, 9 Aug 2013 11:44:25 -0400 Subject: [COMMIT PATCH] Remove unnecessary XMALLOC definitions. To: gdb-patches@sourceware.org From: Pedro Alves Date: Fri, 09 Aug 2013 15:44:00 -0000 Message-ID: <20130809154424.9097.63840.stgit@brno.lan> User-Agent: StGit/0.16 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-SW-Source: 2013-08/txt/msg00276.txt.bz2 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. --- gdb/avr-tdep.c | 3 --- gdb/cli/cli-dump.c | 2 -- 2 files changed, 5 deletions(-) diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c index 0bc08a8..fc4e0f0 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 9e202b6..774aa7e 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)