1
0
mirror of https://github.com/golang/go synced 2024-11-18 16:14:46 -07:00

fix handling of line numbers for first function

R=r
DELTA=2  (1 added, 0 deleted, 1 changed)
OCL=28949
CL=28951
This commit is contained in:
Russ Cox 2009-05-15 17:26:08 -07:00
parent c54699c977
commit a343e5ceb1

View File

@ -250,8 +250,9 @@ splitpcln(void)
f = func;
ef = func + nfunc;
f->pcln.array = p;
pc = func[0].entry; // text base
f->pcln.array = p;
f->pc0 = pc - PcQuant;
line = 0;
for(; p < ep; p++) {
if(f < ef && pc >= (f+1)->entry) {