runtime: fix runtime-gdb script loading

runtime.rtype was a copy of reflect.rtype - update script to use that directly.
Introduces a basic test which will skip on systems without appropriate GDB.

Fixes #9326

Change-Id: I6ec74e947bd2e1295492ca34b3a8c1b49315a8cb
Reviewed-on: https://go-review.googlesource.com/2821
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Paul Nasrat 2015-01-14 14:32:01 -05:00 committed by Ian Lance Taylor
parent 7785be8f22
commit a25af2e99e
2 changed files with 60 additions and 1 deletions

View file

@ -202,7 +202,7 @@ def lookup_type(name):
except gdb.error:
pass
_rctp_type = gdb.lookup_type("struct runtime.rtype").pointer()
_rctp_type = gdb.lookup_type("struct reflect.rtype").pointer()
def iface_commontype(obj):