This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]