Skip to content

Commit 3e30c33

Browse files
committed
Add GoPCLnTab support as SymbolSource
1 parent 760d320 commit 3e30c33

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

reporter/symbol_source.go

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const (
1414
DynamicSymbolTable
1515
SymbolTable
1616
DebugInfo
17+
GoPCLnTab
1718
)
1819

1920
func (s SymbolSource) String() string {
@@ -26,7 +27,10 @@ func (s SymbolSource) String() string {
2627
return "symbol_table"
2728
case DebugInfo:
2829
return "debug_info"
30+
case GoPCLnTab:
31+
return "gopclntab"
2932
}
33+
3034
return "unknown"
3135
}
3236

@@ -40,6 +44,8 @@ func NewSymbolSource(s string) (SymbolSource, error) {
4044
return SymbolTable, nil
4145
case "debug_info":
4246
return DebugInfo, nil
47+
case "gopclntab":
48+
return GoPCLnTab, nil
4349
}
4450
return None, fmt.Errorf("unknown symbol source: %s", s)
4551
}

0 commit comments

Comments
 (0)