mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
d5a2bc3804
commit
a663dc922b
1 changed files with 10 additions and 1 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue