Gdb_MI2Gdb.cpp patch (thanks omari)

git-svn-id: svn://ultimatepp.org/upp/trunk@8295 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-03-24 16:58:02 +00:00
parent d5a2bc3804
commit a663dc922b

View file

@ -48,7 +48,16 @@ MIValue Gdb_MI2::ParseGdb(String const &output, bool wait)
StringStream ss(output);
while(!ss.IsEof())
{
String s = TrimBoth(ss.GetLine());
String s;
String str = ss.GetLine();
s = str;
while(str.GetCount() == 1024 && !ss.IsEof())
{
str = ss.GetLine();
s << str;
}
s = TrimBoth(s);
// check 'running' and 'stopped' async output
if(s.StartsWith("*running"))