debugger: basic support for address-based breakpoints

This commit is contained in:
hjk
2010-04-09 14:55:09 +02:00
parent 0ea0977ca8
commit 4eb83cd8b2
5 changed files with 44 additions and 10 deletions

View File

@@ -2150,6 +2150,9 @@ QByteArray GdbEngine::breakpointLocation(int index)
const BreakpointData *data = manager()->breakHandler()->at(index);
if (!data->funcName.isEmpty())
return data->funcName.toLatin1();
// In this case, data->funcName is something like '*0xdeadbeef'
if (data->lineNumber.toInt() == 0)
return data->funcName.toLatin1();
QString loc = data->useFullPath ? data->fileName : breakLocation(data->fileName);
// The argument is simply a C-quoted version of the argument to the
// non-MI "break" command, including the "original" quoting it wants.