Rename read_string
This renames read_string to be an overload of target_read_string. This makes it more consistent for the eventual merger with gdbserver.
This commit is contained in:
parent
94ea6ddb94
commit
3b1bdd53b5
4 changed files with 16 additions and 14 deletions
|
@ -352,8 +352,8 @@ c_get_string (struct value *value, gdb::unique_xmalloc_ptr<gdb_byte> *buffer,
|
|||
if (*length > 0)
|
||||
fetchlimit = UINT_MAX;
|
||||
|
||||
err = read_string (addr, *length, width, fetchlimit,
|
||||
byte_order, buffer, length);
|
||||
err = target_read_string (addr, *length, width, fetchlimit,
|
||||
byte_order, buffer, length);
|
||||
if (err != 0)
|
||||
memory_error (TARGET_XFER_E_IO, addr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue