LazDebugger(Fp)LLDB: fix getting class-name for exceptions

git-svn-id: trunk@59679 -
This commit is contained in:
martin 2018-11-27 18:37:53 +00:00
parent 7716b8a149
commit ca2eda8348

View File

@ -682,11 +682,13 @@ var
i: SizeInt;
begin
// (char * ) $2 = 0x005c18d0 "\tException"
// (char *) $10 = 0x00652d44 "\x04TXXX"
s := TLldbInstructionReadExpression(Sender).Res;
i := pos('"', s);
if i > 0 then begin
if s[i+1] = '\' then inc(i);
s := copy(s, i+2, Length(s)-i-2);
if s[i+1] = '\' then inc(i, 2);
if s[i] = 'x' then inc(i, 2);
s := copy(s, i+1, Length(s)-i-1);
end;
FCurrentExceptionInfo.FExceptClass := s;
Include(FCurrentExceptionInfo.FHasCommandData, exiClass);