mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 17:56:45 +08:00
dwarfbuilder: fix makeAbbrevTable (#3665)
It did not terminate the section with the required 0 byte.
This commit is contained in:
committed by
GitHub
parent
26799555e5
commit
ff2f69343e
@ -244,6 +244,8 @@ func (b *Builder) makeAbbrevTable() []byte {
|
|||||||
leb128.EncodeUnsigned(&abbrev, 0)
|
leb128.EncodeUnsigned(&abbrev, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
leb128.EncodeUnsigned(&abbrev, uint64(0))
|
||||||
|
|
||||||
return abbrev.Bytes()
|
return abbrev.Bytes()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user