aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog12
-rw-r--r--gdb/breakpoint.c18
-rw-r--r--gdb/breakpoint.h2
-rw-r--r--gdb/target.c8
4 files changed, 14 insertions, 26 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 81370d2..d134713 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,15 @@
+2008-10-14 Pedro Alves <pedro@codesourcery.com>
+
+ 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).
+
2008-10-10 Doug Evans <dje@google.com>
* dwarf2read.c (comp_unit_head): Use unsigned int consistently
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 6e863d7..b289ead 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -315,10 +315,6 @@ static int overlay_events_enabled;
B ? (TMP=B->global_next, 1): 0; \
B = TMP)
-/* True if breakpoint hit counts should be displayed in breakpoint info. */
-
-int show_breakpoint_hit_counts = 1;
-
/* Chains of all breakpoints defined. */
struct breakpoint *breakpoint_chain;
@@ -3812,7 +3808,7 @@ print_one_breakpoint_location (struct breakpoint *b,
ui_out_text (uiout, "\n");
}
- if (!part_of_multiple && show_breakpoint_hit_counts && b->hit_count)
+ if (!part_of_multiple && b->hit_count)
{
/* FIXME should make an annotation for this */
if (ep_is_catchpoint (b))
@@ -3830,7 +3826,7 @@ print_one_breakpoint_location (struct breakpoint *b,
/* Output the count also if it is zero, but only if this is
mi. FIXME: Should have a better test for this. */
if (ui_out_is_mi_like_p (uiout))
- if (!part_of_multiple && show_breakpoint_hit_counts && b->hit_count == 0)
+ if (!part_of_multiple && b->hit_count == 0)
ui_out_field_int (uiout, "times", b->hit_count);
if (!part_of_multiple && b->ignore_count)
@@ -7731,16 +7727,6 @@ set_ignore_count (int bptnum, int count, int from_tty)
error (_("No breakpoint number %d."), bptnum);
}
-/* Clear the ignore counts of all breakpoints. */
-void
-breakpoint_clear_ignore_counts (void)
-{
- struct breakpoint *b;
-
- ALL_BREAKPOINTS (b)
- b->ignore_count = 0;
-}
-
/* Command to set ignore-count of breakpoint N to COUNT. */
static void
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index db6e972..de21b9a 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -713,8 +713,6 @@ extern void delete_breakpoint (struct breakpoint *);
extern void breakpoint_auto_delete (bpstat);
-extern void breakpoint_clear_ignore_counts (void);
-
extern void break_command (char *, int);
extern void hbreak_command_wrapper (char *, int);
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 ();
}