aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuinevere Larsen <guinevere@redhat.com>2025-01-13 14:04:04 -0300
committerGuinevere Larsen <guinevere@redhat.com>2025-02-10 15:31:03 -0300
commitf35bb15bed4ef1179f6c54654a590c825e53c3dc (patch)
treecc8dc4ceea4d7d251ad6cf38213413da587f35ae
parent13ab441fb40abffd9bb2a2ac32e1c69cba6c3198 (diff)
downloadbinutils-f35bb15bed4ef1179f6c54654a590c825e53c3dc.zip
binutils-f35bb15bed4ef1179f6c54654a590c825e53c3dc.tar.gz
binutils-f35bb15bed4ef1179f6c54654a590c825e53c3dc.tar.bz2
gdb: Deprecate stabs debug info
GCC has deprecated stabs generation in GCC 12 and entirely removed it in GCC 13, which was released in April 2023. At the time it was proposed that GDB deprecate stabs as well, but the decision was to support it a bit longer. With this patch, it'll be deprecated on GDB 17, and removed on GDB 18, which following the current cadence, will be released early 2026, meaning we will have supported stabs for nearly 3 years longer than GCC, which I think is reasonable. As pointed out in the previous discussion on this topic[1], there are several existing issues on the code, and none of the current maintainers knows how to fix it. Unless someone steps up to fix this before the removal on GDB 18, I don't see why we should keep this old code that breaks all conventions of modern debuginfo readers and doesn't even work, instead of being able to further advance adjacent code. Finally, deprecating and removing stabs will make a.out/dbx inferiors be essentially unsupported, as the only debuginfo GDB supports for those formats is stabs, meaning users would only have assembly-level debugging for that format. With that in mind, this commit deprecates the a.out/dbx format as well. [1] https://inbox.sourceware.org/gdb-patches/20230119174156.654402-1-tom@tromey.com/ Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31210 Approved-By: Tom Tromey <tom@tromey.com>
-rw-r--r--gdb/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/NEWS b/gdb/NEWS
index 4da8c92..2931a20 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -74,6 +74,9 @@ binary-upload in qSupported reply
multiple times, and the same mapping was being reused. In all
other cases, this field will have the value 'false'.
+* Support for stabs debugging format and the a.out/dbx object format is
+ deprecated, and will be removed in GDB 18.
+
*** Changes in GDB 16
* Support for Nios II targets has been removed as this architecture