From efaf2b5892b8ad09a93e0551e183543e5bd18082 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 10 Feb 1997 23:15:37 +0000 Subject: [PATCH] * blockframe.c (generic_get_saved_regs): Remove unused variable "addr". * breakpoint.c (frame_in_dummy): Move struct breakpoint *b decl inside #ifdef CALL_DUMMY. (watch_command_1): Initialize target_resources_ok. * command.c (do_setshow_command): Provide dummy initialization for "match". * valops.c (find_function_addr): Move function & prototype inside #ifdef CALL_DUMMY. (value_arg_coerce): Similarly. (value_of_variable): Provide dummy initialization of "frame". Lint. --- gdb/ChangeLog | 14 ++++++++++++++ gdb/command.c | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 471c8ce8227..9821f215418 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,17 @@ +Mon Feb 10 16:11:57 1997 Jeffrey A Law (law@cygnus.com) + + * blockframe.c (generic_get_saved_regs): Remove unused variable + "addr". + * breakpoint.c (frame_in_dummy): Move struct breakpoint *b decl + inside #ifdef CALL_DUMMY. + (watch_command_1): Initialize target_resources_ok. + * command.c (do_setshow_command): Provide dummy initialization + for "match". + * valops.c (find_function_addr): Move function & prototype inside + #ifdef CALL_DUMMY. + (value_arg_coerce): Similarly. + (value_of_variable): Provide dummy initialization of "frame". + Mon Feb 10 13:50:53 1997 Stu Grossman (grossman@critters.cygnus.com) * gdbtk.c (call_wrapper): Clear running_now if an error occurs. diff --git a/gdb/command.c b/gdb/command.c index 9afbf82e59a..ee8d7120dd8 100644 --- a/gdb/command.c +++ b/gdb/command.c @@ -1230,7 +1230,7 @@ do_setshow_command (arg, from_tty, c) int i; int len; int nmatches; - char *match; + char *match = NULL; char *p; p = strchr (arg, ' '); -- 2.30.2