diff options
| author | Dave Cheney <dave@cheney.net> | 2014-09-23 15:34:38 +1000 |
|---|---|---|
| committer | Dave Cheney <dave@cheney.net> | 2014-09-23 15:34:38 +1000 |
| commit | c486d4130d01f1034901d65c764b8e8ae329a01b (patch) | |
| tree | f72db672ab37456c64c366c8520dfc2745df704e /src/runtime | |
| parent | dcb594ec30f428b4b116682a7536ed694526f0e5 (diff) | |
| download | go-c486d4130d01f1034901d65c764b8e8ae329a01b.tar.xz | |
runtime: fix runtime.Breakpoint on ARMv5
Fixes #8775.
Use the illegal instruction suggested by Ian in https://golang.org/cl/144180043/#msg4 on all arm arches.
LGTM=minux
R=golang-codereviews, gobot, rsc
CC=golang-codereviews, iant, minux
https://golang.org/cl/146130043
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/asm_arm.s | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/asm_arm.s b/src/runtime/asm_arm.s index f67f94939b..38d97b78f3 100644 --- a/src/runtime/asm_arm.s +++ b/src/runtime/asm_arm.s @@ -96,7 +96,7 @@ TEXT runtime·breakpoint(SB),NOSPLIT,$0-0 #ifdef GOOS_nacl WORD $0xe125be7f // BKPT 0x5bef, NACL_INSTR_ARM_BREAKPOINT #else - WORD $0xe1200071 // BKPT 0x0001 + WORD $0xe7f001f0 // undefined instruction that gdb understands is a software breakpoint #endif RET |
