diff options
author | Tom Tromey <tom@tromey.com> | 2023-02-28 18:43:01 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-03-01 06:38:19 -0700 |
commit | 8b2d5ef8d41e8da46d8b138ea7d7fe3eb5d4a221 (patch) | |
tree | d0ea049dc9be8ea8ab5615fcb672e18a4020145e /gdbserver/linux-low.cc | |
parent | 2c29b1ed19711fa2a16558015e5a6b46a09aefeb (diff) | |
download | gdb-8b2d5ef8d41e8da46d8b138ea7d7fe3eb5d4a221.zip gdb-8b2d5ef8d41e8da46d8b138ea7d7fe3eb5d4a221.tar.gz gdb-8b2d5ef8d41e8da46d8b138ea7d7fe3eb5d4a221.tar.bz2 |
Fix btrace regression
Tom de Vries pointed out that my earlier patch:
commit 873a185be258ad2552b9579005852815b4da5baf
Date: Fri Dec 16 07:56:57 2022 -0700
Don't use struct buffer in handle_qxfer_btrace
regressed gdb.btrace/reconnect.exp. I didn't notice this because I
did not have libipt installed.
This patch fixes the bug.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30169
Tested-By: Bruno Larsen <blarsen@redhat.com>
Diffstat (limited to 'gdbserver/linux-low.cc')
-rw-r--r-- | gdbserver/linux-low.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc index dec1944..0ca3bb1 100644 --- a/gdbserver/linux-low.cc +++ b/gdbserver/linux-low.cc @@ -6781,7 +6781,7 @@ linux_low_encode_raw (std::string *buffer, const gdb_byte *data, elem[0] = tohex ((*data >> 4) & 0xf); elem[1] = tohex (*data++ & 0xf); - buffer->append (elem); + buffer->append (elem, 2); } *buffer += "</raw>\n"; |