Debugger/WatchWindow: Add menu options to show pointed to addresses.

Change the WatchWindow handling to be based on quint64 addresses to
ensure proper function. Changed roles and added one role to the
watchmodel to obtain addresses and pointed-to addresses. Add some
fiddling to parse out addresses from debugger values.
Add menu options. Make sure only one watchpoint per address is added.
This commit is contained in:
Friedemann Kleint
2010-05-19 17:34:47 +02:00
parent a25280fca0
commit 9af9c91f93
5 changed files with 109 additions and 40 deletions

View File

@@ -406,6 +406,16 @@ BreakpointData *BreakHandler::findBreakpointByNumber(int bpNumber) const
return 0;
}
BreakpointData *BreakHandler::findWatchPointByAddress(const QByteArray &a) const
{
for (int index = size() - 1; index >= 0; --index) {
BreakpointData *bd = at(index);
if (bd->type == BreakpointData::WatchpointType && bd->address == a)
return bd;
}
return 0;
}
void BreakHandler::saveBreakpoints()
{
QList<QVariant> list;