Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Thiago Jung Bauermann <bauerman@br.ibm.com>
To: gdb-patches ml <gdb-patches@sourceware.org>
Subject: Remove unused remove_hw_watchpoints
Date: Tue, 24 May 2011 03:06:00 -0000	[thread overview]
Message-ID: <1306206351.2665.3.camel@hactar> (raw)

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  <bauerman@br.ibm.com>

	* 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 *,



                 reply	other threads:[~2011-05-24  3:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1306206351.2665.3.camel@hactar \
    --to=bauerman@br.ibm.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox