proc: only apply regabiMallocgcWorkaround to first image
The workaround for runtime.mallocgc with regabi should only be applied to the first image.
This commit is contained in:
parent
4a004e4bc1
commit
ee1719f6eb
@ -1824,7 +1824,7 @@ func (bi *BinaryInfo) loadDebugInfoMaps(image *Image, debugInfoBytes, debugLineB
|
||||
if bi.regabi {
|
||||
// prepare patch for runtime.mallocgc's DIE
|
||||
fn := bi.LookupFunc["runtime.mallocgc"]
|
||||
if fn != nil {
|
||||
if fn != nil && fn.cu.image == image {
|
||||
tree, err := image.getDwarfTree(fn.offset)
|
||||
if err == nil {
|
||||
tree.Children, err = regabiMallocgcWorkaround(bi)
|
||||
|
Loading…
Reference in New Issue
Block a user