Remove the byte order parameter to target_read_string

target_read_string takes a byte order parameter, but only uses this to
check whether a given character is zero.  This is readily done without
requiring the parameter, so remove it.
This commit is contained in:
Tom Tromey 2022-04-13 06:32:28 -06:00
parent 3b1bdd53b5
commit 9da74023eb
4 changed files with 9 additions and 9 deletions

View file

@ -353,7 +353,7 @@ c_get_string (struct value *value, gdb::unique_xmalloc_ptr<gdb_byte> *buffer,
fetchlimit = UINT_MAX;
err = target_read_string (addr, *length, width, fetchlimit,
byte_order, buffer, length);
buffer, length);
if (err != 0)
memory_error (TARGET_XFER_E_IO, addr);
}