aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 0b04c3c..1022f84 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -605,6 +605,8 @@ catch_errors (catch_errors_ftype *func, PTR args, char *errstring,
caught = SIGSETJMP (catch);
if (!caught)
val = (*func) (args);
+ else
+ val = 0;
catch_return = saved_catch;
/* FIXME: cagney/1999-11-05: A correct FUNC implementation will