From: Shenghou Ma Date: Tue, 20 Mar 2012 16:42:53 +0000 (+0800) Subject: doc/debugging_with_gdb: format & content update X-Git-Tag: weekly.2012-03-22~32 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9dbfda5857ca5481135c960ead3e9bce153cc8b6;p=gostls13.git doc/debugging_with_gdb: format & content update R=adg, lvd CC=golang-dev https://golang.org/cl/5845065 --- diff --git a/doc/debugging_with_gdb.html b/doc/debugging_with_gdb.html index 84cc488db8..1ac1c1fd8a 100644 --- a/doc/debugging_with_gdb.html +++ b/doc/debugging_with_gdb.html @@ -13,13 +13,14 @@ Besides this overview you might want to consult the

When you compile and link your Go programs with the gc toolchain -on Linux, Mac OSX or FreeBSD, the resulting binaries contain DWARFv3 -debugging information that recent versions (>7.1) of the GDB debugger can +on Linux, Mac OS X or FreeBSD, the resulting binaries contain DWARFv3 +debugging information that recent versions (>7.1) of the GDB debugger can use to inspect a live process or a core dump.

-Pass the '-s' flag to the linker to omit the debug information. +Pass the '-s' flag to the linker to omit the debug information +(for example, go build -ldflags "-s" prog.go).

@@ -28,7 +29,7 @@ Pass the '-s' flag to the linker to omit the debug information.