]> Cypherpunks repositories - gostls13.git/commit
runtime: if traceback sees a breakpoint, don't change the PC
authorIan Lance Taylor <iant@golang.org>
Fri, 14 Feb 2014 19:06:53 +0000 (11:06 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 14 Feb 2014 19:06:53 +0000 (11:06 -0800)
commit92b4741728faca77329b204340b02e8df4f4d097
treee75238aab91941ee78418404014c120f29dea072
parent8c0a52f28d16569361b18190cf7ff280aa5301bf
runtime: if traceback sees a breakpoint, don't change the PC

Changing the PC confuses gdb, because execution does not
continue where gdb expects it.  Not changing the PC has the
potential to confuse a stack dump, but when running under gdb
it seems better to confuse a stack dump than to confuse gdb.

Fixes #6776.

LGTM=rsc
R=golang-codereviews, dvyukov, rsc
CC=golang-codereviews
https://golang.org/cl/49580044
src/pkg/runtime/sys_x86.c