mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-26 19:43:48 +02:00
FpDebug: temporary workaround to display widestrings (actually pwidechar^)
git-svn-id: trunk@59538 -
This commit is contained in:
parent
7b6001dd2b
commit
0368d8e0d8
@ -1941,7 +1941,10 @@ begin
|
||||
while (i > 0) and (not MemManager.ReadMemory(DataAddress, 2000, @Result[1])) do
|
||||
i := i div 2;
|
||||
SetLength(Result,i);
|
||||
i := pos(#0, Result);
|
||||
if t.Size = 2 then // widestring
|
||||
i := pos(#0#0, Result)
|
||||
else
|
||||
i := pos(#0, Result);
|
||||
if i > 0 then
|
||||
SetLength(Result,i-1);
|
||||
exit;
|
||||
@ -3279,6 +3282,7 @@ begin
|
||||
DW_ATE_signed_char: SetKind(skChar);
|
||||
DW_ATE_unsigned: SetKind(skCardinal);
|
||||
DW_ATE_unsigned_char: SetKind(skChar);
|
||||
DW_ATE_numeric_string:SetKind(skChar); // temporary for widestring
|
||||
else
|
||||
begin
|
||||
DebugLn(FPDBG_DWARF_WARNINGS, ['TFpDwarfSymbolTypeBasic.KindNeeded: Unknown encoding ', DwarfBaseTypeEncodingToString(Encoding), ' for ', DwarfTagToString(InformationEntry.AbbrevTag)]);
|
||||
|
Loading…
Reference in New Issue
Block a user