commit | ba42b3ffd3220516911705fd2d060ea02e5502bb | [log] [tgz] |
---|---|---|
author | Austin Clements <austin@google.com> | Tue Oct 03 15:21:55 2017 -0400 |
committer | Austin Clements <austin@google.com> | Thu Oct 05 02:02:50 2017 +0000 |
tree | fe516aab75694dfa7eca6d3d38d6056dec08bcfa | |
parent | d36cc9baf3c4127ef5c98bc8844b405d63064e48 [diff] |
cmd/link: sniff runtime-gdb.py path from runtime/proc.go Currently the linker figures out where runtime-gdb.py should be by looking for the path to runtime/debug.go. However, debug.go contains only a few symbols and can easily get dead-code eliminated entirely, especially from simple binaries. When this happens, the resulting binary lacks a reference to runtime-gdb.py, so the GDB helpers don't get loaded. Fix this by instead sniffing for runtime/proc.go. This contains runtime.main and the scheduler, so it's not going anywhere. Change-Id: Ie3380c77c840d28614fada68b8c5861625f2aff5 Reviewed-on: https://go-review.googlesource.com/68019 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install or load doc/install.html in your web browser for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source or load doc/install-source.html in your web browser for source installation instructions.
Go is the work of hundreds of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Note that the Go project does not use GitHub pull requests, and that we use the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.