mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 11:29:29 +02:00
FpDebug: temporary workaround to display widechar
git-svn-id: trunk@59539 -
This commit is contained in:
parent
0368d8e0d8
commit
fa6ae63e30
@ -1868,6 +1868,9 @@ end;
|
||||
function TFpDwarfValueChar.GetAsString: AnsiString;
|
||||
begin
|
||||
// Can typecast, because of FSize = 1, GetAsCardinal only read one byte
|
||||
if FSize = 2 then
|
||||
Result := GetAsWideString // temporary workaround for WideChar
|
||||
else
|
||||
if FSize <> 1 then
|
||||
Result := inherited GetAsString
|
||||
else
|
||||
@ -1941,7 +1944,7 @@ begin
|
||||
while (i > 0) and (not MemManager.ReadMemory(DataAddress, 2000, @Result[1])) do
|
||||
i := i div 2;
|
||||
SetLength(Result,i);
|
||||
if t.Size = 2 then // widestring
|
||||
if t.Size = 2 then // widestring // should be in GetAsWideString;
|
||||
i := pos(#0#0, Result)
|
||||
else
|
||||
i := pos(#0, Result);
|
||||
|
Loading…
Reference in New Issue
Block a user