debugger: refactor breakpoint handling

Use BreakpointData objects for communicaition instead of random
collection of some of their attributes.
This commit is contained in:
hjk
2010-05-12 16:48:04 +02:00
parent 88e4917b2e
commit d8318a9502
8 changed files with 96 additions and 107 deletions

View File

@@ -31,6 +31,7 @@
#include "watchhandler.h"
#include "breakpoint.h"
#include "breakhandler.h"
#include "debuggeractions.h"
#include "debuggeragents.h"
#include "debuggerdialogs.h"
@@ -371,7 +372,8 @@ void WatchWindow::contextMenuEvent(QContextMenuEvent *ev)
BreakpointData *data = new BreakpointData;
data->type = BreakpointData::WatchpointType;
data->address = address.toLatin1();
m_manager->appendBreakpoint(data);
m_manager->breakHandler()->appendBreakpoint(data);
m_manager->attemptBreakpointSynchronization();
} else if (act == actSelectWidgetToWatch) {
grabMouse(Qt::CrossCursor);
m_grabbing = true;