mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 20:59:06 +02:00
Debugger: Replace const string arrays with RTTI value and WriteStr()
git-svn-id: trunk@34756 -
This commit is contained in:
parent
4c70795d75
commit
c3637f3879
@ -8999,50 +8999,16 @@ end;
|
|||||||
|
|
||||||
function TGDBMIExpression.DumpExpression: String;
|
function TGDBMIExpression.DumpExpression: String;
|
||||||
// Mainly used for debugging purposes
|
// Mainly used for debugging purposes
|
||||||
const
|
|
||||||
OPERATOR_TEXT: array[TDBGExpressionOperator] of string = (
|
|
||||||
'eoNone',
|
|
||||||
'eoNegate',
|
|
||||||
'eoPlus',
|
|
||||||
'eoSubstract',
|
|
||||||
'eoAdd',
|
|
||||||
'eoMultiply',
|
|
||||||
'eoPower',
|
|
||||||
'eoDivide',
|
|
||||||
'eoDereference',
|
|
||||||
'eoAddress',
|
|
||||||
'eoEqual',
|
|
||||||
'eoLess',
|
|
||||||
'eoLessOrEqual',
|
|
||||||
'eoGreater',
|
|
||||||
'eoGreaterOrEqual',
|
|
||||||
'eoNotEqual',
|
|
||||||
'eoIn',
|
|
||||||
'eoIs',
|
|
||||||
'eoAs',
|
|
||||||
'eoDot',
|
|
||||||
'eoComma',
|
|
||||||
'eoBracket',
|
|
||||||
'eoIndex',
|
|
||||||
'eoClose',
|
|
||||||
'eoAnd',
|
|
||||||
'eoOr',
|
|
||||||
'eoMod',
|
|
||||||
'eoNot',
|
|
||||||
'eoDiv',
|
|
||||||
'eoXor',
|
|
||||||
'eoShl',
|
|
||||||
'eoShr'
|
|
||||||
);
|
|
||||||
|
|
||||||
var
|
var
|
||||||
Sub: PGDBMISubExpression;
|
Sub: PGDBMISubExpression;
|
||||||
|
s: string;
|
||||||
begin
|
begin
|
||||||
Result := '';
|
Result := '';
|
||||||
Sub := FList;
|
Sub := FList;
|
||||||
while Sub <> nil do
|
while Sub <> nil do
|
||||||
begin
|
begin
|
||||||
Result := Result + Sub^.Operand + ' ' + OPERATOR_TEXT[Sub^.Opertor] + ' ';
|
WriteStr(s, Sub^.Opertor);
|
||||||
|
Result := Result + Sub^.Operand + ' ' + s + ' ';
|
||||||
Sub := Sub^.Next;
|
Sub := Sub^.Next;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user