]> Cypherpunks repositories - gostls13.git/commit
runtime: fix traceback of trap on ARM
authorRuss Cox <rsc@golang.org>
Sun, 14 Sep 2014 20:39:08 +0000 (20:39 +0000)
committerRuss Cox <rsc@golang.org>
Sun, 14 Sep 2014 20:39:08 +0000 (20:39 +0000)
commitd889f5f01efc9f8da8865f5987f6a8f3029928c0
treec15629b7beb17fa578c635713a0e028b9996e603
parent40dd6bf38e06bf26aa1c15438cdf0965cf778050
runtime: fix traceback of trap on ARM

The merged traceback was wrong for LR machines,
because traceback didn't pass lr to gentraceback.
Now that we have a test looking at traceback output
for a trap (the test of runtime.Breakpoint),
we caught this.

While we're here, fix a 'set and not used' warning.

Fixes arm build.

TBR=r
R=r
CC=golang-codereviews
https://golang.org/cl/143040043
src/runtime/mgc0.c
src/runtime/traceback.go