]> Cypherpunks repositories - gostls13.git/commit
runtime: allow pointers to strings to be printed
authorLee Packham <lpackham@gmail.com>
Mon, 30 Mar 2015 16:36:49 +0000 (17:36 +0100)
committerIan Lance Taylor <iant@golang.org>
Mon, 30 Mar 2015 23:59:24 +0000 (23:59 +0000)
commitc45751e8a50d6050c6090d654364d69599b2e97a
tree04ebb4f8d4ea3aae7107de5acaf915b745c53a5f
parent6ca91d264f521a132e5b4c3232bb3850f017d021
runtime: allow pointers to strings to be printed

Being able to printer pointers to strings means one will able to output
the result of things like the flag library and other components that use
string pointers.

While here, adjusted the tests for gdb to test original string pretty
printing as well as pointers to them. It was doing it via the map before
but for completeness this ensures it's tested as a unit.

Change-Id: I4926547ae4fa6c85ef74301e7d96d49ba4a7b0c6
Reviewed-on: https://go-review.googlesource.com/8217
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/runtime-gdb.py
src/runtime/runtime-gdb_test.go