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

Eli Zaretskii
2008-01-12T16:26:41Z

> Date: Sat, 12 Jan 2008 08:02:33 -0800
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: Mark Kettenis <mark.kettenis@xs4all.nl>, gdb-patches@sourceware.org
>
> So, in C, *FUNCTION is the first instruction of our function. However,
> in Ada, calls to parameterless function are made by just using the name
> of that function. For instance:
>
> A := Get_A;
>
> So the, when you say "break *FUNCTION", then GDB will first call
> FUNCTION, and break at the value returned by that function. So you
> have to use "break *FUNCTION'Address", or more simply "break
> *&FUNCTION" should work.

Sorry, I'm not sure I follow: are you saying that "break *Get_A" will
not work when you debug an Ada program?