diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2007-12-16 19:15:48 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2007-12-16 19:15:48 +0000 |
commit | b5447a83ac77e1bfab9d414d5abb38e0023e258f (patch) | |
tree | 96cbab60f12de1793429b1ec5a50269f39de5f5e /gdb/breakpoint.c | |
parent | c95310c6b8cd7408468629923d00d3f9d807f238 (diff) | |
download | gdb-b5447a83ac77e1bfab9d414d5abb38e0023e258f.zip gdb-b5447a83ac77e1bfab9d414d5abb38e0023e258f.tar.gz gdb-b5447a83ac77e1bfab9d414d5abb38e0023e258f.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index c28784e..651ee89 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -2610,8 +2610,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. */ @@ -2809,8 +2807,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) @@ -3174,18 +3170,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; -} /* Given a bpstat that records zero or more triggered eventpoints, this |