diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-02-01 06:47:20 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-02-01 06:47:20 +0000 |
commit | 723a227560eace320351a22a1d1f2679b1ffaa93 (patch) | |
tree | c3bd7cd7a79a0ee59c00d781f745436a85412314 /gdb/breakpoint.c | |
parent | 65778909ad551d8f850a99095ac6a6369ead1c3e (diff) | |
download | gdb-723a227560eace320351a22a1d1f2679b1ffaa93.zip gdb-723a227560eace320351a22a1d1f2679b1ffaa93.tar.gz gdb-723a227560eace320351a22a1d1f2679b1ffaa93.tar.bz2 |
Properly rethrow exception. This fixes errors
about non-existent functions for -break-insert.
* breakpoint.c (break_command_really): Use throw_exception
for rethrowing. If rethrowing, don't print the exception.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 0bed4ef..f69002c 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -5330,13 +5330,13 @@ break_command_really (char *arg, char *cond_string, int thread, { case NOT_FOUND_ERROR: - exception_print (gdb_stderr, e); - /* If pending breakpoint support is turned off, throw error. */ if (pending_break_support == AUTO_BOOLEAN_FALSE) - deprecated_throw_reason (RETURN_ERROR); + throw_exception (e); + + exception_print (gdb_stderr, e); /* If pending breakpoint support is auto query and the user selects no, then simply return the error code. */ |