From: Hana Kim Date: Thu, 14 Dec 2017 21:11:03 +0000 (-0500) Subject: doc/debugging_with_gdb: update -gcflags usage X-Git-Tag: go1.10beta2~100 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bfb8f2a765d6097c82b30ae2c19c99fa1082add3;p=gostls13.git doc/debugging_with_gdb: update -gcflags usage After go1.10, compiler/linker option flags apply only to the packages listed directly on the command line unless the matching pattern is specified. For debugging, we want to apply the flags to all packages. Change-Id: Ic69eee1491b1080fc140592f200c59a6e03d87ac Reviewed-on: https://go-review.googlesource.com/84135 Reviewed-by: Ian Lance Taylor --- diff --git a/doc/debugging_with_gdb.html b/doc/debugging_with_gdb.html index 633d058c11..dc8147806b 100644 --- a/doc/debugging_with_gdb.html +++ b/doc/debugging_with_gdb.html @@ -45,7 +45,7 @@ Pass the '-w' flag to the linker to omit the debug information 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 +when debugging, pass the flags -gcflags=all="-N -l" to the go command used to build the code being debugged.