diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/varobj.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c23a749..0e1a8bd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> + + Fix GCC false warning. + * varobj.c (value_get_print_value) <str_addr>: Initialize it. + 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr> * p-typeprint.c (pascal_type_print_method_args): Fix problem in diff --git a/gdb/varobj.c b/gdb/varobj.c index 2eacfa2..09f91eb 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -2486,7 +2486,8 @@ value_get_print_value (struct value *value, enum varobj_display_formats format, long len = 0; char *encoding = NULL; struct gdbarch *gdbarch = NULL; - CORE_ADDR str_addr; + /* Initialize it just to avoid a GCC false warning. */ + CORE_ADDR str_addr = 0; int string_print = 0; if (value == NULL) |