1
0
mirror of https://github.com/golang/go synced 2024-10-04 02:21:21 -06:00
go/src
Russ Cox 54245cba1f runtime: show frames for exported runtime functions
The current Windows build failure happens because by
default runtime frames are excluded from stack traces.
Apparently the Windows breakpoint path dies with an
ordinary panic, while the Unix path dies with a throw.
Breakpoint is a strange function and I don't mind that it's
a little different on the two operating systems.

The panic squelches runtime frames but the throw shows them,
because throw is considered something that shouldn't have
happened at all, so as much detail as possible is wanted.

The runtime exclusion is meant to prevents printing too much noise
about internal runtime details. But exported functions are
not internal details, so show exported functions.
If the program dies because you called runtime.Breakpoint,
it's okay to see that frame.
This makes the Breakpoint test show Breakpoint in the
stack trace no matter how it is handled.

Should fix Windows build.
Tested on Unix by changing Breakpoint to fault instead
of doing a breakpoint.

TBR=brainman
CC=golang-codereviews
https://golang.org/cl/143300043
2014-09-18 20:35:36 -04:00
..
archive build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
bufio build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
builtin build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
bytes bytes, strings: document that FieldsFunc f must not be stateful 2014-09-18 19:40:31 -04:00
cmd lib9, cmd/ld: fixes for cross-linking on a Windows host 2014-09-18 17:27:26 -07:00
compress build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
container build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
crypto build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
database/sql build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
debug build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
encoding encoding/gob: speedup encoding 2014-09-18 10:13:15 -07:00
errors build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
expvar build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
flag build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
fmt fmt: fix allocation tests 2014-09-18 09:45:58 -07:00
go go/doc: document rationale for recent change 2014-09-18 16:53:35 -07:00
hash build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
html build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
image image/gif: fix GIF encoding of sub-images. 2014-09-18 12:43:01 +10:00
index/suffixarray build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
internal/syscall build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
io io: clarify Reader returning 0, nil 2014-09-16 10:01:28 -04:00
lib9 lib9, cmd/ld: fixes for cross-linking on a Windows host 2014-09-18 17:27:26 -07:00
libbio
liblink liblink, sync/atomic: fix arm build 2014-09-16 20:53:38 -04:00
log build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
math build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
mime build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
net net: disable TestDialMultiFDLeak 2014-09-18 14:48:26 -04:00
os os: skip TestRemoveAllRace on Windows 2014-09-18 20:13:07 -04:00
path build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
reflect reflect: add Type.Comparable 2014-09-16 17:40:10 -04:00
regexp build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
runtime runtime: show frames for exported runtime functions 2014-09-18 20:35:36 -04:00
sort build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
strconv strconv: fix documentation for CanBackquote. 2014-09-09 11:45:36 -07:00
strings bytes, strings: document that FieldsFunc f must not be stateful 2014-09-18 19:40:31 -04:00
sync sync/atomic: remove unnecessary race instrumentation in Value 2014-09-17 21:22:11 -07:00
syscall syscall: fix infinite recursion in itoa 2014-09-18 19:40:06 -04:00
testing runtime: account for tiny allocs, for testing.AllocsPerRun 2014-09-17 14:49:32 -04:00
text build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
time build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
unicode build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
unsafe build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
all.bash build: make nacl pass 2014-05-20 12:10:19 -04:00
all.bat
all.rc
androidtest.bash androidtest.bash: adjustment for move from src/pkg to src 2014-09-08 10:07:26 -04:00
clean.bash
clean.bat
clean.rc
make.bash build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
make.bat build: fix windows make.bat 2014-09-07 07:31:53 -04:00
Make.dist
make.rc build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
nacltest.bash build: more adjustments for move from src/pkg to src 2014-09-08 00:22:40 -04:00
race.bash race.bash: support freebsd 2014-06-24 15:47:22 -07:00
race.bat
run.bash run.bash: run misc/cgo/testgodefs/test.bash 2014-08-12 07:13:52 -07:00
run.bat build: remove goplay from run.bash and run.bat 2014-06-02 08:44:47 +10:00
run.rc build: be verbose when running tests on Plan 9 2014-07-20 13:14:53 +03:00
sudo.bash