summaryrefslogtreecommitdiff
path: root/src/runtime/defs_windows_386.go
Commit message (Collapse)AuthorAgeFilesLines
* runtime: use (*context) ip, setip, sp and setsp everywhere on windowsAlex Brainman2015-04-091-0/+16
| | | | | | | | Also move dumpregs into defs_windows_*.go. Change-Id: Ic077d7dbb133c7b812856e758d696d6fed557afd Reviewed-on: https://go-review.googlesource.com/4650 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
* runtime: introduce CPU access functions on windowsAlex Brainman2015-02-101-0/+6
| | | | | | | | | | | | | | | | | This CL introduces new methods for 'context' type, so we can manipulate its values in an architecture independent way. Use new methods to replace both 386 and amd64 versions of dosigprof with single piece of code. There is more similar code to be converted in the following CLs. Also remove os_windows_386.go and os_windows_amd64.go. These contain unused functions. Change-Id: I28f76aeb97f6e4249843d30d3d0c33fb233d3f7f Reviewed-on: https://go-review.googlesource.com/2790 Reviewed-by: Minux Ma <minux@golang.org>
* runtime: log all thread stack traces during GODEBUG=crash on Linux and OS XRuss Cox2015-01-141-1/+0
| | | | | | | | | | | | | Normally, a panic/throw only shows the thread stack for the current thread and all paused goroutines. Goroutines running on other threads, or other threads running on their system stacks, are opaque. Change that when GODEBUG=crash, by passing a SIGQUIT around to all the threads when GODEBUG=crash. If this works out reasonably well, we might make the SIGQUIT relay part of the standard panic/throw death, perhaps eliding idle m's. Change-Id: If7dd354f7f3a6e326d17c254afcf4f7681af2f8b Reviewed-on: https://go-review.googlesource.com/2811 Reviewed-by: Rick Hudson <rlh@golang.org>
* runtime: provide a dummy value of _SIGPROF on plan9 and windowsShenghou Ma2015-01-011-0/+1
| | | | | | | | Fixes build on plan9 and windows. Change-Id: Ic9b02c641ab84e4f6d8149de71b9eb495e3343b2 Reviewed-on: https://go-review.googlesource.com/2233 Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
* [dev.cc] runtime: convert defs_$GOOS_$GOARCH.h to GoRuss Cox2014-11-111-0/+109
The conversion was done with an automated tool and then modified only as necessary to make it compile and run. In a few cases, defs_$GOOS_$GOARCH.go already existed, so the target here is defs1_$GOOS_$GOARCH.go. [This CL is part of the removal of C code from package runtime. See golang.org/s/dev.cc for an overview.] LGTM=r R=r CC=austin, dvyukov, golang-codereviews, iant, khr https://golang.org/cl/171490043