Skip to content

Commit

Permalink
Change interface type name to match IDA
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemk14ebr committed Oct 12, 2023
1 parent d5b0f4f commit 6d33cb4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions objfile/objfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ func (e *Entry) ParseType_impl(runtimeVersion string, moduleData *ModuleData, ty
}

interfaceDef := fmt.Sprintf("type %s interface {", _type.Str)
cinterfaceDef := fmt.Sprintf("struct %s_interface {\n", _type.CStr)
cinterfaceDef := fmt.Sprintf("struct %s {\n", _type.CStr)

// type imethod struct {
// name *string // name of method
Expand Down Expand Up @@ -1519,11 +1519,9 @@ func (e *Entry) ParseType_impl(runtimeVersion string, moduleData *ModuleData, ty

interfaceDef := "type interface {"
cinterfaceDef := "struct interface {\n"
(*_type).CStr = "interface_"
if _type.flags&tflagNamed != 0 {
interfaceDef = fmt.Sprintf("type %s interface {", _type.Str)
cinterfaceDef = fmt.Sprintf("struct %s_interface {\n", _type.CStr)
(*_type).CStr = fmt.Sprintf("%s_interface", _type.CStr)
cinterfaceDef = fmt.Sprintf("struct %s {\n", _type.CStr)
}

// type imethod struct {
Expand Down

0 comments on commit 6d33cb4

Please sign in to comment.