From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24995 invoked by alias); 14 Jan 2008 23:02:58 -0000 Received: (qmail 24984 invoked by uid 22791); 14 Jan 2008 23:02:57 -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; Mon, 14 Jan 2008 23:02:35 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id 127883BEF6; Mon, 14 Jan 2008 15:02:32 -0800 (PST) Subject: Re: [RFC/RFA?] Should break FILE:LINENO skip prologue? From: Michael Snyder To: Joel Brobecker Cc: Eli Zaretskii , mark.kettenis@xs4all.nl, gdb-patches@sourceware.org In-Reply-To: <20080113103612.GH9143@adacore.com> References: <200801112113.m0BLDnAF024595@brahms.sibelius.xs4all.nl> <200801121531.m0CFVW8I023504@brahms.sibelius.xs4all.nl> <200801121618.m0CGI27U012957@brahms.sibelius.xs4all.nl> <20080112175817.GA21954@caradoc.them.org> <20080113062450.GG9143@adacore.com> <20080113103612.GH9143@adacore.com> Content-Type: text/plain Date: Mon, 14 Jan 2008 23:02:00 -0000 Message-Id: <1200351752.3263.18.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-4.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-01/txt/msg00337.txt.bz2 On Sun, 2008-01-13 at 02:36 -0800, Joel Brobecker wrote: > > > What I suggest is that we document *FUNCTION as a special case and yet > > > very useful form of *EXPRESSION, and explain why it works. > > > > In what languages _does_ it work, besides C/C++? > > I can say for sure for some of the languages only. For sure, it will > work with c, c++, asm, minimal, objective-c. I made some experiments > by forcing the language to other values, and tried "break *main", > and it also worked for the following languages: fortran, java, > modula-2, and pascal. It did NOT work with scheme. We have users > from at least Fortran, Pascal and Modula-2, we should as them to > confirm. Joel, if my memory is correct, this is because the "*" is not interpreted by the language parser, it is interpreted by the linespec parser.