]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.3] cmd/ld: fix PC deltas in DWARF line number table
authorRuss Cox <rsc@golang.org>
Wed, 11 Jun 2014 20:55:38 +0000 (16:55 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 11 Jun 2014 20:55:38 +0000 (16:55 -0400)
commit16367614fbcd4ccdc6662e71bea76f3fbe6a7545
tree8c3c08d2388946733c24b62b25c5c49a78654f8b
parentcbffba160ce7b9333898592118871d1fe5fbd7ca
[release-branch.go1.3] cmd/ld: fix PC deltas in DWARF line number table

««« CL 104950045 / 87daa424d96a
cmd/ld: fix PC deltas in DWARF line number table

The putpclcdelta function set the DWARF line number PC to
s->value + pcline->pc, which is correct, but the code then set
the local variable pc to epc, which can be a different value.
This caused the next delta in the DWARF table to be wrong.

Fixes #8098.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/104950045
»»»

LGTM=r
R=golang-codereviews, r
CC=bradfitz, golang-codereviews, iant
https://golang.org/cl/107900045
src/cmd/ld/dwarf.c