diff options
| author | Keith Randall <khr@golang.org> | 2014-01-23 12:47:30 -0800 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2014-01-23 12:47:30 -0800 |
| commit | be5d2d443247e8ab447f962a6bb583e62c746f60 (patch) | |
| tree | 229fe67d19f4006f0e4ef3612ac57f1ecff3b6ea /src/pkg/runtime/runtime.h | |
| parent | 0ad2cd004c94c664dfee3ff16e9d587467f99883 (diff) | |
| download | go-be5d2d443247e8ab447f962a6bb583e62c746f60.tar.xz | |
runtime: Print elision message if we skipped frames on traceback.
Fixes bug 7180
R=golang-codereviews, dvyukov
CC=golang-codereviews, gri
https://golang.org/cl/55810044
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index c4c47964b9..13fb554547 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -716,6 +716,11 @@ void runtime·traceback(uintptr pc, uintptr sp, uintptr lr, G* gp); void runtime·tracebackothers(G*); bool runtime·haszeroargs(uintptr pc); bool runtime·topofstack(Func*); +enum +{ + // The maximum number of frames we print for a traceback + TracebackMaxFrames = 100, +}; /* * external data |
