From patchwork Thu May 15 15:49:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Arnez X-Patchwork-Id: 942 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx23.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id B186536006F for ; Thu, 15 May 2014 08:50:18 -0700 (PDT) Received: by homiemail-mx23.g.dreamhost.com (Postfix, from userid 14314964) id 7001B63CF9D53; Thu, 15 May 2014 08:50:18 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx23.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx23.g.dreamhost.com (Postfix) with ESMTPS id 3C7A963CF9D5E for ; Thu, 15 May 2014 08:50:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=J/rGFm5g0I3tQxXrSunrn82kUpleE5p OZSwX4WBBGldggpPy57xzpZfXq5CIpEtbspYE/NvjHHJ3PDxjKLQqPyUAlSS3l3e uh4Serfdr9l9vxqCfkjkAdZKtwsYYA9J0E/JcWC8zSGl/+TWfxgtEsIQGP6Dyj8m P8tj508UEzZU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; s=default; bh=gkFn5GH73CnU1LiqFfYTlpNPThY=; b=oST2l QfA7VWZ3VA8BdF7k6IfTifVj6547i1/MZ4HAvKg4xH/CdLYtd3PnV2cYyYD3DhOf 1QmX445C8jydagmxgqLayZTLjJPYwW5SmYEbo9RSfX+AdV4N3dm9siPyD/u0nOoA lfspwKA2Gwc8guJAgcvGsNZ5qrwPD1yWcIBeMQ= Received: (qmail 31136 invoked by alias); 15 May 2014 15:49:45 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 30920 invoked by uid 89); 15 May 2014 15:49:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e06smtp10.uk.ibm.com Received: from e06smtp10.uk.ibm.com (HELO e06smtp10.uk.ibm.com) (195.75.94.106) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 15 May 2014 15:49:42 +0000 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 15 May 2014 16:49:39 +0100 Received: from d06dlp02.portsmouth.uk.ibm.com (9.149.20.14) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 15 May 2014 16:49:38 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id D3FC72190066 for ; Thu, 15 May 2014 16:49:28 +0100 (BST) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps3075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s4FFnbal1311156 for ; Thu, 15 May 2014 15:49:37 GMT Received: from d06av04.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s4FFnbvv017539 for ; Thu, 15 May 2014 09:49:37 -0600 Received: from br87z6lw.boeblingen.de.ibm.com (dyn-9-152-212-188.boeblingen.de.ibm.com [9.152.212.188]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s4FFnZVY017450 for ; Thu, 15 May 2014 09:49:37 -0600 From: Andreas Arnez To: gdb-patches@sourceware.org Subject: [PATCH 11/11] Drop regset_alloc(). Date: Thu, 15 May 2014 17:49:35 +0200 Message-Id: <1400168975-3145-12-git-send-email-arnez@linux.vnet.ibm.com> In-Reply-To: <1400168975-3145-1-git-send-email-arnez@linux.vnet.ibm.com> References: <1400168975-3145-1-git-send-email-arnez@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14051515-4966-0000-0000-0000000B3CFC X-IsSubscribed: yes X-DH-Original-To: gdb@patchwork.siddhesh.in Now that all invocations of regset_alloc() have been removed, the function is dropped. Since regset_alloc() was the only function provided by regset.c, this source file is removed as well. gdb/ * Makefile.in (SFILES): Delete "regset.c". (COMMON_OBS): Delete "regset.o". * regset.c: Remove. * regset.h (regset_alloc): Delete prototype. --- gdb/Makefile.in | 4 ++-- gdb/regset.c | 43 ------------------------------------------- gdb/regset.h | 11 ----------- 3 files changed, 2 insertions(+), 56 deletions(-) delete mode 100644 gdb/regset.c diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 3efedc8..f2c16ec 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -836,7 +836,7 @@ SFILES = ada-exp.y ada-lang.c ada-typeprint.c ada-valprint.c ada-tasks.c \ jit.c \ xml-syscall.c \ annotate.c common/signals.c copying.c dfp.c gdb.c inf-child.c \ - regset.c sol-thread.c windows-termcap.c \ + sol-thread.c windows-termcap.c \ common/gdb_vecs.c common/common-utils.c common/xml-utils.c \ common/ptid.c common/buffer.c gdb-dlfcn.c common/agent.c \ common/format.c common/filestuff.c btrace.c record-btrace.c ctf.c \ @@ -1011,7 +1011,7 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \ gnu-v2-abi.o gnu-v3-abi.o cp-abi.o cp-support.o \ cp-namespace.o \ d-support.o \ - reggroups.o regset.o \ + reggroups.o \ trad-frame.o \ tramp-frame.o \ solib.o solib-target.o \ diff --git a/gdb/regset.c b/gdb/regset.c deleted file mode 100644 index 1d19d34..0000000 --- a/gdb/regset.c +++ /dev/null @@ -1,43 +0,0 @@ -/* Manage register sets. - - Copyright (C) 2004-2014 Free Software Foundation, Inc. - - This file is part of GDB. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#include "defs.h" -#include "regset.h" - -#include "gdb_assert.h" - -/* Allocate a fresh 'struct regset' whose supply_regset function is - SUPPLY_REGSET, and whose collect_regset function is COLLECT_REGSET. - If the regset has no collect_regset function, pass NULL for - COLLECT_REGSET. - - The object returned is allocated on ARCH's obstack. */ - -struct regset * -regset_alloc (struct gdbarch *arch, - supply_regset_ftype *supply_regset, - collect_regset_ftype *collect_regset) -{ - struct regset *regset = GDBARCH_OBSTACK_ZALLOC (arch, struct regset); - - regset->supply_regset = supply_regset; - regset->collect_regset = collect_regset; - - return regset; -} diff --git a/gdb/regset.h b/gdb/regset.h index f1a6e24..03dbdaa 100644 --- a/gdb/regset.h +++ b/gdb/regset.h @@ -52,15 +52,4 @@ struct regset collect_regset_ftype *collect_regset; }; -/* Allocate a fresh 'struct regset' whose supply_regset function is - SUPPLY_REGSET, and whose collect_regset function is COLLECT_REGSET. - If the regset has no collect_regset function, pass NULL for - COLLECT_REGSET. - - The object returned is allocated on ARCH's obstack. */ - -extern struct regset *regset_alloc (struct gdbarch *arch, - supply_regset_ftype *supply_regset, - collect_regset_ftype *collect_regset); - #endif /* regset.h */