From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9051 invoked by alias); 17 Jan 2008 09:47:26 -0000 Received: (qmail 9038 invoked by uid 22791); 17 Jan 2008 09:47:26 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO brahms.sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 17 Jan 2008 09:47:08 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.1/8.14.0) with ESMTP id m0H9jbIs032114; Thu, 17 Jan 2008 10:45:37 +0100 (CET) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.1/8.14.1/Submit) id m0H9jZ2I004104; Thu, 17 Jan 2008 10:45:35 +0100 (CET) Date: Thu, 17 Jan 2008 09:47:00 -0000 Message-Id: <200801170945.m0H9jZ2I004104@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: msnyder@specifix.com CC: eliz@gnu.org, jimb@codesourcery.com, uweigand@de.ibm.com, brobecker@adacore.com, gdb-patches@sourceware.org In-reply-to: <1200543483.3263.73.camel@localhost.localdomain> (message from Michael Snyder on Wed, 16 Jan 2008 20:18:03 -0800) Subject: Re: [RFC/RFA?] Should break FILE:LINENO skip prologue? References: <200801152140.m0FLeMha003566@d12av02.megacenter.de.ibm.com> <200801161034.m0GAYfpk000326@brahms.sibelius.xs4all.nl> <1200543483.3263.73.camel@localhost.localdomain> 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-01/txt/msg00434.txt.bz2 > From: Michael Snyder > Date: Wed, 16 Jan 2008 20:18:03 -0800 > > On Thu, 2008-01-17 at 06:13 +0200, Eli Zaretskii wrote: > > > Cc: Mark Kettenis , uweigand@de.ibm.com, > > > brobecker@adacore.com, msnyder@specifix.com, > > > gdb-patches@sourceware.org > > > From: Jim Blandy > > > Date: Wed, 16 Jan 2008 13:36:11 -0800 > > > > > > GDB allows 'FILENAME'::FUNCTION in C expressions: > > > > Thanks. > > > > But if "break *'FILENAME'::FUNCTION" works, why is it wrong to expect > > that "break *FILENAME:FUNCTION" should also work. None of them is a > > valid C expression, it's just something GDB does to help the user, > > right? > > Right. It is a separate parser, the LINEINFO parser, as > opposed to the expression parser. It defines a superset > of the expression syntax. It is used mainly by the 'break' > and 'list' commands. That isn't quite true. The LINESPEC (I assume that's what you meant with LINEINFO) parser only parses the '*' and then hands things off to the standard expression parser. This of course is a good thing, because it means expressions are handled uniformly all over GDB.