PR gdb/11049:
	* c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
	result.
gdb/testsuite
	PR gdb/11049:
	* gdb.base/printcmds.exp (test_print_typedef_arrays): Add test
	with "set print null-stop on".
This commit is contained in:
Tom Tromey
2010-01-25 19:31:24 +00:00
parent 2aa2364a89
commit 421d5d99a3
4 changed files with 18 additions and 1 deletions

View File

@@ -191,7 +191,7 @@ c_val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset,
&& temp_len < options->print_max
&& extract_unsigned_integer (valaddr + embedded_offset
+ temp_len * eltlen,
eltlen, byte_order) == 0);
eltlen, byte_order) != 0);
++temp_len)
;
len = temp_len;