Bug 1484931

Summary: [DTS-7 GDB] Missing DWARF-5 fixes
Product: Red Hat Developer Toolset Reporter: Jan Kratochvil <jan.kratochvil>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED ERRATA QA Contact: Michal Kolar <mkolar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: DTS 7.0 RHEL 7CC: bodavis, jan.kratochvil, kanderso, mattn, mcermak, mkolar, mnewsome, ohudlick, palves
Target Milestone: alpha   
Target Release: 7.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: devtoolset-7-gdb-8.0-24.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-24 09:46:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Kratochvil 2017-08-24 14:57:41 UTC
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:

Comment 3 Michal Kolar 2017-09-26 06:05:32 UTC
Reproduced against devtoolset-7-gdb-8.0-23.el7 and verified against devtoolset-7-gdb-8.0.1-26.el7.

Comment 5 errata-xmlrpc 2017-10-24 09:46:56 UTC
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