]> Cypherpunks repositories - gostls13.git/commit
runtime: repair slice, string, and channel printing in gdb
authorDavid Chase <drchase@google.com>
Mon, 1 Jun 2020 18:30:24 +0000 (14:30 -0400)
committerDavid Chase <drchase@google.com>
Tue, 2 Jun 2020 21:19:07 +0000 (21:19 +0000)
commitee776b41267ee910196b616b7104f0e5ed63d2b2
tree10b20ff21009248a090ffd32965ec0730bbbf7e5
parent1193958d6b33888bcb50e22ae9c1cfdcde274c9b
runtime: repair slice, string, and channel printing in gdb

"Something" changed the names of types in gdb, causing the
pretty-printer matchers to fail to match.  This tracks that
change.

Updated runtime-gdb_test.go to include a slice and a channel printing test.

(The straightforward printing of a slicevar doesn't work because
of compiler DWARF problems describing the slicevar, not gdb problems).

Change-Id: I21607a955b9c894f11ecf3763aea2a6dd59a3f42
Reviewed-on: https://go-review.googlesource.com/c/go/+/235926
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/runtime/runtime-gdb.py
src/runtime/runtime-gdb_test.go