From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19720 invoked by alias); 26 Nov 2014 04:32:55 -0000 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 Received: (qmail 19682 invoked by uid 48); 26 Nov 2014 04:32:54 -0000 From: "patrick at parcs dot ath.cx" To: gdb-prs@sourceware.org Subject: [Bug c++/16874] Setting a breakpoint on function in anonymous namespace is unnecessarily awkward Date: Wed, 26 Nov 2014 04:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.7 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: patrick at parcs dot ath.cx X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q4/txt/msg00316.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16874 --- Comment #9 from patrick at parcs dot ath.cx --- Created attachment 7974 --> https://sourceware.org/bugzilla/attachment.cgi?id=7974&action=edit Candidate patch Here is a candidate patch that fixes this issue by allowing the user to omit the "(anonymous namespace)::" prefix when referencing symbols that are defined inside an anonymous namespace. Tab completion is fixed accordingly, e.g. by allowing one to tab-complete "pass_exp" into "pass_expand" even though pass_expand is actually (anonymous namespace)::pass_expand. This should work in breakpoint and expression context. So the patch enables you to do (gdb) break pass_exp::execu to break on (anonymous namespace)::pass_expand::execute. -- You are receiving this mail because: You are on the CC list for the bug.