From 75734cdf1d08e3e8cdf6b0d1f4e406d454011d59 Mon Sep 17 00:00:00 2001 From: vincents Date: Wed, 9 May 2007 22:00:08 +0000 Subject: [PATCH] debugger: replace \\, \t etc in debugger output strings git-svn-id: trunk@11118 - --- debugger/gdbmidebugger.pp | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/debugger/gdbmidebugger.pp b/debugger/gdbmidebugger.pp index c85a18dbc7..63bcc77c7d 100644 --- a/debugger/gdbmidebugger.pp +++ b/debugger/gdbmidebugger.pp @@ -1218,11 +1218,21 @@ begin // scan till end while idx <= len do begin - if S[idx] = '''' - then begin - Inc(idx); - if idx > len then Break; - if S[idx] <> '''' then Break; + case S[idx] of + '''' : begin + Inc(idx); + if idx > len then Break; + if S[idx] <> '''' then Break; + end; + '\' : begin + Inc(idx); + if idx > len then Break; + case S[idx] of + 't': S[idx] := #9; + 'n': S[idx] := #10; + 'r': S[idx] := #13; + end; + end; end; Inc(n); Result[n] := S[idx];