From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29391 invoked by alias); 18 Feb 2011 10:27:04 -0000 Received: (qmail 29367 invoked by uid 22791); 18 Feb 2011 10:27:04 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_PR X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 18 Feb 2011 10:26:59 +0000 From: "anonyme_uprh at hotmail dot com" To: gdb-prs@sourceware.org Subject: [Bug c++/12266] Typedefs are not expanded to their base types in breakpoint definitions X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: anonyme_uprh at hotmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: keiths at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Fri, 18 Feb 2011 10:27:00 -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 X-SW-Source: 2011-q1/txt/msg00142.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=3D12266 --- Comment #4 from Martin Schr=C3=B6der = 2011-02-18 10:26:53 UTC --- Hello Keith, I've just tried the patchset you've linked to. I've applied it against the snapshot gdb-7.2.50.20110218. Unfortunately, it still doesn't work right. I start the debugger for my test case and issue the following commands: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -=20 (gdb) break calltest(foo) Function "calltest(foo)" not defined. Make breakpoint pending on future shared library load? (y or [n]) n (gdb) break calltest(std::string) Function "calltest(std::string)" not defined. Make breakpoint pending on future shared library load? (y or [n]) n (gdb) break calltest(string) Function "calltest(string)" not defined. Make breakpoint pending on future shared library load? (y or [n]) n - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -=20 Then, I try to register the breakpoint with the fully expanded typedef: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -=20 (gdb) break calltest(std::basic_string, std::allocator >) Breakpoint 1 at 0x4013c3: file typedef.c, line 5. (gdb) inf br Num Type Disp Enb Address What 1 breakpoint keep y 0x004013c3 in calltest(foo) at typedef.c:5 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -=20 As you can see, using the exanded type works. Afterwards, I tried the above three commands again: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -=20 (gdb) break calltest(foo) Note: breakpoint 1 also set at pc 0x4013c3. Breakpoint 2 at 0x4013c3: file typedef.c, line 5. (gdb) break calltest(std::string) Function "calltest(std::string)" not defined. Make breakpoint pending on future shared library load? (y or [n]) n (gdb) break calltest(string) Function "calltest(string)" not defined. Make breakpoint pending on future shared library load? (y or [n]) n (gdb) inf br Num Type Disp Enb Address What 1 breakpoint keep y 0x004013c3 in calltest(foo) at typedef.c:5 2 breakpoint keep y 0x004013c3 in calltest(foo) at typedef.c:5 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -=20 As you can see, now the root of the typedef-chain (foo) works, but not its first expansion to std::string. So, the bug still exists. Before you register any breakpoints, execute any actions or start the program, only the leaf of the typedef-chain (the full = type expansion) works. After an action, the root and leaf work, but none of the intermediate stages do. So, I guess that even though 11734 & 12273 might be fixed, my error seems to persist. Of course, I might have misapplied your diff, so just to be on the safe sid= e, I've added a diff from the gdb-7.2.50.20110218 snapshot to your patchset. --=20 Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are on the CC list for the bug.