commit | 04f0c03a22135c7eefa47ed99c03e5b3dc9a34e2 | [log] [tgz] |
---|---|---|
author | Pedro Alves <pedro@palves.net> | Thu Nov 25 19:07:36 2021 +0000 |
committer | Pedro Alves <pedro@palves.net> | Mon Mar 21 16:45:49 2022 +0000 |
tree | c1951eea49e6c03c0b5bf5ec1c9c92da596a4464 | |
parent | f55649cc9bcb92405d49af6bdcde6e69ac4d1c49 [diff] |
gdbserver: Fix incorrect assertion While playing with adding a new event kind, I noticed that prepare_resume_reply TARGET_WAITKIND_FORKED, etc. advance 'buf', so if we force-disable the T packet, we'd fail the *buf == 'T' assertion. Fix it by tweaking the assertion to always look at the beginning of the buffer. Change-Id: I8c38e32353db115edcde418b3b1e8ba12343c22b