This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: preserve line number when skipping prologue
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: Tom Tromey <tromey at redhat dot com>, gdb-patches at sourceware dot org
- Date: Thu, 26 Mar 2009 22:18:42 -0400
- Subject: Re: RFC: preserve line number when skipping prologue
- References: <m3tz5gvwe3.fsf@fleche.redhat.com> <20090326224949.GM9472@adacore.com>
On Thu, Mar 26, 2009 at 03:49:49PM -0700, Joel Brobecker wrote:
> I don't know which one I prefer, though. Actually, I think I would
> prefer if GDB reported the real line on which it was inserted. But
> that would be a change of behavior from before, and that could
> have ramifications that could potentially annoys the users
> (on the "clear" command, for instance).
FWIW, a (related) request we often see is for IDEs to report which
lines can have breakpoints set on them. Still not foolproof with
optimized code, but much better. Eclipse JDT (Java) does this, and I
believe at least one vendor has managed to get CDT to do it also.
--
Daniel Jacobowitz
CodeSourcery