mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 00:10:25 +02:00
* use the AsQWord and AsLongWord methods to do the conversion in TGDBMI_Value.AsCoreAddr
git-svn-id: trunk@30175 -
This commit is contained in:
parent
44f272ca3f
commit
e87ce29a4e
@ -207,11 +207,11 @@ end;
|
|||||||
function TGDBMI_Value.AsCoreAddr: CORE_ADDR;
|
function TGDBMI_Value.AsCoreAddr: CORE_ADDR;
|
||||||
begin
|
begin
|
||||||
{$if defined(TARGET_IS_64BIT)}
|
{$if defined(TARGET_IS_64BIT)}
|
||||||
Result := StrToQWord(C2PascalNumberPrefix(AsString));
|
Result := AsQWord;
|
||||||
{$elseif defined(CPU64)}
|
{$elseif defined(CPU64)}
|
||||||
Result := StrToQWord(C2PascalNumberPrefix(AsString));
|
Result := AsQWord;
|
||||||
{$else}
|
{$else}
|
||||||
Result := StrToLongWord(C2PascalNumberPrefix(AsString));
|
Result := AsLongWord;
|
||||||
{$endif}
|
{$endif}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user