This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC/RFA?] Should break FILE:LINENO skip prologue?


On Thu, 2008-01-17 at 06:13 +0200, Eli Zaretskii wrote:
> > Cc: Mark Kettenis <mark.kettenis@xs4all.nl>,  uweigand@de.ibm.com,
> > 	  brobecker@adacore.com,  msnyder@specifix.com,
> > 	  gdb-patches@sourceware.org
> > From: Jim Blandy <jimb@codesourcery.com>
> > 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.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]