From: Vladimir Prus <vladimir@codesourcery.com>
To: gdb-patches@sources.redhat.com
Subject: Remove unused things in breakpoint.c
Date: Sun, 16 Dec 2007 18:15:00 -0000 [thread overview]
Message-ID: <200712162110.07686.vladimir@codesourcery.com> (raw)
OK?
- Volodya
* breakpoint.c (bpstat_have_active_hw_watchpoints):
Remove
(bpstat_stop_status): Remove unused variable
real_breakpoint.
* breakpoint.h (bpstat_have_active_hw_watchpoints):
Remove prototype.
---
gdb/breakpoint.c | 16 ----------------
gdb/breakpoint.h | 3 ---
2 files changed, 0 insertions(+), 19 deletions(-)
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index dbeb8c2..fc18c32 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -2651,8 +2651,6 @@ bpstat_stop_status (CORE_ADDR bp_addr, ptid_t ptid)
{
struct breakpoint *b = NULL;
const struct bp_location *bl;
- /* True if we've hit a breakpoint (as opposed to a watchpoint). */
- int real_breakpoint = 0;
/* Root of the chain of bpstat's */
struct bpstats root_bs[1];
/* Pointer to the last thing in the chain currently. */
@@ -2859,8 +2857,6 @@ bpstat_stop_status (CORE_ADDR bp_addr, ptid_t ptid)
/* By definition, an encountered breakpoint is a triggered
breakpoint. */
++(b->hit_count);
-
- real_breakpoint = 1;
}
if (frame_id_p (b->frame_id)
@@ -3231,18 +3227,6 @@ bpstat_should_step (void)
return 0;
}
-/* Nonzero if there are enabled hardware watchpoints. */
-int
-bpstat_have_active_hw_watchpoints (void)
-{
- const struct bp_location *bpt;
- ALL_BP_LOCATIONS (bpt)
- if (breakpoint_enabled (bpt->owner)
- && bpt->inserted
- && bpt->loc_type == bp_loc_hardware_watchpoint)
- return 1;
- return 0;
-}
\f
/* Given a bpstat that records zero or more triggered eventpoints, this
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 6768ad6..1738e49 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -578,9 +578,6 @@ extern struct breakpoint *bpstat_find_step_resume_breakpoint (bpstat);
just to things like whether watchpoints are set. */
extern int bpstat_should_step (void);
-/* Nonzero if there are enabled hardware watchpoints. */
-extern int bpstat_have_active_hw_watchpoints (void);
-
/* Print a message indicating what happened. Returns nonzero to
say that only the source line should be printed after this (zero
return means print the frame as well as the source line). */
--
1.5.3.5
next reply other threads:[~2007-12-16 18:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-16 18:15 Vladimir Prus [this message]
2007-12-16 18:45 ` Daniel Jacobowitz
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=200712162110.07686.vladimir@codesourcery.com \
--to=vladimir@codesourcery.com \
--cc=gdb-patches@sources.redhat.com \
/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