eliminate error message when start debug in lldb-mi

This commit is contained in:
Roy Qu 2024-04-03 17:25:34 +08:00
parent d3f2cd1dc1
commit 1fafd2c273
1 changed files with 6 additions and 4 deletions

View File

@ -985,10 +985,12 @@ void GDBMIDebuggerClient::initialize(const QString& inferior, bool hasSymbols)
postCommand("-enable-pretty-printing","");
postCommand("-gdb-set", "width 0"); // don't wrap output, very annoying
postCommand("-gdb-set", "confirm off");
postCommand("-gdb-set", "print repeats 10");
postCommand("-gdb-set", "print null-stop");
postCommand("-gdb-set", QString("print elements %1").arg(pSettings->debugger().arrayElements())); // limit array elements to 30
postCommand("-gdb-set", QString("print characters %1").arg(pSettings->debugger().characters())); // limit array elements to 300
if (clientType() == DebuggerType::GDB) {
postCommand("-gdb-set", "print repeats 10");
postCommand("-gdb-set", "print null-stop");
postCommand("-gdb-set", QString("print elements %1").arg(pSettings->debugger().arrayElements())); // limit array elements to 30
postCommand("-gdb-set", QString("print characters %1").arg(pSettings->debugger().characters())); // limit array elements to 300
}
postCommand("-environment-cd", QString("\"%1\"").arg(extractFileDir(inferior))); // restore working directory
if (hasSymbols) {