[#6145] Test failed with ptype variable of type tagless struct in gdb.cp/inherit.exp

Document created by Aaronwu Employee on Oct 17, 2013
Version 1Show Document
  • View in full screen mode

[#6145] Test failed with ptype variable of type tagless struct in gdb.cp/inherit.exp

Submitted By: Vivi Li

Open Date

2010-08-02 05:26:40    

Priority:

Medium     Assignee:

Steve Kilbane

Board:

N/A     Silicon Revision:

Resolution:

Under Debugging     Fixed In Release:

N/A

Processor:

ALL     

Host Operating System:

toolchain rev.:

    kernel rev.:

State:

Open     Found In Release:

2010R1

Is this bug repeatable?:

N/A     

Summary: Test failed with ptype variable of type tagless struct in gdb.cp/inherit.exp

Details:

 

Test failed with ptype variable of type tagless struct in gdb.cp/inherit.exp.

This case failed in toolchain 4.3 but passed in 4.1.

 

Bellow is the failed log in toolchain 4.3 testing:

--

ptype v_tagless^M

type = struct <anonymous struct> {^M

    int one;^M

    int two;^M

}^M

(gdb) FAIL: gdb.cp/inherit.exp: ptype variable of type tagless struct

--

 

Bellow is the passed log in toolchain 4.1 testing:

--

ptype v_tagless^M

type = struct ._1 {^M

    int one;^M

    int two;^M

}^M

(gdb) PASS: gdb.cp/inherit.exp: ptype variable of type tagless struct

--

 

Follow-ups

 

--- Steve Kilbane                                            2010-08-02 07:33:36

This was split off from #5773, where I entered the following comment:

"I'm baffled by the gdb.cp/inherit.exp one. The test has been updated

upstream,

to reflect that the 4.x G++ compilers don't generate some of the debug info

expected here, but that only partially addresses the behaviour I see for 4.x

compilers of varying vintage. Need to investigate more thoroughly."

 

--- Steve Kilbane                                            2010-08-04 08:24:08

Seems this is a bug in GCC that has recently been fixed (PR debug/41828), and

mainline GDB was patched to deal with the problem back in March (rev 1.375 of

gdb/dwarf2read.c). Initial explanation and patch here:

http://permalink.gmane.org/gmane.comp.gdb.patches/56454

I'm taking the relevant part of the patch back to GDB, and verifying that.

 

--- Sonic Zhang                                              2010-08-09 07:13:03

Not critical. Steve should walk around it temporarily in test script first. Low

priority.

 

--- Steve Kilbane                                            2010-08-12 08:16:11

Modified test to accept the GCC output in this case, and xfail for a related

case, as per upstream version of the test.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes