diff options
author | Tom Tromey <tromey@adacore.com> | 2022-04-13 06:32:28 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-04-14 12:12:34 -0600 |
commit | 9da74023eb9378315d6b7e1bae02f52cfecc8bd1 (patch) | |
tree | c519554680c772ab554cbc6a4083000842dbda67 /gdb/c-lang.c | |
parent | 3b1bdd53b5a9f0798a9315fa9309d2979045aeaf (diff) | |
download | binutils-9da74023eb9378315d6b7e1bae02f52cfecc8bd1.zip binutils-9da74023eb9378315d6b7e1bae02f52cfecc8bd1.tar.gz binutils-9da74023eb9378315d6b7e1bae02f52cfecc8bd1.tar.bz2 |
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.
Diffstat (limited to 'gdb/c-lang.c')
-rw-r--r-- | gdb/c-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/c-lang.c b/gdb/c-lang.c index a7ecf8f..be9ee07 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -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); } |