Description of problem: GDB release notes claim DWARF-5 support (excluding its .debug_names index) but in reality that does not work. Backport those fixes. Version-Release number of selected component (if applicable): FAIL devtoolset-7-gdb-8.0-23.el7 How reproducible: Always. Steps to Reproduce: https://sourceware.org/bugzilla/show_bug.cgi?id=22002 Debuggees compiled with -gdwarf-5 -fdebug-types-section now crash GDB such as: (gdb) break 60 dwarf2read.c:9516: internal-error: void setup_type_unit_groups(die_info*, dwarf2_cu*): Assertion `per_cu->is_debug_types' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) FAIL: gdb.cp/pr17132.exp: setting breakpoint at 60 (GDB internal error) https://sourceware.org/bugzilla/show_bug.cgi?id=22003 -gdwarf-5: ptype logical type = const char [] (gdb) FAIL: gdb.base/constvars.exp: ptype logical Actual results: Both testcases do not work in -gdwarf-5 -fdebug-types-section mode. Expected results: Both testcases work in -gdwarf-5 -fdebug-types-section mode. Additional info:
Reproduced against devtoolset-7-gdb-8.0-23.el7 and verified against devtoolset-7-gdb-8.0.1-26.el7.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:3015