From patchwork Mon Apr 28 09:53:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Arnez X-Patchwork-Id: 707 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx21.g.dreamhost.com (peon2454.g.dreamhost.com [208.113.200.127]) by wilcox.dreamhost.com (Postfix) with ESMTP id 14BED36007C for ; Mon, 28 Apr 2014 02:53:27 -0700 (PDT) Received: by homiemail-mx21.g.dreamhost.com (Postfix, from userid 14314964) id B7E96137520D; Mon, 28 Apr 2014 02:53:26 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx21.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-mx21.g.dreamhost.com (Postfix) with ESMTPS id 8E7401375218 for ; Mon, 28 Apr 2014 02:53:26 -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:references:date:in-reply-to :message-id:mime-version:content-type; q=dns; s=default; b=H+MTC El4YTk19XtMGKo50X26j2Uao4bZmFFe2lX+gPaOosepyI8nXfHbTGGtAzwZb23oK G7zQ1wDqPPGmYugT1f1ro8GgsrKLWp4q78Rc7bAaNGeFZgVFF8/0Es9ZqoS+rdMO st9zi+deNQvmgRPj0HAnhk0CSNIoYsGEi8KgYc= 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:references:date:in-reply-to :message-id:mime-version:content-type; s=default; bh=gkFn5GH73Cn U1LiqFfYTlpNPThY=; b=mI+BuBtJt3E2+Hcl7V7jzdpY1oOfyeRP53sp8F+xdQx bEFix9E/yN/MyKvvX1ozxB9sAEHf98ha6gLgz8oaA3pJKTDmcX7fjTvpmh3eW3Qf tzmeN8mKInswP637TXuFO3+2fiGKypljiQ3cDw9N9Xw16MMvWQeCszcoxysFMfc0 = Received: (qmail 4420 invoked by alias); 28 Apr 2014 09:53:25 -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 4406 invoked by uid 89); 28 Apr 2014 09:53:24 -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: e06smtp11.uk.ibm.com Received: from e06smtp11.uk.ibm.com (HELO e06smtp11.uk.ibm.com) (195.75.94.107) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 28 Apr 2014 09:53:22 +0000 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 28 Apr 2014 10:53:19 +0100 Received: from d06dlp02.portsmouth.uk.ibm.com (9.149.20.14) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 28 Apr 2014 10:53:18 +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 E10A42190056 for ; Mon, 28 Apr 2014 10:53:09 +0100 (BST) Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by b06cxnps3075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s3S9rHpO32506050 for ; Mon, 28 Apr 2014 09:53:17 GMT Received: from d06av02.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s3S9rHrB020286 for ; Mon, 28 Apr 2014 03:53:17 -0600 Received: from br87z6lw.de.ibm.com (dyn-9-152-212-188.boeblingen.de.ibm.com [9.152.212.188]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s3S9rGRR020257 for ; Mon, 28 Apr 2014 03:53:16 -0600 From: Andreas Arnez To: gdb-patches@sourceware.org Subject: [RFC 11/23] Drop regset_alloc() References: <87eh0h6bkq.fsf@br87z6lw.de.ibm.com> Date: Mon, 28 Apr 2014 11:53:16 +0200 In-Reply-To: <87eh0h6bkq.fsf@br87z6lw.de.ibm.com> (Andreas Arnez's message of "Mon, 28 Apr 2014 11:35:33 +0200") Message-ID: <87zjj53hmb.fsf@br87z6lw.de.ibm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14042809-5024-0000-0000-000009A01496 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 */