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

Eli Zaretskii
2008-01-12T12:18:34Z

> Date: Fri, 11 Jan 2008 22:13:49 +0100 (CET)
> From: Mark Kettenis <mark.kettenis@xs4all.nl>
> CC: brobecker@adacore.com, schwab@suse.de, gdb-patches@sourceware.org
>
> > Suppose I do want to step through the function prolog -- how would I
> > accomplish that after your changes?
>
> Like you always did: break *my_procedure

In that case, I think we will need an appropriate change for the
manual as well, as right now, "break *my_procedure" and "break 2" are
equivalent (at least AFAIK). The manual says:

`break FUNCTION'
Set a breakpoint at entry to function FUNCTION. When using source
languages that permit overloading of symbols, such as C++,
FUNCTION may refer to more than one possible place to break.
*Note Breakpoint Menus: Breakpoint Menus, for a discussion of that
situation.

This doesn't say anything about function prologs.

`break *ADDRESS'
Set a breakpoint at address ADDRESS. You can use this to set
breakpoints in parts of your program which do not have debugging
information or source files.

This doesn't say anything about the possible distinction between
*my_procedure as the address and 2 as its source line number.

Am I missing something?