forked from Imagelibrary/binutils-gdb
gdbserver: Fixup previous patch
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user