summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/moduleshandler.cpp
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2010-12-21 13:34:59 +0100
committerhjk <qtc-committer@nokia.com>2010-12-21 13:36:28 +0100
commit63eaf1e132286c3e29a16b433bf3d06e7c648324 (patch)
treefa017f138fae44785306632929ddbbde5b76f361 /src/plugins/debugger/moduleshandler.cpp
parentdc921cc5408fe8845c32918c1e8eab65f3e01f28 (diff)
downloadqt-creator-63eaf1e132286c3e29a16b433bf3d06e7c648324.tar.gz
debugger: add an option to load "missing" symbols for current stack
Diffstat (limited to 'src/plugins/debugger/moduleshandler.cpp')
-rw-r--r--src/plugins/debugger/moduleshandler.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/plugins/debugger/moduleshandler.cpp b/src/plugins/debugger/moduleshandler.cpp
index bb56cef23b..9e57c4b3be 100644
--- a/src/plugins/debugger/moduleshandler.cpp
+++ b/src/plugins/debugger/moduleshandler.cpp
@@ -107,11 +107,17 @@ QVariant ModulesModel::data(const QModelIndex &index, int role) const
break;
case 4:
if (role == Qt::DisplayRole)
- return module.startAddress;
+ return QString(QLatin1String("0x")
+ + QString::number(module.startAddress, 16));
break;
case 5:
- if (role == Qt::DisplayRole)
- return module.endAddress;
+ if (role == Qt::DisplayRole) {
+ if (module.endAddress)
+ return QString(QLatin1String("0x")
+ + QString::number(module.endAddress, 16));
+ //: End address of loaded module
+ return tr("<unknown>", "address");
+ }
break;
}
return QVariant();