aboutsummaryrefslogtreecommitdiff
path: root/zlib/FAQ
diff options
context:
space:
mode:
authorAlexandra Hájková <ahajkova@redhat.com>2023-11-24 14:33:42 +0100
committerAlexandra Hájková <ahajkova@redhat.com>2024-02-12 15:03:41 +0100
commit7e9d8a3627c8a80b76c250b6881b7eb6fc2f4443 (patch)
tree184f902f541c422d2fc38eed7728558b0e85aae6 /zlib/FAQ
parentd4a45cd4d1c47244be2e9fe1f82654a4d4968a86 (diff)
downloadbinutils-7e9d8a3627c8a80b76c250b6881b7eb6fc2f4443.zip
binutils-7e9d8a3627c8a80b76c250b6881b7eb6fc2f4443.tar.gz
binutils-7e9d8a3627c8a80b76c250b6881b7eb6fc2f4443.tar.bz2
remote.c: Make packet_check_result return a structure
packet_check_result currently returns an packet_result enum. If GDB will recieve an error in a format E.errtext, which is possible for some q packets, such errtext is lost if treated by packet_check_result. Introduce a new structure which bundles enum packet_result with possible error message or error code returned by the GDBserver. I plan to make more GDBserver response checking functions to use packet_check_result to make remote.c code more consistent. This will also allow to use E.errtext more in the future. Beside adding the unit test, I tested this by modifying store_registers_using_G function to get an error message: [remote] Sending packet: $GG00000000 ... gdbserver: Wrong sized register packet (expected 1792 bytes, got 1793) gdbserver: Invalid hex digit 71 Killing process(es): 1104002 [remote] Packet received: E01 Could not write registers; remote failure reply '01' Reviewed-by: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Diffstat (limited to 'zlib/FAQ')
0 files changed, 0 insertions, 0 deletions