Re: RFC: preserve line number when skipping prologue

Joel Brobecker
2009-03-27T15:55:25Z

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

I guess the way they do it is by doing a reverse lookup after having
inserted the breakpoint (by using the "info line *ADDR" or its MI
equivalent)? For IDEs, we could perhaps enhance the output to include
the actual line if different from the requested one.

Or, we could decide to change the break command to report the
actual line. I can poll the AdaCore engineers :).

--
Joel