mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
7785be8f22
commit
a25af2e99e
2 changed files with 60 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue