Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » [BUG?] MIValue (Why "String &MIValue::Get(void)" is called ? it should not.)
Re: [BUG?] MIValue [message #44534 is a reply to message #44532] |
Tue, 24 March 2015 18:56   |
omari
Messages: 276 Registered: March 2010
|
Experienced Member |
|
|
this patch resolve this issu:
file Gdb_MI2Gdb.cpp
1 - MIValue Gdb_MI2::ParseGdb(String const &output, bool wait)
replace :
return res;
by
return pick(res);
2 - MIValue Gdb_MI2::ReadGdb(bool wait)
replace
return ParseGdb(output);
by
return pick(ParseGdb(output));
3 - MIValue Gdb_MI2::MICmd(const char *cmdLine)
replace
res = ReadGdb();
by
res = pick(ReadGdb());
and
return res;
by
return pick(res);
with this patch, the output of RLOG is:
>>>============================================
<<<============================================
then "String &MIValue::Get(void)" is not called.
but still an issue:
MIValue v = MICmd("file-list-exec-source-files"); with that , v equal to "error:Not a String value type"
MIValue& v = MICmd("file-list-exec-source-files"); using reference, v get the good value.
regards
omari.
[Updated on: Tue, 24 March 2015 19:03] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Jun 20 11:30:53 CEST 2025
Total time taken to generate the page: 0.03836 seconds
|