From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21988 invoked by alias); 13 May 2008 20:24:13 -0000 Received: (qmail 21978 invoked by uid 22791); 13 May 2008 20:24:12 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 13 May 2008 20:23:51 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id C38983C1CC; Tue, 13 May 2008 13:23:49 -0700 (PDT) Subject: Re: [RFC] Fix for mishandling of "break 'pthread_create@GLIBC_2.2.5'" From: Michael Snyder To: Daniel Jacobowitz Cc: Paul Pluzhnikov , gdb-patches@sourceware.org, Doug Evans In-Reply-To: <20080513184447.GA12349@caradoc.them.org> References: <8ac60eac0805131135h5e9dd46ev8b7f39e660bf0bb7@mail.gmail.com> <20080513184447.GA12349@caradoc.them.org> Content-Type: text/plain Date: Tue, 13 May 2008 22:16:00 -0000 Message-Id: <1210710229.4615.566.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-7.fc7) Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-05/txt/msg00412.txt.bz2 On Tue, 2008-05-13 at 14:44 -0400, Daniel Jacobowitz wrote: > On Tue, May 13, 2008 at 11:35:53AM -0700, Paul Pluzhnikov wrote: > > 2008-05-13 Paul Pluzhnikov > > > > * linespec.c (locate_first_half): Rename to... > > (locate_first_half_1): ... this. > > (locate_first_half): New fn. > > > > Patch missing? > > Rather than making versions special, can we suppress looking for > fields inside quoted strings? GCC names static variables "foo.1" and > it's hard to get GDB to display that. FYI, there's a sort-of work-around... (gdb) rb pthread_create Function "pthread_create" not defined. Make breakpoint pending on future shared library load? (y or [n]) n pthread_create@plt; Breakpoint 2 at 0xc746a6 __pthread_create_2_1; Can't find member of namespace, class, struct, or union named "pthread_create@@GLIBC_2.1" Hint: try 'pthread_create@@GLIBC_2.1 or 'pthread_create@@GLIBC_2.1 (Note leading single quote.) pthread_create@@GLIBC_2.1; Breakpoint 3 at 0xc75145 __pthread_create_2_0; Can't find member of namespace, class, struct, or union named "pthread_create@GLIBC_2.0" Hint: try 'pthread_create@GLIBC_2.0 or 'pthread_create@GLIBC_2.0 (Note leading single quote.) pthread_create@GLIBC_2.0; (gdb) i b Num Type Disp Enb Address What 1 breakpoint keep y 0x0804846f in main at t.c:7 breakpoint already hit 1 time 2 breakpoint keep y 0x00c746a6 3 breakpoint keep y 0x00c75145