diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-03-09 16:20:42 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-03-09 16:20:42 +0000 |
commit | 569631c6f2476cccd5cd4a08986764252d236b45 (patch) | |
tree | c48146c85656dbacdd6f830973db9aa576f47cc9 /gdb/infrun.c | |
parent | 47b67b6080c44cfa45aab70b9966da28908c1021 (diff) | |
download | gdb-569631c6f2476cccd5cd4a08986764252d236b45.zip gdb-569631c6f2476cccd5cd4a08986764252d236b45.tar.gz gdb-569631c6f2476cccd5cd4a08986764252d236b45.tar.bz2 |
* infrun.c (breakpoints_failed): Remove unnecessary variable.
(handle_inferior_event): Remove unnecessary braces.
* breakpoint.c (bpstat_what): Remove wrong comment.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 5d03619..0bea6a9 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -288,10 +288,6 @@ int proceed_to_finish; struct regcache *stop_registers; -/* Nonzero if program stopped due to error trying to insert breakpoints. */ - -static int breakpoints_failed; - /* Nonzero after stop if current stack frame should be printed. */ static int stop_print_frame; @@ -1830,7 +1826,6 @@ handle_inferior_event (struct execution_control_state *ecs) stop_print_frame = 1; ecs->random_signal = 0; stopped_by_random_signal = 0; - breakpoints_failed = 0; if (stop_signal == TARGET_SIGNAL_TRAP && trap_expected @@ -2126,9 +2121,7 @@ process_event_stop_test: if (debug_infrun) fprintf_unfiltered (gdb_stdlog, "infrun: BPSTAT_WHAT_SINGLE\n"); if (breakpoints_inserted) - { - remove_breakpoints (); - } + remove_breakpoints (); breakpoints_inserted = 0; ecs->another_trap = 1; /* Still need to check other stuff, at least the case @@ -2909,8 +2902,9 @@ keep_going (struct execution_control_state *ecs) if (!breakpoints_inserted && !ecs->another_trap) { - breakpoints_failed = insert_breakpoints (); - if (breakpoints_failed) + /* Stop stepping when inserting breakpoints + has failed. */ + if (insert_breakpoints () != 0) { stop_stepping (ecs); return; |