From b60b2e3ec6a69ac7d0ecc98013f45e006c35aa21 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Thu, 18 Mar 1993 20:02:10 +0000 Subject: [PATCH] * xcoffread.c (enter_line_range): endaddr is exclusive, not inclusive. --- gdb/ChangeLog | 4 ++++ gdb/xcoffread.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d385adfa2cb..b57908085ee 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Thu Mar 18 11:57:49 1993 Jim Kingdon (kingdon@cygnus.com) + + * xcoffread.c (enter_line_range): endaddr is exclusive, not inclusive. + Wed Mar 17 09:46:31 1993 Jim Kingdon (kingdon@cygnus.com) * xcoffread.c (arrange_linetable): Use x{m,re}alloc not {m,re}alloc. diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index c20a92ee6c8..859be277177 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -716,7 +716,7 @@ enter_line_range (subfile, beginoffset, endoffset, startaddr, endaddr, firstLine addr = P_LINENO(pp) ? P_LINEADDR(pp) : read_symbol_nvalue (P_LINESYM(pp)); - if (addr < startaddr || (endaddr && addr > endaddr)) + if (addr < startaddr || (endaddr && addr >= endaddr)) return; if (P_LINENO(pp) == 0) { -- 2.30.2