* skip.c (skip_function_command): Work around uninitialized
variable warning.
This commit is contained in:
parent
73cd8ab132
commit
caf4328c57
|
@ -1,3 +1,8 @@
|
||||||
|
2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
|
* skip.c (skip_function_command): Work around uninitialized
|
||||||
|
variable warning.
|
||||||
|
|
||||||
2011-11-16 David S. Miller <davem@davemloft.net>
|
2011-11-16 David S. Miller <davem@davemloft.net>
|
||||||
|
|
||||||
* utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
|
* utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
|
||||||
|
|
|
@ -160,7 +160,7 @@ skip_function_command (char *arg, int from_tty)
|
||||||
int pending = 0;
|
int pending = 0;
|
||||||
char *orig_arg = arg; /* decode_line_1 modifies the arg pointer. */
|
char *orig_arg = arg; /* decode_line_1 modifies the arg pointer. */
|
||||||
volatile struct gdb_exception decode_exception;
|
volatile struct gdb_exception decode_exception;
|
||||||
struct symtabs_and_lines sals;
|
struct symtabs_and_lines sals = { 0 };
|
||||||
|
|
||||||
TRY_CATCH (decode_exception, RETURN_MASK_ERROR)
|
TRY_CATCH (decode_exception, RETURN_MASK_ERROR)
|
||||||
{
|
{
|
||||||
|
@ -509,7 +509,7 @@ skip_re_set (void)
|
||||||
else if (e->function_name != 0)
|
else if (e->function_name != 0)
|
||||||
{
|
{
|
||||||
char *func_name = e->function_name;
|
char *func_name = e->function_name;
|
||||||
struct symtabs_and_lines sals;
|
struct symtabs_and_lines sals = { 0 };
|
||||||
volatile struct gdb_exception decode_exception;
|
volatile struct gdb_exception decode_exception;
|
||||||
|
|
||||||
TRY_CATCH (decode_exception, RETURN_MASK_ERROR)
|
TRY_CATCH (decode_exception, RETURN_MASK_ERROR)
|
||||||
|
|
Loading…
Reference in New Issue