From patchwork Tue Sep 5 18:21:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Weigand X-Patchwork-Id: 22646 Received: (qmail 60814 invoked by alias); 5 Sep 2017 18:22:03 -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 60749 invoked by uid 89); 5 Sep 2017 18:22:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-12.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=Agent, agent X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 05 Sep 2017 18:21:58 +0000 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v85IJ59r060749 for ; Tue, 5 Sep 2017 14:21:56 -0400 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0a-001b2d01.pphosted.com with ESMTP id 2csyqvv47u-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 05 Sep 2017 14:21:56 -0400 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 5 Sep 2017 19:21:53 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp14.uk.ibm.com (192.168.101.144) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 5 Sep 2017 19:21:51 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v85ILoNt13697184; Tue, 5 Sep 2017 18:21:50 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 55C0E52041; Tue, 5 Sep 2017 18:17:09 +0100 (BST) Received: from oc3748833570.ibm.com (unknown [9.164.150.234]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 425E35203F; Tue, 5 Sep 2017 18:17:09 +0100 (BST) Received: by oc3748833570.ibm.com (Postfix, from userid 1000) id 7142CD8086F; Tue, 5 Sep 2017 20:21:50 +0200 (CEST) Subject: [RFC][16/19] Target FP: Remove unused union To: agent_val@de.ibm.com, from@de.ibm.com, ax.h@de.ibm.com, gdb-patches@sourceware.org Date: Tue, 5 Sep 2017 20:21:50 +0200 (CEST) From: "Ulrich Weigand" MIME-Version: 1.0 X-TM-AS-GCONF: 00 x-cbid: 17090518-0016-0000-0000-000004E8DB88 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17090518-0017-0000-0000-000028226BF6 Message-Id: <20170905182150.7142CD8086F@oc3748833570.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-09-05_07:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1709050267 [RFC][16/19] Target FP: Remove unused "union agent_val" from ax.h The ax.h header file contains a use of DOUBLEST in the type "union agent_val". However, that type is never used anywhere, so it can be simply removed. Bye, Ulrich ChangeLog: * ax.h: Do not include "doublest.h". (union agent_val): Remove. Index: binutils-gdb/gdb/ax.h =================================================================== --- binutils-gdb.orig/gdb/ax.h +++ binutils-gdb/gdb/ax.h @@ -19,7 +19,6 @@ #ifndef AGENTEXPR_H #define AGENTEXPR_H -#include "doublest.h" /* For DOUBLEST. */ #include "vec.h" /* It's sometimes useful to be able to debug programs that you can't @@ -80,17 +79,6 @@ enum agent_flaws /* Agent expression data structures. */ -/* The type of an element of the agent expression stack. - The bytecode operation indicates which element we should access; - the value itself has no typing information. GDB generates all - bytecode streams, so we don't have to worry about type errors. */ - -union agent_val - { - LONGEST l; - DOUBLEST d; - }; - /* A buffer containing a agent expression. */ struct agent_expr {