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: preserve line number when skipping prologue


> 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


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