diff options
author | hjk <qtc-committer@nokia.com> | 2011-05-11 15:24:50 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2011-05-11 15:24:50 +0200 |
commit | a2518b6db27225f50e826912f97831903f097c81 (patch) | |
tree | 341808862abbc94689576b56b66726f87c436023 /src/plugins/debugger/watchdata.cpp | |
parent | ae730dbe7cd0857e0b5fd815a9e536e89d1d7913 (diff) | |
download | qt-creator-a2518b6db27225f50e826912f97831903f097c81.tar.gz |
debugger: disable address related breakpoints on debugger exit
Diffstat (limited to 'src/plugins/debugger/watchdata.cpp')
-rw-r--r-- | src/plugins/debugger/watchdata.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/plugins/debugger/watchdata.cpp b/src/plugins/debugger/watchdata.cpp index c736f7e1f2..14dee8f87b 100644 --- a/src/plugins/debugger/watchdata.cpp +++ b/src/plugins/debugger/watchdata.cpp @@ -387,8 +387,10 @@ QString WatchData::toToolTip() const QString WatchData::msgNotInScope() { - //: Value of variable in Debugger Locals display for variables out of scope (stopped above initialization). - static const QString rc = QCoreApplication::translate("Debugger::Internal::WatchData", "<not in scope>"); + //: Value of variable in Debugger Locals display for variables out + //: of scope (stopped above initialization). + static const QString rc = + QCoreApplication::translate("Debugger::Internal::WatchData", "<not in scope>"); return rc; } @@ -397,7 +399,8 @@ const QString &WatchData::shadowedNameFormat() //: Display of variables shadowed by variables of the same name //: in nested scopes: Variable %1 is the variable name, %2 is a //: simple count. - static const QString format = QCoreApplication::translate("Debugger::Internal::WatchData", "%1 <shadowed %2>"); + static const QString format = + QCoreApplication::translate("Debugger::Internal::WatchData", "%1 <shadowed %2>"); return format; } @@ -415,12 +418,16 @@ quint64 WatchData::coreAddress() const QByteArray WatchData::hexAddress() const { - return address ? (QByteArray("0x") + QByteArray::number(address, 16)) : QByteArray(); + if (address) + return QByteArray("0x") + QByteArray::number(address, 16); + return QByteArray(); } QByteArray WatchData::hexReferencingAddress() const { - return referencingAddress ? (QByteArray("0x") + QByteArray::number(referencingAddress, 16)) : QByteArray(); + if (referencingAddress) + return QByteArray("0x") + QByteArray::number(referencingAddress, 16); + return QByteArray(); } } // namespace Internal |