Side by Side Diff: src/pkg/runtime/os_windows_386.go
Issue 134200044 :
code review 134200044: runtime: convert traceback*.c to Go (Closed)
Patch Set: diff -r df0572446e37549332e1d1154955409e2cff6008 https://code.google.com/p/go/
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
src/cmd/api/goapi.go
src/pkg/runtime/extern.go
src/pkg/runtime/heapdump.c
src/pkg/runtime/mgc0.c
src/pkg/runtime/mprof.go
src/pkg/runtime/os_windows_386.go
src/pkg/runtime/os_windows_amd64.go
src/pkg/runtime/runtime.h
src/pkg/runtime/stack.c
src/pkg/runtime/stubs.go
src/pkg/runtime/traceback.go
src/pkg/runtime/traceback_arm.c
src/pkg/runtime/traceback_windows.go
OLD NEW
(Empty) 1 // Copyright 2014 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package runtime
6
7 // contextPC returns the EIP (program counter) register from the context.
8 func contextPC(r *context) uintptr { return uintptr(r.eip) }
9
10 // contextSP returns the ESP (stack pointer) register from the context.
11 func contextSP(r *context) uintptr { return uintptr(r.esp) }
OLD NEW