diff options
author | Tom Tromey <tromey@adacore.com> | 2024-12-09 10:40:48 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-12-11 10:00:47 -0700 |
commit | a32d76186d24be8f23bd4c2fd20d9cf762dc3673 (patch) | |
tree | 2fbbb6270c1d3e20316d54c0358ab196f4f27086 /gdb/ada-lang.c | |
parent | a5939d229614a4913daf3c687ec54fdf3020d496 (diff) | |
download | binutils-a32d76186d24be8f23bd4c2fd20d9cf762dc3673.zip binutils-a32d76186d24be8f23bd4c2fd20d9cf762dc3673.tar.gz binutils-a32d76186d24be8f23bd4c2fd20d9cf762dc3673.tar.bz2 |
Fix gdbreplay checksum calculation
I needed to use gdbreplay today. It didn't work quite right, and
using "set debug remote 1" showed that gdb was rejecting some
responses like:
[remote] Sending packet: $vCont?#49
[remote] Junk: #vCont?
[remote] Junk: 8vCont?
[remote] Junk: 3vCont?
[remote] Received Ack
The checksum recalculation seems to have gone wrong. Looking at the
code, it seems like 'where_csum' is calculated inconsistently: in the
main loop it is after the '#' but in the "== 0" case it is before the
'#'.
This patch fixes the problem and also avoids a string copy.
CC: Alexandra Hájková <ahajkova@redhat.com>
Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/ada-lang.c')
0 files changed, 0 insertions, 0 deletions