This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Add option to skip prologue in "break FILE:LINENO" (take 2)
- From: Jim Blandy <jimb at codesourcery dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 10 Jan 2008 09:24:33 -0800
- Subject: Re: [RFA] Add option to skip prologue in "break FILE:LINENO" (take 2)
- References: <20080110151312.GC13181@adacore.com>
Joel Brobecker <brobecker at adacore.com> writes:
> Following a request for comments regarding a proposed change of behavior
> when inserting a breakpoint on a specific line number, we received a
> variety of comments, and it appears very clearly that the proposal
> was at the very least controversial.
>
> So, here is a new proposal where the existing behavior is preserved.
> A new set/show command is introduced to allow the user to configure
> GDB to activate the new proposed behavior:
>
> (gdb) set/show breakpoint skip-prologue
>
> The help text for this command explains the purpose of this option:
>
> Set the debugger behavior when inserting a breakpoint on a specific line.
> When inserting a breakpoint on a specific line number that corresponds
> to the prologue of a function, the debugger will automatically adjust
> its location to the first line past the prologue if this option is set.
>
> By default, this option is OFF, preserving the current behavior.
> I think this should take care of all the objections I read so far.
Some of Michael's objections I didn't understand at all --- he seemed
to believe that the change would affect GDB's behavior in ways I think
it won't. I don't think your change would affect the usage that was
most important to him.
I'd like to get that (or perhaps just me) straightened out before we
add an option. Options of this sort are effective at resolving
contentious mailing list threads, but not very effective for the vast
majority of users. Most users have little or no interest in GDB for
its own sake, and won't look for options like 'set breakpoint
skip-prologue', so subtle improvements that are disabled by default
have almost no impact.