LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // +build amd64 386 | 5 // +build amd64 386 |
6 | 6 |
7 #include "runtime.h" | 7 #include "runtime.h" |
8 #include "arch_GOARCH.h" | 8 #include "arch_GOARCH.h" |
9 #include "malloc.h" | 9 #include "malloc.h" |
| 10 #include "funcdata.h" |
10 | 11 |
11 void runtime·deferproc(void); | 12 void runtime·deferproc(void); |
12 void runtime·newproc(void); | 13 void runtime·newproc(void); |
13 void runtime·morestack(void); | 14 void runtime·morestack(void); |
14 void runtime·sigpanic(void); | 15 void runtime·sigpanic(void); |
15 | 16 |
16 // This code is also used for the 386 tracebacks. | 17 // This code is also used for the 386 tracebacks. |
17 // Use uintptr for an appropriate word-sized integer. | 18 // Use uintptr for an appropriate word-sized integer. |
18 | 19 |
19 static String unknown = { (uint8*)"?", 1 }; | 20 static String unknown = { (uint8*)"?", 1 }; |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 int32 | 262 int32 |
262 runtime·callers(int32 skip, uintptr *pcbuf, int32 m) | 263 runtime·callers(int32 skip, uintptr *pcbuf, int32 m) |
263 { | 264 { |
264 uintptr pc, sp; | 265 uintptr pc, sp; |
265 | 266 |
266 sp = runtime·getcallersp(&skip); | 267 sp = runtime·getcallersp(&skip); |
267 pc = (uintptr)runtime·getcallerpc(&skip); | 268 pc = (uintptr)runtime·getcallerpc(&skip); |
268 | 269 |
269 return runtime·gentraceback(pc, sp, 0, g, skip, pcbuf, m, nil, nil, fals
e); | 270 return runtime·gentraceback(pc, sp, 0, g, skip, pcbuf, m, nil, nil, fals
e); |
270 } | 271 } |
LEFT | RIGHT |