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

Eli Zaretskii
2008-01-16T04:20:51Z

> Date: Tue, 15 Jan 2008 22:40:22 +0100 (CET)
> From: "Ulrich Weigand" <uweigand@de.ibm.com>
> 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 <brobecker@adacore.com>
> > >
> > > > 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"?