forked from qt-creator/qt-creator
debugger: make F10/F11 start the app if not running and break on main
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user