Re: [PATCHv3 1/7] gdb: improve line number lookup around inline functions

Tom Tromey
2025-10-27T22:22:45Z

>>>>> "Andrew" == Andrew Burgess <aburgess@redhat.com> writes:

Andrew> So my proposal is that the backward scan of the line table looking for
Andrew> an is-stmt entry should not be performed when NOTCURRENT is true. In
Andrew> the case above this means we will report the entry at index 9, which
Andrew> is for line 10, which is correct.

Thanks for the explanation. It all made sense to me.

Andrew> + if ![runto foo] {

We're bracing if conditions these days.

Otherwise this looks good to me.

Approved-By: Tom Tromey <tom@tromey.com>

Tom