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?
> Date: Sat, 12 Jan 2008 17:55:13 +0200
> From: Eli Zaretskii <eliz@gnu.org>
>
> > Date: Sat, 12 Jan 2008 16:31:32 +0100 (CET)
> > From: Mark Kettenis <mark.kettenis@xs4all.nl>
> > CC: gdb-patches@sourceware.org
> >
> > *FUNCTION and *FILENAME:FUNCTION are just special cases of *EXPRESSION
>
> "*FUNCTION" is generally not a useful C expression, unless FUNCTION
> returns a pointer. So I don't want to rely on the user to guess this
> magic in GDB.
Actually *FUNCTION is a perfectly valid C expression, unlike for
example the case where EXPRESSION isn't a pointer like in *0x12345678.
I have no objection to explicitly listing *FUNCTION as a specific
example of *EXPRESSION, but putting it in a whole different class is
misleading IMHO.