aboutsummaryrefslogtreecommitdiff
path: root/binutils/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-10-29 09:19:25 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-10-29 09:19:35 -0700
commit76868f3606fb9de04f49c441c1e3cdd3e943a34d (patch)
tree9e7bc0d04d149ef513710cc6bbce11e7caad10af /binutils/ChangeLog
parentcfaa8f76928803afda1e1862bcd0ab5f7febd647 (diff)
downloadgdb-76868f3606fb9de04f49c441c1e3cdd3e943a34d.zip
gdb-76868f3606fb9de04f49c441c1e3cdd3e943a34d.tar.gz
gdb-76868f3606fb9de04f49c441c1e3cdd3e943a34d.tar.bz2
dwarf: Also match abbrev base when searching abbrev list
A .debug_abbrev section can have multiple CUs. When caching abbrev list, we need to check abbrev base to support multiple CUs. PR binutils/26808 * dwarf.c (abbrev_list): Add abbrev_base. (new_abbrev_list): Add an abbrev_base argument and record it. (find_abbrev_list_by_abbrev_offset): Add an abbrev_base argument and match it. (process_debug_info): Pass abbrev_base to new_abbrev_list and find_abbrev_list_by_abbrev_offset. (display_debug_abbrev): Pass 0 abbrev_base to new_abbrev_list and find_abbrev_list_by_abbrev_offset. * testsuite/binutils-all/x86-64/pr26808.dump: New file. * testsuite/binutils-all/x86-64/pr26808.dwp.bz2: Likewise. * testsuite/binutils-all/x86-64/x86-64.exp: Run PR binutils/26808 test.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r--binutils/ChangeLog16
1 files changed, 16 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 5ccdf9b..3ff3316 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,19 @@
+2020-10-29 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/26808
+ * dwarf.c (abbrev_list): Add abbrev_base.
+ (new_abbrev_list): Add an abbrev_base argument and record it.
+ (find_abbrev_list_by_abbrev_offset): Add an abbrev_base argument
+ and match it.
+ (process_debug_info): Pass abbrev_base to new_abbrev_list and
+ find_abbrev_list_by_abbrev_offset.
+ (display_debug_abbrev): Pass 0 abbrev_base to new_abbrev_list
+ and find_abbrev_list_by_abbrev_offset.
+ * testsuite/binutils-all/x86-64/pr26808.dump: New file.
+ * testsuite/binutils-all/x86-64/pr26808.dwp.bz2: Likewise.
+ * testsuite/binutils-all/x86-64/x86-64.exp: Run PR binutils/26808
+ test.
+
2020-10-29 Nick Clifton <nickc@redhat.com>
PR 26805