Commit 22c5d99f authored by hjk's avatar hjk
Browse files

Debugger: Disable some commands on Mac



Version of gdb < 7.4 means we are on Mac, so we can
disable commands that have known results there.

Change-Id: I8fc97ed61c47af2c3d9e5cc2bf83e97661204d4f
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent af69f732
......@@ -1816,15 +1816,25 @@ void GdbEngine::handleShowVersion(const GdbResponse &response)
if (m_gdbVersion > 70100)
m_disassembleUsesComma = true;
if (usesExecInterrupt())
postCommand("set target-async on", ConsoleCommand);
else
postCommand("set target-async off", ConsoleCommand);
if (m_gdbVersion > 70100) {
if (usesExecInterrupt())
postCommand("set target-async on", ConsoleCommand);
else
postCommand("set target-async off", ConsoleCommand);
}
if (startParameters().multiProcess)
postCommand("set detach-on-fork off", ConsoleCommand);
postCommand("set build-id-verbose 2", ConsoleCommand);
//postCommand("set build-id-verbose 2", ConsoleCommand);
if (m_gdbVersion > 701000) {
// Quick check whether we have python.
showMessage(_("NOTE: CHECK FOR PYTHON SUPPRESSED, VERSION TOO LOW"));
postCommand("python print 43", ConsoleCommand, CB(handleHasPython));
} else {
pythonDumpersFailed();
}
}
}
......@@ -4906,12 +4916,10 @@ void GdbEngine::startGdb(const QStringList &args)
postCommand("set detach-on-fork off");
}
// Quick check whether we have python.
postCommand("python print 43", ConsoleCommand, CB(handleHasPython));
// Dummy command to guarantee a roundtrip before the adapter proceed.
// Make sure this stays the last command in startGdb().
postCommand("pwd", ConsoleCommand, CB(reportEngineSetupOk));
// Don't use ConsoleCommand, otherwise Mac won't markup the output.
postCommand("pwd", CB(reportEngineSetupOk));
}
void GdbEngine::reportEngineSetupOk(const GdbResponse &response)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment