From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20498 invoked by alias); 16 Jan 2008 04:20:51 -0000 Received: (qmail 20487 invoked by uid 22791); 16 Jan 2008 04:20:50 -0000 X-Spam-Check-By: sourceware.org Received: from romy.inter.net.il (HELO romy.inter.net.il) (213.8.233.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 16 Jan 2008 04:20:31 +0000 Received: from HOME-C4E4A596F7 (IGLD-83-130-233-24.inter.net.il [83.130.233.24]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id JXP69746 (AUTH halo1); Wed, 16 Jan 2008 06:20:09 +0200 (IST) Date: Wed, 16 Jan 2008 04:20:00 -0000 Message-Id: From: Eli Zaretskii To: "Ulrich Weigand" CC: brobecker@adacore.com, msnyder@specifix.com, mark.kettenis@xs4all.nl, gdb-patches@sourceware.org In-reply-to: <200801152140.m0FLeMha003566@d12av02.megacenter.de.ibm.com> (uweigand@de.ibm.com) Subject: Re: [RFC/RFA?] Should break FILE:LINENO skip prologue? Reply-to: Eli Zaretskii References: <200801152140.m0FLeMha003566@d12av02.megacenter.de.ibm.com> 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-01/txt/msg00378.txt.bz2 > Date: Tue, 15 Jan 2008 22:40:22 +0100 (CET) > From: "Ulrich Weigand" > Cc: brobecker@adacore.com (Joel Brobecker), msnyder@specifix.com, > mark.kettenis@xs4all.nl, gdb-patches@sourceware.org > > Eli Zaretskii wrote: > > > Date: Tue, 15 Jan 2008 04:38:32 -0800 > > > From: Joel Brobecker > > > > > > > By the way, has anyone tried *FILENAME:FUNCTION? I'm surprised that > > > > works, since it would have to be part of the C parser. > > > > > > Confirmed - it doesn't work. > > > > Which is a bug, IMO: if FUNCTION works, so should FILENAME:FUNCTION, > > otherwise GDB is inconsistent in its treatment of locations specs. > > Actually, I disagree that this is inconsistent. The point is that > the EXPRESSION part of a *EXPRESSION location spec is *not* itself > a location spec, but an *expression*. You are talking from the GDB code point of views, while I'm talking from the user point of view. Btw, the manual does not say *EXPRESSION, it says *ADDRESS. Anyway, if "break *FILENAME:FUNCTION" does not need to work, then how does one set a breakpoint on the entry point of FILENAME:FUNCTION, after the suggested change that makes "break FUNCTION" behave differently than "break *FUNCTION"?