]> Cypherpunks repositories - gostls13.git/commit
runtime: skip functions with no lines when building src line table
authorIan Lance Taylor <iant@golang.org>
Thu, 21 Apr 2011 15:32:58 +0000 (08:32 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 21 Apr 2011 15:32:58 +0000 (08:32 -0700)
commit1f09cc25a16ab8f752e79379bc86fe126d2be08f
treea4d07300061e9be921ee0cd8e99e28f6b807ed75
parent946a4ea0e3a1bf2018a7345aef157cddf3919be5
runtime: skip functions with no lines when building src line table

Avoid getting out of synch when a function, such as main.init,
has no associated line number information.  Without this the
function before main.init can skip the PC all the way to the
next function, which will cause the next function's line table
to be associated with main.init, and leave subsequent
functions with the wrong line numbers.

R=rsc
CC=golang-dev
https://golang.org/cl/4426055
src/pkg/runtime/symtab.c