Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tetsu-koba
Created January 26, 2019 07:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tetsu-koba/648166471d7c3db6f02aa1ffec1f0259 to your computer and use it in GitHub Desktop.
Save tetsu-koba/648166471d7c3db6f02aa1ffec1f0259 to your computer and use it in GitHub Desktop.
go-gdb
#!/bin/sh
set -e
GOROOT=`go env GOROOT`
GO_GDB="${GO_GDB:-gdb}"
exec ${GO_GDB} \
--directory="$GOROOT" \
-iex "add-auto-load-safe-path $GOROOT/src/runtime/runtime-gdb.py" \
"$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment