Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/goPublic

Commit1636761

Browse files
committed
[release-branch.go1.3] cmd/ld: fix PC deltas in DWARF line number table
««« CL 104950045 / 87daa424d96acmd/ld: fix PC deltas in DWARF line number tableThe putpclcdelta function set the DWARF line number PC tos->value + pcline->pc, which is correct, but the code then setthe 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=rscR=rscCC=golang-codereviewshttps://golang.org/cl/104950045»»»LGTM=rR=golang-codereviews, rCC=bradfitz, golang-codereviews, ianthttps://golang.org/cl/107900045
1 parentcbffba1 commit1636761

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/cmd/ld/dwarf.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,13 +1624,13 @@ writelines(void)
16241624
}
16251625
putpclcdelta(s->value+pcline.pc-pc,pcline.value-line);
16261626

1627-
pc=epc;
1627+
pc=s->value+pcline.pc;
1628+
line=pcline.value;
16281629
if(pcfile.nextpc<pcline.nextpc)
16291630
epc=pcfile.nextpc;
16301631
else
16311632
epc=pcline.nextpc;
16321633
epc+=s->value;
1633-
line=pcline.value;
16341634
}
16351635

16361636
da=0;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp