diff --git a/uppsrc/ide/Debuggers/Gdb_MI2Gdb.cpp b/uppsrc/ide/Debuggers/Gdb_MI2Gdb.cpp index b8b0f9bf6..218ad2300 100644 --- a/uppsrc/ide/Debuggers/Gdb_MI2Gdb.cpp +++ b/uppsrc/ide/Debuggers/Gdb_MI2Gdb.cpp @@ -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"))