aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-06-25 12:34:41 -0600
committerTom Tromey <tom@tromey.com>2021-06-25 12:34:41 -0600
commit3da4c6449b1ce57accfb1b9fa8415ad1cf42039b (patch)
treeeb17dd638c517d85674b7e7cd14e3e36aff95b8f /gdb/ChangeLog
parent3e9f1ca148ca2ecf6cd008ed2678a4cbe253620b (diff)
downloadgdb-3da4c6449b1ce57accfb1b9fa8415ad1cf42039b.zip
gdb-3da4c6449b1ce57accfb1b9fa8415ad1cf42039b.tar.gz
gdb-3da4c6449b1ce57accfb1b9fa8415ad1cf42039b.tar.bz2
Change how .debug_aranges padding is skipped
When GCC emits .debug_aranges, it adds padding to align the contents to two times the address size. GCC has done this for many years -- but there is nothing in the DWARF standard that says this should be done, and LLVM does not seem to add this padding. It's simple to detect if the padding exists, though: if the contents of one .debug_aranges CU (excluding the header) are not a multiple of the alignment that GCC uses, then anything extra must be padding. This patch changes gdb to correctly read both styles. It removes the requirement that the padding bytes be zero, as this seemed unnecessarily pedantic to me. gdb/ChangeLog 2021-06-25 Tom Tromey <tom@tromey.com> * dwarf2/read.c (create_addrmap_from_aranges): Change padding logic. gdb/testsuite/ChangeLog 2021-06-25 Tom Tromey <tom@tromey.com> * lib/gdb.exp (add_gdb_index, ensure_gdb_index): Add "style" parameter. * gdb.rust/dwindex.exp: New file. * gdb.rust/dwindex.rs: New file.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index dc3b5f6..53b3c31 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2021-06-25 Tom Tromey <tom@tromey.com>
+ * dwarf2/read.c (create_addrmap_from_aranges): Change padding
+ logic.
+
+2021-06-25 Tom Tromey <tom@tromey.com>
+
* dwarf2/read.c (process_psymtab_comp_unit): Don't set 'lang'.
(scan_partial_symbols, partial_die_parent_scope)
(add_partial_symbol, add_partial_subprogram)