forked from qt-creator/qt-creator
debugger: Refactor breakpoint handling.
The breakpoints are now (fairly) tightly guarded by the BreakpointHandler. Engines and Views are only supposed to refer to them by id. They also have individual states now. The breakpoint data is split into a "user requested" "fixed" part in BreakpointData and the engines' acknowledged data in a new struct BreakpointResponse. TODO: Move m_state and m_engine members to BreakpointResponse. Fix regressions in the marker handling.
This commit is contained in:
@@ -28,10 +28,12 @@
|
||||
**************************************************************************/
|
||||
|
||||
#include "coregdbadapter.h"
|
||||
#include "gdbmi.h"
|
||||
|
||||
#include "debuggercore.h"
|
||||
#include "debuggeractions.h"
|
||||
#include "gdbengine.h"
|
||||
#include "debuggerstringutils.h"
|
||||
#include "gdbmi.h"
|
||||
#include "gdbengine.h"
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
@@ -73,7 +75,7 @@ void CoreGdbAdapter::startAdapter()
|
||||
return;
|
||||
|
||||
//if (m_executable.isEmpty()) {
|
||||
// DebuggerEngine::showMessageBox(QMessageBox::Warning,
|
||||
// showMessageBox(QMessageBox::Warning,
|
||||
// tr("Error Loading Symbols"),
|
||||
// tr("No executable to load symbols from specified."));
|
||||
//}
|
||||
@@ -100,7 +102,7 @@ void CoreGdbAdapter::startAdapter()
|
||||
msg += _(" ");
|
||||
msg += tr("Try to specify the binary using the "
|
||||
"<i>Debug->Start Debugging->Attach to Core</i> dialog.");
|
||||
DebuggerEngine::showMessageBox(QMessageBox::Warning,
|
||||
showMessageBox(QMessageBox::Warning,
|
||||
tr("Loading core file failed"), msg);
|
||||
m_engine->notifyEngineSetupFailed();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user