From 519725bb3c075ee2462c929f5997cb068e18466a Mon Sep 17 00:00:00 2001 From: Ondřej Surý Date: Mon, 26 Mar 2012 16:50:58 +0200 Subject: Imported Upstream version 2012.03.22 --- doc/debugging_with_gdb.html | 83 +++++++++++++++++++++++---------------------- 1 file changed, 42 insertions(+), 41 deletions(-) (limited to 'doc/debugging_with_gdb.html') diff --git a/doc/debugging_with_gdb.html b/doc/debugging_with_gdb.html index 43977b777..1ac1c1fd8 100644 --- a/doc/debugging_with_gdb.html +++ b/doc/debugging_with_gdb.html @@ -4,22 +4,23 @@ }-->

-This applies to the 6g toolchain. Gccgo has native gdb support. Besides this -overview you might want to consult the +This applies to the gc toolchain. Gccgo has native gdb support. +Besides this overview you might want to consult the GDB manual.

Introduction

-When you compile and link your Go programs with the 6g/6l or 8g/8l toolchains -on Linux, Mac OSX or FreeBSD, the resulting binaries contain DWARFv3 -debugging information that recent versions (>7.1) of the GDB debugger can +When you compile and link your Go programs with the gc toolchain +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.