forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user