aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-10-14 20:49:02 +0000
committerPedro Alves <palves@redhat.com>2008-10-14 20:49:02 +0000
commit63c715c603b979fe95172c1873247a0ec0bff849 (patch)
tree2c40c7ab66d98086a7c25d8524a12e78650cfa7f /gdb/target.c
parent0a8b3393b084336b85f4c4cc80f25ff587365860 (diff)
downloadgdb-63c715c603b979fe95172c1873247a0ec0bff849.zip
gdb-63c715c603b979fe95172c1873247a0ec0bff849.tar.gz
gdb-63c715c603b979fe95172c1873247a0ec0bff849.tar.bz2
Remove dead code.
* breakpoint.c (show_breakpoint_hit_counts): Delete. (print_one_breakpoint_location): Adjust. (breakpoint_clear_ignore_counts): Delete. * breakpoint.h (breakpoint_clear_ignore_counts): Remove declaration. * target.c (generic_mourn_inferior): Don't clear ignore counts (never reached).
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/target.c b/gdb/target.c
index 7452d2a..654d3c0 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -2336,7 +2336,6 @@ find_target_beneath (struct target_ops *t)
void
generic_mourn_inferior (void)
{
- extern int show_breakpoint_hit_counts;
ptid_t ptid;
ptid = inferior_ptid;
@@ -2354,13 +2353,6 @@ generic_mourn_inferior (void)
reopen_exec_file ();
reinit_frame_cache ();
- /* It is confusing to the user for ignore counts to stick around
- from previous runs of the inferior. So clear them. */
- /* However, it is more confusing for the ignore counts to disappear when
- using hit counts. So don't clear them if we're counting hits. */
- if (!show_breakpoint_hit_counts)
- breakpoint_clear_ignore_counts ();
-
if (deprecated_detach_hook)
deprecated_detach_hook ();
}