debugger: make F10/F11 start the app if not running and break on main

This commit is contained in:
hjk
2011-05-02 18:22:32 +02:00
parent 8dd71a9199
commit ccffed9385
5 changed files with 46 additions and 19 deletions

View File

@@ -4448,6 +4448,12 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &settingsIdHint)
postCommand("disassemble 0 0", ConsoleCommand, CB(handleDisassemblerCheck));
if (sp.breakOnMain) {
QByteArray cmd = "tbreak ";
cmd += sp.toolChainAbi.os() == Abi::WindowsOS ? "qMain" : "main";
postCommand(cmd);
}
loadPythonDumpers();
QString scriptFileName = debuggerCore()->stringSetting(GdbScriptFile);