[Bug remote/33319] Error in parsing the qOffsets query result
cvs-commit at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Thu Sep 4 20:39:46 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=33319
--- Comment #3 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=55fc9233a835a87d1a9020a8c71c473b03fc4f72
commit 55fc9233a835a87d1a9020a8c71c473b03fc4f72
Author: Tom Tromey <tromey@adacore.com>
Date: Thu Sep 4 09:33:07 2025 -0600
Don't require "Bss=" in qOffsets response
The "Bss=" part of the qOffsets response is documented as being
optional, but gdb in fact requires it. This patch fixes the bug.
I couldn't find a straightforward way to test this. gdbserver does
send 'Bss=' -- but this code is only enabled for a fairly specific
setup:
#if (defined(__UCLIBC__) \
&& defined(HAS_NOMMU) \
&& defined(PT_TEXT_ADDR) \
&& defined(PT_DATA_ADDR) \
&& defined(PT_TEXT_END_ADDR))
#define SUPPORTS_READ_OFFSETS
#endif
I also considered changing gdbserver to not send Bss=, but decided
against this, reasoning that we may as well not break compatibility
with older versions of gdb.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33319
Approved-By: Simon Marchi <simon.marchi@efficios.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list