mirror of
https://github.com/go-delve/delve.git
synced 2025-11-01 20:20:40 +08:00
dwarf,proc: various fixes to support DWARFv5 (#3893)
Miscellaneous fixes to our DWARFv5 implementation, several contributed by @thanm.
This commit is contained in:
committed by
GitHub
parent
1df310a2e3
commit
e6e7aeb667
@ -63,6 +63,7 @@ const (
|
||||
lineRangeGo18 uint8 = 10
|
||||
versionGo14 uint16 = 2
|
||||
versionGo111 uint16 = 3
|
||||
versionGo125 uint16 = 5
|
||||
opcodeBaseGo14 uint8 = 10
|
||||
opcodeBaseGo111 uint8 = 11
|
||||
)
|
||||
@ -79,7 +80,7 @@ func testDebugLinePrologueParser(p string, t *testing.T) {
|
||||
for _, dbl := range debugLines {
|
||||
prologue := dbl.Prologue
|
||||
|
||||
if prologue.Version != versionGo14 && prologue.Version != versionGo111 {
|
||||
if prologue.Version != versionGo14 && prologue.Version != versionGo111 && prologue.Version != versionGo125 {
|
||||
t.Fatal("Version not parsed correctly", prologue.Version)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user