Debugger: Also show instruction bytes in LLDB disassembler

Change-Id: I9676e458153b745fc75a5da271524e73959fba03
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-08-28 15:43:19 +02:00
parent fbbb6ad820
commit 5829b22b03
2 changed files with 11 additions and 5 deletions

View File

@@ -704,8 +704,12 @@ void LldbEngine::refreshDisassembly(const GdbMi &data)
foreach (const GdbMi &line, data["lines"].children()) {
DisassemblerLine dl;
dl.address = line["address"].toAddress();
dl.data = line["inst"].toUtf8();
dl.function = line["func-name"].toUtf8();
//dl.data = line["data"].toUtf8();
//dl.rawData = line["rawdata"].data();
dl.data = line["rawdata"].toUtf8();
if (!dl.data.isEmpty())
dl.data += QString(30 - dl.data.size(), QLatin1Char(' '));
dl.data += line["data"].toUtf8();
dl.offset = line["offset"].toInt();
dl.lineNumber = line["line"].toInt();
dl.fileName = line["file"].toUtf8();