diff options
author | pierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2015-03-03 21:54:43 +0000 |
---|---|---|
committer | pierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2015-03-03 21:54:43 +0000 |
commit | 7446b1ddccb7516c801a56de840d70fd767ea5b7 (patch) | |
tree | 38bafb3ebd0b098f4290f857c3d26871f1c1eb2e /ide | |
parent | c366e65a50fbd6e57ed42f3e7f37189f9e63269f (diff) | |
download | fpc-7446b1ddccb7516c801a56de840d70fd767ea5b7.tar.gz |
Use sizeof(CORE_ADDR)*2 in hexstr call inside GetLongintAt and GetPointerAt methods
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@30090 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'ide')
-rw-r--r-- | ide/fpdebug.pas | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ide/fpdebug.pas b/ide/fpdebug.pas index 2321fe4629..3a49aabe92 100644 --- a/ide/fpdebug.pas +++ b/ide/fpdebug.pas @@ -1253,7 +1253,7 @@ var st : string; p : longint; begin - Command('x /wd 0x'+hexstr(longint(addr),8)); + Command('x /wd 0x'+hexstr(longint(addr),sizeof(CORE_ADDR)*2)); st:=strpas(GetOutput); p:=pos(':',st); while (p<length(st)) and (st[p+1] in [' ',#9]) do @@ -1272,7 +1272,7 @@ var p : longint; code : integer; begin - Command('x /wx 0x'+hexstr(PtrInt(addr),sizeof(PtrInt)*2)); + Command('x /wx 0x'+hexstr(PtrInt(addr),sizeof(CORE_ADDR)*2)); st:=strpas(GetOutput); p:=pos(':',st); while (p<length(st)) and (st[p+1] in [' ',#9]) do |