diff options
author | Tom Tromey <tromey@redhat.com> | 2010-01-25 19:31:24 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-01-25 19:31:24 +0000 |
commit | 421d5d99a304a36cd40126d1e155bb23a8cee02d (patch) | |
tree | 1406b1cacf262e5a310daab57d05f5e16bb377a9 /gdb/c-valprint.c | |
parent | 2aa2364a8901583a5d0ffbbf64e7baed4a52f4e1 (diff) | |
download | gdb-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.c | 2 |
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; |