Created
May 24, 2013 01:00
-
-
Save summivox/5640649 to your computer and use it in GitHub Desktop.
go1.1 windows binary workaround: gdb can't find go runtime sources due to wrong GOROOT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| echo NOTE: Run with administer rights! | |
| echo. | |
| :: set this to whatever gdb throws at you (between `c:` and `\go`) | |
| set FAKE_GOROOT="\Users\ADMINI~1\AppData\Local\Temp\2\bindist357622851" | |
| c: | |
| if not exist %FAKE_GOROOT% ( | |
| mkdir %FAKE_GOROOT% > nul | |
| ) | |
| cd %FAKE_GOROOT% | |
| cd | |
| mklink /J go %GOROOT% | |
| if errorlevel 1 ( | |
| echo fail: %ERRORLEVEL% | |
| ) else ( | |
| echo success | |
| ) | |
| pause | |
| :eof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can add to this file:
echo add-auto-load-safe-path %~FAKE_GOROOT% > %HOME%.gdbinit
to allow GDB load all files from this directory