From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27136 invoked by alias); 24 May 2011 03:06:29 -0000 Received: (qmail 27128 invoked by uid 22791); 24 May 2011 03:06:28 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e24smtp04.br.ibm.com (HELO e24smtp04.br.ibm.com) (32.104.18.25) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 May 2011 03:06:14 +0000 Received: from /spool/local by e24smtp04.br.ibm.com with XMail ESMTP for from ; Tue, 24 May 2011 00:06:06 -0300 Received: from mailhub1.br.ibm.com ([9.18.232.109]) by e24smtp04.br.ibm.com ([10.172.0.140]) with XMail ESMTP; Tue, 24 May 2011 00:06:03 -0300 Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.8.31.91]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p4O37SLT1630690 for ; Tue, 24 May 2011 00:07:29 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p4O15xKZ032727 for ; Mon, 23 May 2011 22:05:59 -0300 Received: from [9.12.229.55] ([9.12.229.55]) by d24av01.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p4O15uHO032614 for ; Mon, 23 May 2011 22:05:57 -0300 Subject: Remove unused remove_hw_watchpoints From: Thiago Jung Bauermann To: gdb-patches ml Content-Type: text/plain; charset="UTF-8" Date: Tue, 24 May 2011 03:06:00 -0000 Message-ID: <1306206351.2665.3.camel@hactar> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit x-cbid: 11052403-8936-0000-0000-000003293CD1 X-IsSubscribed: yes 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 X-SW-Source: 2011-05/txt/msg00545.txt.bz2 Hi, I noticed this function is not used in GDB. I also checked gdbtk. Committed as obvious. -- []'s Thiago Jung Bauermann IBM Linux Technology Center 2011-05-24 Thiago Jung Bauermann * breakpont.c (remove_hw_watchpoints): Remove unused function. * breakpoint.h remove_hw_watchpoints(): Remove prototype. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 7093104..c1e0013 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -2016,20 +2016,6 @@ remove_breakpoints_pid (int pid) } int -remove_hw_watchpoints (void) -{ - struct bp_location *bl, **blp_tmp; - int val = 0; - - ALL_BP_LOCATIONS (bl, blp_tmp) - { - if (bl->inserted && bl->loc_type == bp_loc_hardware_watchpoint) - val |= remove_breakpoint (bl, mark_uninserted); - } - return val; -} - -int reattach_breakpoints (int pid) { struct cleanup *old_chain; diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index 7fa705f..0cbd9dd 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -1151,10 +1151,6 @@ extern int ep_is_catchpoint (struct breakpoint *); deletes all breakpoints. */ extern void delete_command (char *arg, int from_tty); -/* Pull all H/W watchpoints from the target. Return non-zero if the - remove fails. */ -extern int remove_hw_watchpoints (void); - /* Manage a software single step breakpoint (or two). Insert may be called twice before remove is called. */ extern void insert_single_step_breakpoint (struct gdbarch *,