diff -r 3667782d0071 gdb/varobj.c --- a/gdb/varobj.c Wed Sep 28 12:36:27 2011 +0200 +++ b/gdb/varobj.c Wed Oct 05 15:53:47 2011 +0200 @@ -2640,7 +2640,7 @@ opts.raw = 1; if (thevalue) LA_PRINT_STRING (stb, type, thevalue, len, encoding, 0, &opts); - else if (string_print) + else if (string_print && type != NULL) val_print_string (type, encoding, str_addr, len, stb, &opts); else common_val_print (value, stb, 0, &opts, current_language);