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.