From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16249 invoked by alias); 17 Jun 2014 14:53:04 -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 16120 invoked by uid 89); 17 Jun 2014 14:53:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 17 Jun 2014 14:53:01 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5HED5gD021045 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 17 Jun 2014 10:13:06 -0400 Received: from blade.nx (ovpn-116-59.ams2.redhat.com [10.36.116.59]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s5HED4eb020839 for ; Tue, 17 Jun 2014 10:13:05 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id 1D34D26247D for ; Tue, 17 Jun 2014 15:13:04 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Subject: [PATCH 02/15] Remove unnecessary prototypes Date: Tue, 17 Jun 2014 14:53:00 -0000 Message-Id: <1403014378-4349-3-git-send-email-gbenson@redhat.com> In-Reply-To: <1403014378-4349-1-git-send-email-gbenson@redhat.com> References: <1403014378-4349-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00599.txt.bz2 This commit removes four unnecessary prototypes from i386-nat.c. gdb/ 2014-06-17 Gary Benson * i386-nat.c (i386_length_and_rw_bits): Remove prototype. (i386_insert_aligned_watchpoint): Likewise. (i386_remove_aligned_watchpoint): Likewise. (i386_handle_nonaligned_watchpoint): Likewise. --- gdb/ChangeLog | 7 +++++++ gdb/i386-nat.c | 36 ------------------------------------ 2 files changed, 7 insertions(+), 36 deletions(-) diff --git a/gdb/i386-nat.c b/gdb/i386-nat.c index a56a116..7c9e7ca 100644 --- a/gdb/i386-nat.c +++ b/gdb/i386-nat.c @@ -256,42 +256,6 @@ static int maint_show_dr; /* Types of operations supported by i386_handle_nonaligned_watchpoint. */ typedef enum { WP_INSERT, WP_REMOVE, WP_COUNT } i386_wp_op_t; -/* Internal functions. */ - -/* Return the value of a 4-bit field for DR7 suitable for watching a - region of LEN bytes for accesses of type TYPE. LEN is assumed to - have the value of 1, 2, or 4. */ -static unsigned i386_length_and_rw_bits (int len, enum target_hw_bp_type type); - -/* Insert a watchpoint at address ADDR, which is assumed to be aligned - according to the length of the region to watch. LEN_RW_BITS is the - value of the bit-field from DR7 which describes the length and - access type of the region to be watched by this watchpoint. Return - 0 on success, -1 on failure. */ -static int i386_insert_aligned_watchpoint (struct i386_debug_reg_state *state, - CORE_ADDR addr, - unsigned len_rw_bits); - -/* Remove a watchpoint at address ADDR, which is assumed to be aligned - according to the length of the region to watch. LEN_RW_BITS is the - value of the bits from DR7 which describes the length and access - type of the region watched by this watchpoint. Return 0 on - success, -1 on failure. */ -static int i386_remove_aligned_watchpoint (struct i386_debug_reg_state *state, - CORE_ADDR addr, - unsigned len_rw_bits); - -/* Insert or remove a (possibly non-aligned) watchpoint, or count the - number of debug registers required to watch a region at address - ADDR whose length is LEN for accesses of type TYPE. Return 0 on - successful insertion or removal, a positive number when queried - about the number of registers, or -1 on failure. If WHAT is not a - valid value, bombs through internal_error. */ -static int i386_handle_nonaligned_watchpoint (struct i386_debug_reg_state *state, - i386_wp_op_t what, - CORE_ADDR addr, int len, - enum target_hw_bp_type type); - /* Implementation. */ /* Clear the reference counts and forget everything we knew about the -- 1.7.1