+ adapted TOmfObjSymbol.AddressStr to show correct segment:offset for NewExe files as well

git-svn-id: trunk@42567 -
This commit is contained in:
nickysn 2019-08-02 22:47:44 +00:00
parent b739d79f9b
commit 2c176be2fd

View File

@ -598,11 +598,16 @@ implementation
var var
base: qword; base: qword;
begin begin
if assigned(TOmfObjSection(objsection).MZExeUnifiedLogicalSegment) then if assigned(objsection.ExeSection) and (objsection.ExeSection is TNewExeSection) then
base:=TOmfObjSection(objsection).MZExeUnifiedLogicalSegment.MemBasePos Result:=HexStr(TNewExeSection(objsection.ExeSection).MemBasePos,4)+':'+HexStr(address,4)
else else
base:=(address shr 4) shl 4; begin
Result:=HexStr(base shr 4,4)+':'+HexStr(address-base,4); if assigned(TOmfObjSection(objsection).MZExeUnifiedLogicalSegment) then
base:=TOmfObjSection(objsection).MZExeUnifiedLogicalSegment.MemBasePos
else
base:=(address shr 4) shl 4;
Result:=HexStr(base shr 4,4)+':'+HexStr(address-base,4);
end;
end; end;
{**************************************************************************** {****************************************************************************