From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 67984 invoked by alias); 13 Aug 2015 06:54:25 -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 67952 invoked by uid 48); 13 Aug 2015 06:54:24 -0000 From: "markus at trippelsdorf dot de" To: gdb-prs@sourceware.org Subject: [Bug c++/16874] Setting a breakpoint on function in anonymous namespace is unnecessarily awkward Date: Thu, 13 Aug 2015 06:54: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: markus at trippelsdorf dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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.isobsolete 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: 2015-q3/txt/msg00189.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16874 Markus Trippelsdorf changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #7974|0 |1 is obsolete| | --- Comment #10 from Markus Trippelsdorf --- Created attachment 8515 --> https://sourceware.org/bugzilla/attachment.cgi?id=8515&action=edit updated patch I've updated Patrick's patch for gdb trunk. It works fine: Example from comment0: % gdb ./a.out Reading symbols from ./a.out...done. (gdb) b fo Breakpoint 1 at 0x40058a: file anon_namesp.cpp, line 1. (gdb) run Starting program: /home/markus/a.out Breakpoint 1, (anonymous namespace)::foo () at anon_namesp.cpp:1 Example from comment8: Reading symbols from ./a.out...done. (gdb) b fo foo() foo2() (gdb) b foo2() Breakpoint 1 at 0x4005b3: file t2.cpp, line 1. (gdb) run Starting program: /home/markus/a.out Breakpoint 1, (anonymous namespace)::foo2 () at t2.cpp:1 1 namespace { int foo2 (void) { return 1; } } Any chance to move this issue forward? -- You are receiving this mail because: You are on the CC list for the bug.