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".
This commit is contained in:
parent
2aa2364a89
commit
421d5d99a3
4 changed files with 18 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2010-01-25 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
PR gdb/11049:
|
||||
* c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
|
||||
result.
|
||||
|
||||
2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
* configure.ac: Only use host_os part when disabling TUI on osf.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
2010-01-25 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
PR gdb/11049:
|
||||
* gdb.base/printcmds.exp (test_print_typedef_arrays): Add test
|
||||
with "set print null-stop on".
|
||||
|
||||
2010-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* gdb.arch/i386-bp_permanent.exp (Disassemble function '$function'):
|
||||
|
|
|
@ -582,6 +582,11 @@ proc test_print_typedef_arrays {} {
|
|||
" = \"abcd\""
|
||||
gdb_test "p a2\[0\]" " = 97 'a'"
|
||||
gdb_test "p a2\[3\]" " = 100 'd'"
|
||||
|
||||
# Regression test of null-stop; PR 11049.
|
||||
gdb_test "set print null-stop on" ""
|
||||
gdb_test "p a2" " = \"abcd\"" "print a2 with null-stop on"
|
||||
gdb_test "set print null-stop off" ""
|
||||
}
|
||||
|
||||
proc test_artificial_arrays {} {
|
||||
|
|
Loading…
Reference in a new issue