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/valops.c | |
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/valops.c')
-rw-r--r-- | gdb/valops.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index 1c37fae..1f25a32 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1456,12 +1456,13 @@ value_repeat (struct value *arg1, int count) val = allocate_repeat_value (value_enclosing_type (arg1), count); - read_memory (value_address (arg1), - value_contents_all_raw (val), - TYPE_LENGTH (value_enclosing_type (val))); VALUE_LVAL (val) = lval_memory; set_value_address (val, value_address (arg1)); + read_value_memory (val, 0, value_stack (val), value_address (val), + value_contents_all_raw (val), + TYPE_LENGTH (value_enclosing_type (val))); + return val; } |