# Test that program is executed in async mode
self.runCmd("-exec-run")
self.expect("\*running")
- self.expect("~\"argc=1")
+ self.expect("@\"argc=1")
@lldbmi_test
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
# Test that program is executed in async mode
self.runCmd("-exec-run")
unexpected = [ "\*running" ] # "\*running" is async notification
- it = self.expect(unexpected + [ "~\"argc=1\\\\r\\\\n" ])
+ it = self.expect(unexpected + [ "@\"argc=1\\\\r\\\\n" ])
if it < len(unexpected):
- # generate error if it's not "~\"argc=1\\\\r\\\\n"
+ # generate error if it's not "@\"argc=1\\\\r\\\\n"
self.expect("$UNEXPECTED FOUND: %s\.^" % unexpected[it], timeout = 0)
@lldbmi_test
self.expect("\^running")
# Test that arguments were passed properly
- self.expect("~\"argc=5\\\\r\\\\n\"")
+ self.expect("@\"argc=5\\\\r\\\\n\"")
@lldbmi_test
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
self.expect("\^running")
# Test that arguments were passed properly
- self.expect("~\"argc=5\\\\r\\\\n\"")
+ self.expect("@\"argc=5\\\\r\\\\n\"")
@lldbmi_test
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
# Linux: "*stopped,reason=\"end-stepping-range\",frame={addr="0x[0-9a-f]+\",func=\"__printf\",args=[{name=\"format\",value=\"0x[0-9a-f]+\"}],file=\"printf.c\",fullname=\".+printf.c\",line="\d+"},thread-id=\"1\",stopped-threads=\"all\"
self.runCmd("thread step-in")
self.expect("\^done")
- it = self.expect([ "~\"argc=1\\\\r\\\\n\"",
+ it = self.expect([ "@\"argc=1\\\\r\\\\n\"",
"\*stopped,reason=\"end-stepping-range\".+?func=\"(?!main).+?\"" ])
if it == 0:
self.expect("\*stopped,reason=\"end-stepping-range\".+?func=\"main\"")
# Test that "thread step-over" steps over
self.runCmd("thread step-over")
self.expect("\^done")
- self.expect("~\"argc=1\\\\r\\\\n\"")
+ self.expect("@\"argc=1\\\\r\\\\n\"")
self.expect("\*stopped,reason=\"end-stepping-range\"")
@lldbmi_test
# Test that "thread continue" continues execution
self.runCmd("thread continue")
self.expect("\^done")
- self.expect("~\"argc=1\\\\r\\\\n")
+ self.expect("@\"argc=1\\\\r\\\\n")
self.expect("\*stopped,reason=\"exited-normally\"")
if __name__ == '__main__':
self.expect("\^running")
# Test that arguments were passed properly
- self.expect("~\"argc=2\\\\r\\\\n\"")
+ self.expect("@\"argc=2\\\\r\\\\n\"")
@lldbmi_test
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
self.expect("\^running")
# Test that arguments were passed properly
- self.expect("~\"argc=2\\\\r\\\\n\"")
+ self.expect("@\"argc=2\\\\r\\\\n\"")
@lldbmi_test
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
# Linux: "*stopped,reason=\"end-stepping-range\",frame={addr="0x[0-9a-f]+\",func=\"__printf\",args=[{name=\"format\",value=\"0x[0-9a-f]+\"}],file=\"printf.c\",fullname=\".+printf.c\",line="\d+"},thread-id=\"1\",stopped-threads=\"all\"
self.runCmd("-interpreter-exec console \"thread step-in\"")
self.expect("\^done")
- it = self.expect([ "~\"argc=1\\\\r\\\\n\"",
+ it = self.expect([ "@\"argc=1\\\\r\\\\n\"",
"\*stopped,reason=\"end-stepping-range\".+?func=\"(?!main).+?\"" ])
if it == 0:
self.expect("\*stopped,reason=\"end-stepping-range\".+?func=\"main\"")
# Test that "thread step-over" steps over
self.runCmd("-interpreter-exec console \"thread step-over\"")
self.expect("\^done")
- self.expect("~\"argc=1\\\\r\\\\n\"")
+ self.expect("@\"argc=1\\\\r\\\\n\"")
self.expect("\*stopped,reason=\"end-stepping-range\"")
@lldbmi_test
# Test that "thread continue" continues execution
self.runCmd("-interpreter-exec console \"thread continue\"")
self.expect("\^done")
- self.expect("~\"argc=1\\\\r\\\\n")
+ self.expect("@\"argc=1\\\\r\\\\n")
self.expect("\*stopped,reason=\"exited-normally\"")
if __name__ == '__main__':
self.expect("\^running")
# Test that a process output is wrapped correctly
- self.expect("\~\"'\\\\r\\\\n` - it's \\\\\\\\n\\\\x12\\\\\"\\\\\\\\\\\\\"")
+ self.expect("\@\"'\\\\r\\\\n` - it's \\\\\\\\n\\\\x12\\\\\"\\\\\\\\\\\\\"")
if __name__ == '__main__':
unittest2.main()
return MIstatus::success;
const bool bEscapeQuotes(true);
- const CMIUtilString t(CMIUtilString::Format("~\"%s\"", text.Escape(bEscapeQuotes).c_str()));
- return TextToStdout(t);
+ CMICmnMIValueConst miValueConst(text.Escape(bEscapeQuotes));
+ CMICmnMIOutOfBandRecord miOutOfBandRecord(CMICmnMIOutOfBandRecord::eOutOfBand_TargetStreamOutput, miValueConst);
+ return MiOutOfBandRecordToStdout(miOutOfBandRecord);
}
//++ ------------------------------------------------------------------------------------
return MIstatus::success;
const bool bEscapeQuotes(true);
- const CMIUtilString t(CMIUtilString::Format("~\"%s\"", text.Escape(bEscapeQuotes).c_str()));
- return TextToStdout(t);
+ CMICmnMIValueConst miValueConst(text.Escape(bEscapeQuotes));
+ CMICmnMIOutOfBandRecord miOutOfBandRecord(CMICmnMIOutOfBandRecord::eOutOfBand_TargetStreamOutput, miValueConst);
+ return MiOutOfBandRecordToStdout(miOutOfBandRecord);
}
//++ ------------------------------------------------------------------------------------