Permalink
Browse files

添加-ldflags "-s"选项后会忽略调试信息,导致gdb不能调试

  • Loading branch information...
1 parent 2075119 commit 3fabaf0345158e27815f5b3e2e8cbf6cc015f7ae @zhaodj committed Mar 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 ebook/11.2.md
View
@@ -123,7 +123,7 @@ GDB的一些常用命令如下所示
编译文件,生成可执行文件gdbfile:
- go build -gcflags "-N -l" -ldflags "-s" gdbfile.go
+ go build -gcflags "-N -l" gdbfile.go
通过gdb命令启动调试:

0 comments on commit 3fabaf0

Please sign in to comment.