diff options
author | Tom de Vries <tdevries@suse.de> | 2021-02-10 12:30:46 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-02-10 12:30:46 +0100 |
commit | 52ff20fe7ba8e8de2660339fff5308ed932e2b32 (patch) | |
tree | 4e690f3bfe0f2769938e5833d660da23074ca1a2 /gdb/symtab.h | |
parent | ee4c3d88019ed88c3110e22cda16891aed14f818 (diff) | |
download | gdb-52ff20fe7ba8e8de2660339fff5308ed932e2b32.zip gdb-52ff20fe7ba8e8de2660339fff5308ed932e2b32.tar.gz gdb-52ff20fe7ba8e8de2660339fff5308ed932e2b32.tar.bz2 |
[binutils] Handle presence of both .debug_ranges and .debug_rnglists
With exec:
...
$ g++ src/gdb/testsuite/gdb.cp/cpexprs.cc -gdwarf-5 -fdebug-types-section
...
I run into:
...
$ readelf -w a.out > READELF
readelf: Error: Invalid range list entry type 126
readelf: Error: Invalid range list entry type 60
...
The executable contains both a .debug_rnglists section (for CU
cpexprs.cc) and a .debug_ranges section (for other CUs, like crti.S). But
when executing display_debug_ranges for say, section .debug_rnglists it also
tries to use the range list references related to section .debug_ranges.
Fix this by filtering out the .debug_range references when handling
.debug_rnglists and vice versa.
binutils/ChangeLog:
2021-02-10 Tom de Vries <tdevries@suse.de>
PR binutils/27371
* dwarf.c (display_debug_ranges): Filter range lists according to
section.
Diffstat (limited to 'gdb/symtab.h')
0 files changed, 0 insertions, 0 deletions