From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1739 invoked by alias); 4 May 2010 19:00:06 -0000 Received: (qmail 1725 invoked by uid 48); 4 May 2010 19:00:05 -0000 Date: Tue, 04 May 2010 19:00:00 -0000 From: "k04jg02 at gmail dot com" To: gdb-prs@sourceware.org Message-ID: <20100504190003.11567.k04jg02@gmail.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug c++/11567] New: GDB should only print namespace of types when there is an ambiguity by default X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2010-q2/txt/msg00203.txt.bz2 One of the issues that makes C++ template code hard to read is that often the templates and their type parameters are nested several levels deep in namespaces. For example, here is an excerpt from a recent stack trace: #8 0x0806a7fb in shmarmy::GarbageCollector, shmarmy::SHMStream >::tryDeleteHead, MyStreamNodeTest> (this=0x80845a0, stream=..., head=0xf1e094f8, prev_deleted_item=@0x8083f70, dont_delete=0x0) In my app the only time there is any class or template named GarbageCollector or WriteSegment or SHMStream is inside the shmarmy namespace. As long as there's no ambiguity, it would be much easier to read if it looked like this: #8 0x0806a7fb in GarbageCollector, SHMStream >::tryDeleteHead, MyStreamNodeTest> (this=0x80845a0, stream=..., head=0xf1e094f8, prev_deleted_item=@0x8083f70, dont_delete=0x0) Knowing the namespace even with no ambiguity could maybe be useful (maybe if you're not sure which file you included somehow? not sure), so I'd suggest having the current behavior be an option. -- Summary: GDB should only print namespace of types when there is an ambiguity by default Product: gdb Version: 6.8 Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: c++ AssignedTo: unassigned at sourceware dot org ReportedBy: k04jg02 at gmail dot com CC: gdb-prs at sourceware dot org http://sourceware.org/bugzilla/show_bug.cgi?id=11567 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.