forked from qt-creator/qt-creator
Fixes: debugger: enum naming cosmetics
This commit is contained in:
@@ -152,7 +152,7 @@ void DebuggerManager::init()
|
|||||||
m_busy = false;
|
m_busy = false;
|
||||||
|
|
||||||
m_attachedPID = 0;
|
m_attachedPID = 0;
|
||||||
m_startMode = startInternal;
|
m_startMode = StartInternal;
|
||||||
|
|
||||||
m_disassemblerHandler = 0;
|
m_disassemblerHandler = 0;
|
||||||
m_modulesHandler = 0;
|
m_modulesHandler = 0;
|
||||||
@@ -737,13 +737,13 @@ void DebuggerManager::setConfigValue(const QString &name, const QVariant &value)
|
|||||||
|
|
||||||
void DebuggerManager::startExternalApplication()
|
void DebuggerManager::startExternalApplication()
|
||||||
{
|
{
|
||||||
if (!startNewDebugger(startExternal))
|
if (!startNewDebugger(StartExternal))
|
||||||
emit debuggingFinished();
|
emit debuggingFinished();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DebuggerManager::attachExternalApplication()
|
void DebuggerManager::attachExternalApplication()
|
||||||
{
|
{
|
||||||
if (!startNewDebugger(attachExternal))
|
if (!startNewDebugger(AttachExternal))
|
||||||
emit debuggingFinished();
|
emit debuggingFinished();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -752,7 +752,7 @@ bool DebuggerManager::startNewDebugger(StartMode mode)
|
|||||||
m_startMode = mode;
|
m_startMode = mode;
|
||||||
// FIXME: Clean up
|
// FIXME: Clean up
|
||||||
|
|
||||||
if (startMode() == startExternal) {
|
if (startMode() == StartExternal) {
|
||||||
StartExternalDialog dlg(mainWindow());
|
StartExternalDialog dlg(mainWindow());
|
||||||
dlg.setExecutableFile(
|
dlg.setExecutableFile(
|
||||||
configValue(QLatin1String("LastExternalExecutableFile")).toString());
|
configValue(QLatin1String("LastExternalExecutableFile")).toString());
|
||||||
@@ -768,7 +768,7 @@ bool DebuggerManager::startNewDebugger(StartMode mode)
|
|||||||
m_processArgs = dlg.executableArguments().split(' ');
|
m_processArgs = dlg.executableArguments().split(' ');
|
||||||
m_workingDir = QString();
|
m_workingDir = QString();
|
||||||
m_attachedPID = -1;
|
m_attachedPID = -1;
|
||||||
} else if (startMode() == attachExternal) {
|
} else if (startMode() == AttachExternal) {
|
||||||
AttachExternalDialog dlg(mainWindow());
|
AttachExternalDialog dlg(mainWindow());
|
||||||
if (dlg.exec() != QDialog::Accepted)
|
if (dlg.exec() != QDialog::Accepted)
|
||||||
return false;
|
return false;
|
||||||
@@ -781,7 +781,7 @@ bool DebuggerManager::startNewDebugger(StartMode mode)
|
|||||||
tr("Cannot attach to PID 0"));
|
tr("Cannot attach to PID 0"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (startMode() == startInternal) {
|
} else if (startMode() == StartInternal) {
|
||||||
if (m_executable.isEmpty()) {
|
if (m_executable.isEmpty()) {
|
||||||
QString startDirectory = m_executable;
|
QString startDirectory = m_executable;
|
||||||
if (m_executable.isEmpty()) {
|
if (m_executable.isEmpty()) {
|
||||||
|
@@ -229,7 +229,7 @@ public:
|
|||||||
QLabel *statusLabel() const { return m_statusLabel; }
|
QLabel *statusLabel() const { return m_statusLabel; }
|
||||||
DebuggerSettings *settings() { return &m_settings; }
|
DebuggerSettings *settings() { return &m_settings; }
|
||||||
|
|
||||||
enum StartMode { startInternal, startExternal, attachExternal };
|
enum StartMode { StartInternal, StartExternal, AttachExternal };
|
||||||
enum DebuggerType { GdbDebugger, ScriptDebugger, WinDebugger };
|
enum DebuggerType { GdbDebugger, ScriptDebugger, WinDebugger };
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
@@ -137,7 +137,7 @@ void DebuggerRunControl::start()
|
|||||||
//<daniel> andre: + "\qtc-gdbmacros\"
|
//<daniel> andre: + "\qtc-gdbmacros\"
|
||||||
|
|
||||||
//emit addToOutputWindow(this, tr("Debugging %1").arg(m_executable));
|
//emit addToOutputWindow(this, tr("Debugging %1").arg(m_executable));
|
||||||
if (m_manager->startNewDebugger(DebuggerManager::startInternal))
|
if (m_manager->startNewDebugger(DebuggerManager::StartInternal))
|
||||||
emit started();
|
emit started();
|
||||||
else
|
else
|
||||||
debuggingFinished();
|
debuggingFinished();
|
||||||
|
@@ -1588,9 +1588,10 @@ bool GdbEngine::startDebugger()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (q->startMode() == q->attachExternal) {
|
if (q->startMode() == DebuggerManager::AttachExternal) {
|
||||||
sendCommand("attach " + QString::number(q->m_attachedPID));
|
sendCommand("attach " + QString::number(q->m_attachedPID));
|
||||||
} else {
|
} else {
|
||||||
|
// StartInternal or StartExternal
|
||||||
emit gdbInputAvailable(QString(), QString());
|
emit gdbInputAvailable(QString(), QString());
|
||||||
sendCommand("-file-exec-and-symbols " + fileName, GdbFileExecAndSymbols);
|
sendCommand("-file-exec-and-symbols " + fileName, GdbFileExecAndSymbols);
|
||||||
//sendCommand("file " + fileName, GdbFileExecAndSymbols);
|
//sendCommand("file " + fileName, GdbFileExecAndSymbols);
|
||||||
@@ -1607,7 +1608,7 @@ bool GdbEngine::startDebugger()
|
|||||||
sendCommand("-data-list-register-names", RegisterListNames);
|
sendCommand("-data-list-register-names", RegisterListNames);
|
||||||
|
|
||||||
// set all to "pending"
|
// set all to "pending"
|
||||||
if (q->startMode() == q->attachExternal)
|
if (q->startMode() == DebuggerManager::AttachExternal)
|
||||||
qq->breakHandler()->removeAllBreakpoints();
|
qq->breakHandler()->removeAllBreakpoints();
|
||||||
else
|
else
|
||||||
qq->breakHandler()->setAllPending();
|
qq->breakHandler()->setAllPending();
|
||||||
|
Reference in New Issue
Block a user