debugger: add some hints to tooltip of frames without debuginfo

Change-Id: I1a23cdc0926b94cefbc9953d4fcb9e0d38379bfe
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-03-29 10:22:05 +02:00
committed by hjk
parent 8f6d915948
commit 6b30d4b6f7
2 changed files with 21 additions and 2 deletions

View File

@@ -109,7 +109,7 @@ QVariant StackHandler::data(const QModelIndex &index, int role) const
case 2: // File name
return frame.file.isEmpty() ? frame.from : QFileInfo(frame.file).fileName();
case 3: // Line number
return frame.line >= 0 ? QVariant(frame.line) : QVariant();
return frame.line > 0 ? QVariant(frame.line) : QVariant();
case 4: // Address
if (frame.address)
return QString::fromLatin1("0x%1").arg(frame.address, 0, 16);