This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC/RFA?] Should break FILE:LINENO skip prologue?
- From: Eli Zaretskii <eliz at gnu dot org>
- To: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- Cc: brobecker at adacore dot com, msnyder at specifix dot com, mark dot kettenis at xs4all dot nl, gdb-patches at sourceware dot org
- Date: Wed, 16 Jan 2008 06:20:29 +0200
- Subject: Re: [RFC/RFA?] Should break FILE:LINENO skip prologue?
- References: <200801152140.m0FLeMha003566@d12av02.megacenter.de.ibm.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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"?