diff options
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index 661a74b..e6cae7f 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -2263,8 +2263,9 @@ value_get_print_value (struct value *value, enum varobj_display_formats format, opts.raw = 1; if (thevalue) { + struct gdbarch *gdbarch = get_type_arch (value_type (value)); make_cleanup (xfree, thevalue); - LA_PRINT_STRING (stb, builtin_type (current_gdbarch)->builtin_char, + LA_PRINT_STRING (stb, builtin_type (gdbarch)->builtin_char, (gdb_byte *) thevalue, strlen (thevalue), 0, &opts); } |