projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04f0c03
)
gdbserver: Fixup previous patch
author
Pedro Alves
<pedro@palves.net>
Mon, 21 Mar 2022 16:58:23 +0000
(16:58 +0000)
committer
Pedro Alves
<pedro@palves.net>
Mon, 21 Mar 2022 17:01:49 +0000
(17:01 +0000)
The previous prepare_resume_reply change missed updating the 'buf'
reference that overwrites the 'T', so if 'buf' was advanced, we'd
still overwrite the wrong character. This fixes it.
Change-Id: Ia8ce433366b85af4e268c1c49e7b447da3130a4d
gdbserver/remote-utils.cc
patch
|
blob
|
history
diff --git
a/gdbserver/remote-utils.cc
b/gdbserver/remote-utils.cc
index 0599cc9c4f1a11cf4ea646b679b140e5dd943bc7..db9b2a66f3cbd6f4d4237dea5b05b2f200c19e4a 100644
(file)
--- a/
gdbserver/remote-utils.cc
+++ b/
gdbserver/remote-utils.cc
@@
-1144,7
+1144,7
@@
prepare_resume_reply (char *buf, ptid_t ptid, const target_waitstatus &status)
gdb_assert (buf_start[0] == 'T');
gdb_assert (isxdigit (buf_start[1]));
gdb_assert (isxdigit (buf_start[2]));
-
*buf
= 'S';
+
buf_start[0]
= 'S';
buf_start[3] = '\0';
break;
}