From 75f4aa86bacb668348e788692974aa554cc61915 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 27 Sep 2018 14:52:41 -0700 Subject: [PATCH] doc: mention -compressdwarf=false on gdb page Update #11799 Change-Id: I2646a52bfb8aecb67a664a7c6fba25511a1aa49f Reviewed-on: https://go-review.googlesource.com/138182 Reviewed-by: Heschi Kreinick Reviewed-by: David Chase --- doc/debugging_with_gdb.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/debugging_with_gdb.html b/doc/debugging_with_gdb.html index f3b4e37a28..a6b0054d4f 100644 --- a/doc/debugging_with_gdb.html +++ b/doc/debugging_with_gdb.html @@ -180,6 +180,15 @@ from it. that needs to be quoted. It objects even more strongly to method names of the form pkg.(*MyType).Meth.
  • All global variables are lumped into package "main".
  • +
  • As of Go 1.11, debug information is compressed by default. +Older versions of gdb, such as the one available by default on MacOS, +do not understand the compression. +You can generate uncompressed debug information by using go +build -ldflags=-compressdwarf=false. +(For convenience you can put the -ldflags option in +the GOFLAGS +environment variable so that you don't have to specify it each time.) +
  • Tutorial

    -- 2.50.0