forked from qt-creator/qt-creator
Debugger: Format addresses in tooltips.
Pad to 4 digit groups and insert colons for readability. Change-Id: Icdda754e1d5ac26fd5bb90b5434b0cfa1f7a2f4e Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
|
||||
#include "threadshandler.h"
|
||||
#include "gdb/gdbmi.h"
|
||||
#include "watchutils.h"
|
||||
|
||||
#include "debuggerconstants.h"
|
||||
#include "debuggercore.h"
|
||||
@@ -75,9 +76,7 @@ static QString threadToolTip(const ThreadData &thread)
|
||||
str << thread.function << "<br>";
|
||||
if (!thread.fileName.isEmpty())
|
||||
str << thread.fileName << ':' << thread.lineNumber << "<br>";
|
||||
str.setIntegerBase(16);
|
||||
str << "0x" << thread.address;
|
||||
str.setIntegerBase(10);
|
||||
str << formatToolTipAddress(thread.address);
|
||||
}
|
||||
str << "</table></body></html>";
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user