]> Cypherpunks repositories - gostls13.git/commitdiff
fix handling of line numbers for first function
authorRuss Cox <rsc@golang.org>
Sat, 16 May 2009 00:26:08 +0000 (17:26 -0700)
committerRuss Cox <rsc@golang.org>
Sat, 16 May 2009 00:26:08 +0000 (17:26 -0700)
R=r
DELTA=2  (1 added, 0 deleted, 1 changed)
OCL=28949
CL=28951

src/runtime/symtab.c

index 10debe52f0bfb6712037c2c57a2765b05c5b99ef..b4802715e17238bb2b540e43b988865ce965a83d 100644 (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) {