RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 601887 - gdb doesn't support dwarf-4 draft emitted by gcc
Summary: gdb doesn't support dwarf-4 draft emitted by gcc
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gdb
Version: 6.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jan Kratochvil
QA Contact: Petr Muller
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-08 20:04 UTC by Issue Tracker
Modified: 2018-11-14 19:05 UTC (History)
6 users (show)

Fixed In Version: gdb-7.1-26.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-10 20:26:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Issue Tracker 2010-06-08 20:04:45 UTC
Escalated to Bugzilla from IssueTracker

Comment 1 Issue Tracker 2010-06-08 20:04:46 UTC
Event posted on 06-08-2010 03:56pm EDT by woodard

Description of problem:
<neb> [ben@snog rpmbuild]$ g++ -gdwarf-4 /tmp/typedef-missing.C 
<neb> [ben@snog rpmbuild]$ gdb a.out 
<neb> GNU gdb (GDB) Red Hat Enterprise Linux (7.1-24.el6)
<neb> Reading symbols from /home/Ben/rpmbuild/a.out...done.
<neb> Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /home/Ben/rpmbuild/a.out]
<tromey> I know I fixed that at some point
<neb> I thought that GDB should be able to handle all the dwarf4 that gcc is able to emit?
<tromey> jkratoch should know which gdb it is in
<tromey> yes, it should
<neb> tromey, I'm running the very latest daily 
<tromey> occasionally we are slightly behind gcc
<jkratoch> dwarf4 is still not final. And I do not remember I would do any backports for dwarf4 (after 7.1).
<tromey> that could change if someone slow jakub down ;)
<neb> friday of last week 
<roland> -gdwarf-3 -gno-strict-dwarf is the default format for rhel6 iirc
<neb> for reference:
<neb> gcc-4.4.4-5.el6.x86_64
<neb> gdb-7.1-24.el6.x86_64
<jkratoch> neb: It probably should not be a problem to backport it if draft-DWARF4 support is appropriate.  RHEL-6.0 will ship 7.1, it cannot be rebased so late.

How reproducible:
always

Steps to Reproduce:
try to use dwarf4 and then run gcc

Actual results:
fails

Expected results:
works
This event sent from IssueTracker by kbaxley  [LLNL (HPC)]
 issue 994123

Comment 2 Issue Tracker 2010-06-08 20:04:47 UTC
Event posted on 06-08-2010 03:56pm EDT by woodard

File uploaded: typedef-missing.C
This event sent from IssueTracker by kbaxley  [LLNL (HPC)]
 issue 994123
it_file 749293

Comment 3 RHEL Program Management 2010-06-08 20:13:26 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 4 Jan Kratochvil 2010-06-09 13:32:26 UTC
commit be1f57c90bdf86477b9bc69cc982171d6ad5df56
commit 669907bd6d54ae8e85b1278f0f16f8641ce6802d

devel_ack:
Minor changes, checked by hand as safe, accepted in FSF GDB.

qa_ack:
New testcase: gdb.dwarf2/rh-dwarf4-x86_64.exp
(gdb) ptype main(gdb) ptype main
type = int ()
(gdb) FAIL: gdb.dwarf2/rh-dwarf4-x86_64.exp: ptype main
->
(gdb) ptype main(gdb) ptype main
type = int (void)
(gdb) PASS: gdb.dwarf2/rh-dwarf4-x86_64.exp: ptype main

Comment 5 Fedora Update System 2010-06-09 13:59:05 UTC
gdb-7.1-26.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/gdb-7.1-26.fc13

Comment 6 Fedora Update System 2010-06-10 19:22:52 UTC
gdb-7.1-26.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Petr Muller 2010-08-03 16:26:20 UTC
# runtest --tool=gdb gdb.dwarf2/rh-dwarf4-x86_64.exp
(...)
                === gdb Summary ===

# of expected passes            1

and

# g++ -gdwarf-4 class0r.C -o class0r
# gdb -quiet ./class0r
(...)
Reading symbols from /root/rpmbuild/BUILD/gdb-7.1/gdb/testsuite/class0r...done.

Comment 9 releng-rhel@redhat.com 2010-11-10 20:26:46 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.