aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-11-27 02:18:44 +0000
committerAndrew Cagney <cagney@redhat.com>2000-11-27 02:18:44 +0000
commit7f7e9482db3f4c15bcc4f2b341b6fc7244a418aa (patch)
treea3b59713b48e507858ed0ddad37982636d16b617 /gdb/top.c
parentdc10500f221947ef215230e76b8829a0bd9628a8 (diff)
downloadfsf-binutils-gdb-7f7e9482db3f4c15bcc4f2b341b6fc7244a418aa.zip
fsf-binutils-gdb-7f7e9482db3f4c15bcc4f2b341b6fc7244a418aa.tar.gz
fsf-binutils-gdb-7f7e9482db3f4c15bcc4f2b341b6fc7244a418aa.tar.bz2
* remote.c (remote_write_bytes): Add default case to switch
initializing ``todo''. Ditto for ``nr_bytes''. * top.c (catch_errors): Always initialize ``val''. * solib.c (info_sharedlibrary_command): Handle bfd_get_arch_size returning an unknown size. * gdbtypes.c (count_virtual_fns): Always initialize ``vfuncs''. * breakpoint.c (break_at_finish_at_depth_command_1): Initialise extra_args to NULL. (break_at_finish_command_1): Ditto.
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