From 3172dc307bfd4eca0675c7343aa94eae02eb40e2 Mon Sep 17 00:00:00 2001 From: "J.T. Conklin" Date: Tue, 27 Mar 2001 20:36:24 +0000 Subject: * arch-utils.c (#include "gdbthread.h"): Removed. (#include "symfile.h"): Removed. (XMALLOC): Removed unused macro. * breakpoint.c (tbreak_command): Removed local declaration. (awatch_command, do_enable_breakpoint, set_breakpoint_count): Remove duplicate declarations. (bpstat_should_step, bpstat_have_active_hw_watchpoints) (remove_solib_event_breakpoints): Fix indentation botch. * c-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. * ch-exp.c (ch_terminal_match_float_literal, parse_expr) (parse_primval, parse_untyped_expr, parse_opt_untyped_expr): Removed duplicate declarations. * ch-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. * corefile.c (#include "frame.h"): Removed (#include "symfile.h"): Removed. (#include "language.h"): Removed. * dbxread.c (#include "command.h"): Removed. * environ.c (#include "gdbcore.h"): Removed. * event-loop.c (#include "top.h"): Removed. * f-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. (#include "language.h"): Removed. (#include "typeprint.h"): Removed. (#include "frame.h"): Removed. * gdbtypes.h (print_type_scalar): Removed declaration. * infcmd.c (#include "completer.h"): Removed. * language.c (#include "frame.h"): Removed. * m2-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. (#include "language.h"): Removed. * m2-valprint.c (#include "valprint.h"): Removed. * p-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. * p-valprint.c (#include "typeprint.h"): Removed. * parse.c (#include "linespec.h"): Removed. * regcache.c (#include "frame.h"): Removed. * remote.c (#include "frame.h"): Removed. (getpkt_sane): Make static. * source.c (#include "completer.h"): Removed. * stack.c (#include "symfile.h"): Removed. (#include "objfiles.h"): Removed. * symfile.c (#include "completer.h"): Removed. * tracepoint.c (#include "completer.h"): Removed. * values.c (#include "frame.h"): Removed. * varobj.c (#include "valprint.h"): Removed. * wrapper.c (#include "frame.h"): Removed. * memattr.c (create_mem_region): Removed unused variable. * remote-nrom.c: Removed spurious semicolon after init_nrom_ops. ------------------------------------------------------------------- --- gdb/breakpoint.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'gdb/breakpoint.c') diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 5eb1fa4..3121d9b 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -85,8 +85,6 @@ static int can_use_hardware_watchpoint (struct value *); static void break_at_finish_command (char *, int); static void break_at_finish_at_depth_command (char *, int); -void tbreak_command (char *, int); - static void tbreak_at_finish_command (char *, int); static void break_command_1 (char *, int, int); @@ -210,18 +208,12 @@ static void ep_skip_leading_whitespace (char **s); /* Prototypes for exported functions. */ -static void awatch_command (char *, int); - -static void do_enable_breakpoint (struct breakpoint *, enum bpdisp); - /* If FALSE, gdb will not use hardware support for watchpoints, even if such is available. */ static int can_use_hw_watchpoints; void _initialize_breakpoint (void); -void set_breakpoint_count (int); - extern int addressprint; /* Print machine addresses? */ static int internal_breakpoint_number = -1; @@ -2980,7 +2972,7 @@ bpstat_should_step (void) struct breakpoint *b; ALL_BREAKPOINTS (b) if (b->enable == enabled && b->type == bp_watchpoint) - return 1; + return 1; return 0; } @@ -2995,7 +2987,7 @@ bpstat_have_active_hw_watchpoints (void) ((b->type == bp_hardware_watchpoint) || (b->type == bp_read_watchpoint) || (b->type == bp_access_watchpoint))) - return 1; + return 1; return 0; } @@ -3950,7 +3942,7 @@ remove_solib_event_breakpoints (void) ALL_BREAKPOINTS_SAFE (b, temp) if (b->type == bp_shlib_event) - delete_breakpoint (b); + delete_breakpoint (b); } struct breakpoint * -- cgit v1.1