[#6146] Print test cases in gdb.cp/namespace.exp fail in 4.3 toolchain testing but passes in 4.1

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

[#6146] Print test cases in gdb.cp/namespace.exp fail in 4.3 toolchain testing but passes in 4.1

Submitted By: Vivi Li

Open Date

2010-08-02 06:05:45    

Priority:

Low     Assignee:

David Gibson

Board:

N/A     Silicon Revision:

Resolution:

Assigned (Not Started)     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: Print test cases in gdb.cp/namespace.exp fail in 4.3 toolchain testing but passes in 4.1

Details:

 

Print test cases in gdb.cp/namespace.exp fail in 4.3 toolchain testing but passes in 4.1.

 

--

FAIL: gdb.cp/namespace.exp: print 'F::cXf'

FAIL: gdb.cp/namespace.exp: print F::cXf

FAIL: gdb.cp/namespace.exp: print F::cXfX

FAIL: gdb.cp/namespace.exp: print 'G::Xg'

FAIL: gdb.cp/namespace.exp: print G::Xg

FAIL: gdb.cp/namespace.exp: print G::XgX

FAIL: gdb.cp/namespace.exp: print cXOtherFile

FAIL: gdb.cp/namespace.exp: print XOtherFile

--

 

Bellow is the detailed log:

--

print 'F::cXf'

No symbol "F::cXf" in current context.

(gdb) FAIL: gdb.cp/namespace.exp: print 'F::cXf'

 

print F::cXf

No symbol "cXf" in namespace "C::(anonymous namespace)::F".

(gdb) FAIL: gdb.cp/namespace.exp: print F::cXf

 

print F::cXfX

No symbol "cXfX" in namespace "C::(anonymous namespace)::F".

(gdb) FAIL: gdb.cp/namespace.exp: print F::cXfX

 

print 'G::Xg'

No symbol "G::Xg" in current context.

(gdb) FAIL: gdb.cp/namespace.exp: print 'G::Xg'

 

print G::Xg

No symbol "Xg" in namespace "(anonymous namespace)::G".

(gdb) FAIL: gdb.cp/namespace.exp: print G::Xg

 

print G::XgX

No symbol "XgX" in namespace "(anonymous namespace)::G".

(gdb) FAIL: gdb.cp/namespace.exp: print G::XgX

 

print cXOtherFile

$20 = 29

(gdb) FAIL: gdb.cp/namespace.exp: print cXOtherFile

 

print XOtherFile

$21 = 317

(gdb) FAIL: gdb.cp/namespace.exp: print XOtherFile

--

 

Follow-ups

 

--- David Gibson                                             2010-08-17 05:09:11

The problem is that there is no association between the debug information and

the variables declared in the program. There should be a DW_AT_MIPS_linkage_name

entry  for the cXf entry in the dwarf, and it's missing.

The problem occurs where the symbol is declared somewhere within an anonymous

namespace or it's members).

 

It seems someone else has had similar problems, and it appears to be a

regression as of GCC 4.2: http://gcc.gnu.org/ml/gcc/2007-05/msg00585.html.

 

--- David Gibson                                             2010-08-20 12:18:58

This test still fails with the native ix86 gcc 4.51 and gdb 7.1.

I a response to the above link Daniel Jacobwitz (who seems to do a lot of work

on C++ debugging) comments that he had a potential fix but it never went in.

 

To clarify the issue is that the values of anonymous namespaces cannot be

printed under GDB.

What do we do with issues that are still open upstream?

 

I'm proposing that we lower this from P2 as it is not a showstopper problem.

 

--- Mike Frysinger                                           2010-08-20 12:26:15

bugs that exist in upstream code too and arent important to us can always be

lowered/postponed

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes