go/src
Josh Bleecher Snyder 565807566e runtime: improve ExampleFrames
CL 40876 changed ExampleFrames so that the output
was stable with and without mid-stack inlining.

However, that change lost some of the
pedagogical and copy/paste value of the example.
It was unclear why both more and i were being tracked,
and whether the 5 in i < 5 is related to len(pc),
and if so, why and how.

This CL rewrites the example with lots more comments,
and such that the core structure more closely matches
normal usage, and such that it is obvious
which lines of code should be deleted when copying.
As a bonus, it also now illustrates Frame.File.

Change-Id: Iab73541dd096657ddf79c5795337e8b596d89740
Reviewed-on: https://go-review.googlesource.com/41136
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
2017-04-20 19:46:01 +00:00
..
archive
bufio all: remove redundant returns 2017-04-19 20:03:51 +00:00
builtin
bytes
cmd cmd/compile/internal/gc: make defframe arch-independent 2017-04-20 18:34:14 +00:00
compress
container
context
crypto crypto/elliptic: fix carry bug in x86-64 P-256 implementation. 2017-04-19 18:07:31 +00:00
database/sql
debug
encoding all: remove redundant returns 2017-04-19 20:03:51 +00:00
errors
expvar
flag
fmt
go all: remove redundant returns 2017-04-19 20:03:51 +00:00
hash
html html/template: ignore case when handling type attribute in script element 2017-04-20 18:53:09 +00:00
image
index/suffixarray
internal runtime: record swept and reclaimed bytes in sweep trace 2017-04-19 18:31:14 +00:00
io io: correctly compute call depth in test 2017-04-18 19:56:54 +00:00
log
math cmd/asm, cmd/internal/obj/s390x, math: add LGDR and LDGR instructions 2017-04-17 16:33:51 +00:00
mime
net all: remove redundant returns 2017-04-19 20:03:51 +00:00
os
path
plugin
reflect reflect: document ptrdata field of rtype 2017-04-18 15:30:04 +00:00
regexp regexp: Use []bool instead of map[uint32]bool in makeOnePass 2017-04-16 15:24:48 +00:00
runtime runtime: improve ExampleFrames 2017-04-20 19:46:01 +00:00
sort
strconv
strings
sync cmd/vet: skip unreachable "if" and "case" code in shift check. 2017-04-19 20:03:37 +00:00
syscall syscall: add Accept4 and SOCK_{CLOEXEC,NONBLOCK} on dragonfly 2017-04-18 03:55:27 +00:00
testing testing: add TB.Helper to better support test helpers 2017-04-14 16:47:25 +00:00
text all: remove redundant returns 2017-04-19 20:03:51 +00:00
time
unicode
unsafe
vendor/golang_org/x vendor: update golang_org/x/net/route package 2017-04-16 15:24:12 +00:00
Make.dist
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc