Commit 81674f31 authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

runtime: remove type.go

We have an autogenerated version in zruntime_defs.
I am not sure what are the consequences as gdb never printed any values for me.
But it looks unnecessary to manually duplicate it.

LGTM=rsc
R=golang-codereviews, rsc
CC=golang-codereviews, iant, khr
https://golang.org/cl/115660043
parent c0fca138
...@@ -2049,8 +2049,8 @@ dwarfemitdebugsections(void) ...@@ -2049,8 +2049,8 @@ dwarfemitdebugsections(void)
newattr(die, DW_AT_go_kind, DW_CLS_CONSTANT, KindUintptr, 0); newattr(die, DW_AT_go_kind, DW_CLS_CONSTANT, KindUintptr, 0);
// Needed by the prettyprinter code for interface inspection. // Needed by the prettyprinter code for interface inspection.
defgotype(lookup_or_diag("type.runtime.rtype")); defgotype(lookup_or_diag("type.runtime._type"));
defgotype(lookup_or_diag("type.runtime.interfaceType")); defgotype(lookup_or_diag("type.runtime.interfacetype"));
defgotype(lookup_or_diag("type.runtime.itab")); defgotype(lookup_or_diag("type.runtime.itab"));
genasmsym(defdwsymb); genasmsym(defdwsymb);
......
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
/*
* Runtime type representation.
* This file exists only to provide types that 6l can turn into
* DWARF information for use by gdb. Nothing else uses these.
* They should match the same types in ../reflect/type.go.
* For comments see ../reflect/type.go.
*/
package runtime
import "unsafe"
type rtype struct {
size uintptr
hash uint32
_ uint8
align uint8
fieldAlign uint8
kind uint8
alg unsafe.Pointer
gc [2]unsafe.Pointer
string *string
*uncommonType
ptrToThis *rtype
zero unsafe.Pointer
}
type _method struct {
name *string
pkgPath *string
mtyp *rtype
typ *rtype
ifn unsafe.Pointer
tfn unsafe.Pointer
}
type uncommonType struct {
name *string
pkgPath *string
methods []_method
}
type _imethod struct {
name *string
pkgPath *string
typ *rtype
}
type interfaceType struct {
rtype
methods []_imethod
}
...@@ -2,11 +2,7 @@ ...@@ -2,11 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
/* // Runtime type representation.
* Runtime type representation; master is type.go
*
* The Type*s here correspond 1-1 to type.go's *rtype.
*/
typedef struct Type Type; typedef struct Type Type;
typedef struct UncommonType UncommonType; typedef struct UncommonType UncommonType;
...@@ -16,8 +12,7 @@ typedef struct IMethod IMethod; ...@@ -16,8 +12,7 @@ typedef struct IMethod IMethod;
typedef struct SliceType SliceType; typedef struct SliceType SliceType;
typedef struct FuncType FuncType; typedef struct FuncType FuncType;
// Needs to be in sync with ../../cmd/ld/decodesym.c:/^commonsize, // Needs to be in sync with ../../cmd/ld/decodesym.c:/^commonsize and pkg/reflect/type.go:/type.
// pkg/reflect/type.go:/type anf type.go:/rtype
struct Type struct Type
{ {
uintptr size; uintptr size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment