aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-01-25 19:31:24 +0000
committerTom Tromey <tromey@redhat.com>2010-01-25 19:31:24 +0000
commit421d5d99a304a36cd40126d1e155bb23a8cee02d (patch)
tree1406b1cacf262e5a310daab57d05f5e16bb377a9 /gdb/c-valprint.c
parent2aa2364a8901583a5d0ffbbf64e7baed4a52f4e1 (diff)
downloadgdb-421d5d99a304a36cd40126d1e155bb23a8cee02d.zip
gdb-421d5d99a304a36cd40126d1e155bb23a8cee02d.tar.gz
gdb-421d5d99a304a36cd40126d1e155bb23a8cee02d.tar.bz2
gdb
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".
Diffstat (limited to 'gdb/c-valprint.c')
-rw-r--r--gdb/c-valprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c
index 00c3c9a..d681a03 100644
--- a/gdb/c-valprint.c
+++ b/gdb/c-valprint.c
@@ -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;