Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1778)

Side by Side Diff: src/pkg/runtime/traceback_x86.c

Issue 11590043: code review 11590043: runtime: cleanup: use ArgsSizeUnknown to mark all functions (Closed)
Patch Set: diff -r 548d6782f20e https://khr%40golang.org@code.google.com/p/go/ Created 11 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/runtime/traceback_arm.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/pkg/runtime/traceback_arm.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b