diff options
author | Pedro Alves <palves@redhat.com> | 2011-02-14 11:32:17 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-02-14 11:32:17 +0000 |
commit | 24e6bceefbdf681e3e4101a44835a29afe33f902 (patch) | |
tree | a7f258878d68bf2665e9af03d8a3afad7c2e2920 /gdb/testsuite/gdb.trace | |
parent | 39d37385568d667a2f5fab7e10adda5813a54467 (diff) | |
download | gdb-24e6bceefbdf681e3e4101a44835a29afe33f902.zip gdb-24e6bceefbdf681e3e4101a44835a29afe33f902.tar.gz gdb-24e6bceefbdf681e3e4101a44835a29afe33f902.tar.bz2 |
gdb/
* valops.c (value_repeat): Use read_value_memory instead of
read_memory.
gdb/testsuite/
* gdb.trace/unavailable.exp (gdb_collect_globals_test): Test that
value repeat handles unavailableness.
Diffstat (limited to 'gdb/testsuite/gdb.trace')
-rw-r--r-- | gdb/testsuite/gdb.trace/unavailable.exp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.trace/unavailable.exp b/gdb/testsuite/gdb.trace/unavailable.exp index 00fb332..18e1043 100644 --- a/gdb/testsuite/gdb.trace/unavailable.exp +++ b/gdb/testsuite/gdb.trace/unavailable.exp @@ -155,6 +155,9 @@ proc gdb_collect_globals_test { } { gdb_test_no_output "set print repeat 10" + # Check that value repeat handles unavailable-ness. + gdb_test "print *tarray@3" " = \\{\\{a = 0, b = <unavailable>\\}, \\{a = 0, b = <unavailable>\\}, \\{a = <unavailable>, b = <unavailable>\\}\\}" + # Static fields gdb_test "print struct_b.static_struct_a" \ |