mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-10 03:02:30 +00:00
* gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
* varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
This commit is contained in:
parent
696166a376
commit
3436505436
@ -1,3 +1,8 @@
|
|||||||
|
2012-01-09 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
|
||||||
|
* varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
|
||||||
|
|
||||||
2012-01-09 Keith Seitz <keiths@redhat.com>
|
2012-01-09 Keith Seitz <keiths@redhat.com>
|
||||||
|
|
||||||
* breakpoint.c (wrapper.h): Don't include.
|
* breakpoint.c (wrapper.h): Don't include.
|
||||||
|
@ -1674,7 +1674,7 @@ static struct type *
|
|||||||
safe_parse_type (struct gdbarch *gdbarch, char *p, int length)
|
safe_parse_type (struct gdbarch *gdbarch, char *p, int length)
|
||||||
{
|
{
|
||||||
struct ui_file *saved_gdb_stderr;
|
struct ui_file *saved_gdb_stderr;
|
||||||
struct type *type;
|
struct type *type = NULL; /* Initialize to keep gcc happy. */
|
||||||
volatile struct gdb_exception except;
|
volatile struct gdb_exception except;
|
||||||
|
|
||||||
/* Suppress error messages. */
|
/* Suppress error messages. */
|
||||||
|
@ -1359,13 +1359,12 @@ varobj_get_value (struct varobj *var)
|
|||||||
int
|
int
|
||||||
varobj_set_value (struct varobj *var, char *expression)
|
varobj_set_value (struct varobj *var, char *expression)
|
||||||
{
|
{
|
||||||
struct value *val;
|
struct value *val = NULL; /* Initialize to keep gcc happy. */
|
||||||
|
|
||||||
/* The argument "expression" contains the variable's new value.
|
/* The argument "expression" contains the variable's new value.
|
||||||
We need to first construct a legal expression for this -- ugh! */
|
We need to first construct a legal expression for this -- ugh! */
|
||||||
/* Does this cover all the bases? */
|
/* Does this cover all the bases? */
|
||||||
struct expression *exp;
|
struct expression *exp;
|
||||||
struct value *value;
|
struct value *value = NULL; /* Initialize to keep gcc happy. */
|
||||||
int saved_input_radix = input_radix;
|
int saved_input_radix = input_radix;
|
||||||
char *s = expression;
|
char *s = expression;
|
||||||
volatile struct gdb_exception except;
|
volatile struct gdb_exception except;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user