diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2007-11-30 10:00:26 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2007-11-30 10:00:26 +0000 |
commit | e236ba4424253599ed1f75a522c863d2afc8cd03 (patch) | |
tree | c9759cd957cc5ff0a0063afd851cf34c84002dc1 /gdb/infrun.c | |
parent | 888cab372296966d80fc5d77ec17e1ee226cf56d (diff) | |
download | gdb-e236ba4424253599ed1f75a522c863d2afc8cd03.zip gdb-e236ba4424253599ed1f75a522c863d2afc8cd03.tar.gz gdb-e236ba4424253599ed1f75a522c863d2afc8cd03.tar.bz2 |
Make insert_breakpoints return void.
* breakpoint.h (insert_breakpoints): Change
return type to void.
* breakpoint.c (insert_breakpoints): Change
return type to void. Rename local return_val
variable to error.
* infrun.c (keep_going): Instead of checking
return value from insert_breakpoints, catch exception.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index ad1de6b..62d6d1e 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -2948,9 +2948,14 @@ keep_going (struct execution_control_state *ecs) if (!ecs->another_trap) { + struct gdb_exception e; /* Stop stepping when inserting breakpoints has failed. */ - if (insert_breakpoints () != 0) + TRY_CATCH (e, RETURN_MASK_ERROR) + { + insert_breakpoints (); + } + if (e.reason < 0) { stop_stepping (ecs); return; |