From d9c4cef67050791892511d1c2cb653dbcb15204c Mon Sep 17 00:00:00 2001
From: Shenghou Ma '-s'
flag to the linker to omit the debug information
(for example, go build -ldflags "-s" prog.go
).
+The code generated by the gc
compiler includes inlining of
+function invocations and registerization of variables. These optimizations
+can sometimes make debugging with gdb
harder. To disable them
+when debugging, pass the flags -gcflags "-N -l"
to the
+go
command used to build the code being
+debugged.
+