pkg/terminal: print DWARF location expression with whatis

Adds a configuration option (show-location-expr) that when activated
will cause the whatis command to also print the DWARF location
expression for a variable.
This commit is contained in:
aarzilli
2017-11-21 09:50:14 +01:00
committed by Derek Parker
parent 926a6107ff
commit 1758f8523a
9 changed files with 100 additions and 13 deletions

View File

@ -332,7 +332,7 @@ func (it *stackIterator) frameBase(fn *Function) int64 {
if err != nil {
return 0
}
fb, _, _ := it.bi.Location(e, dwarf.AttrFrameBase, it.pc, it.regs)
fb, _, _, _ := it.bi.Location(e, dwarf.AttrFrameBase, it.pc, it.regs)
return fb
}