]> Cypherpunks repositories - gostls13.git/commit
runtime: make gdb test resilient to line numbering
authorKeith Randall <khr@golang.org>
Mon, 12 Sep 2016 22:19:36 +0000 (15:19 -0700)
committerKeith Randall <khr@golang.org>
Mon, 12 Sep 2016 23:13:12 +0000 (23:13 +0000)
commitd00a3cead8423c8af6c5781aa2a3efe0a9a442ae
tree7a9a7214a2f2842d4083f05b69fce5d55ee7e1f5
parent6ca7c2055bd114c08426d3dbdee444b280b569b6
runtime: make gdb test resilient to line numbering

Don't break on line number, instead break on the actual call.
This makes the test more robust to line numbering changes in the backend.

A CL (28950) changed the generated code line numbering slightly.  A MOVW
$0, R0 instruction at the start of the function changed to line
10 (because several constant zero instructions got CSEd, and one gets
picked arbitrarily).  That's too fragile for a test.

Change-Id: I5d6a8ef0603de7d727585004142780a527e70496
Reviewed-on: https://go-review.googlesource.com/29085
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/runtime-gdb_test.go