From 9dbfda5857ca5481135c960ead3e9bce153cc8b6 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Wed, 21 Mar 2012 00:42:53 +0800 Subject: [PATCH] doc/debugging_with_gdb: format & content update R=adg, lvd CC=golang-dev https://golang.org/cl/5845065 --- doc/debugging_with_gdb.html | 77 +++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 38 deletions(-) diff --git a/doc/debugging_with_gdb.html b/doc/debugging_with_gdb.html index 84cc488db84..1ac1c1fd8ac 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.