aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectTarget.cpp
diff options
context:
space:
mode:
authorAlvin Wong <alvin@alvinhc.com>2022-09-27 13:09:59 +0300
committerMartin Storsjö <martin@martin.st>2022-09-27 13:09:59 +0300
commitf4991bfa891eaf9f36aa3b79da6fed4228b69de9 (patch)
treee70146d1c1f7ebcd18670a0cdbf60257197e88c2 /lldb/source/Commands/CommandObjectTarget.cpp
parenta426753ef0290362a0268f917dba46d6b9744b02 (diff)
downloadllvm-f4991bfa891eaf9f36aa3b79da6fed4228b69de9.zip
llvm-f4991bfa891eaf9f36aa3b79da6fed4228b69de9.tar.gz
llvm-f4991bfa891eaf9f36aa3b79da6fed4228b69de9.tar.bz2
[lldb] Improve display of absolute symbol lookup
When running `target module lookup` command, show the name of absolute symbols. Also fix indentation issue after printing an absolute symbol. Reviewed By: clayborg, DavidSpickett Differential Revision: https://reviews.llvm.org/D134516
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectTarget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp
index deb7f84..59b7dfd 100644
--- a/lldb/source/Commands/CommandObjectTarget.cpp
+++ b/lldb/source/Commands/CommandObjectTarget.cpp
@@ -1549,12 +1549,16 @@ static uint32_t LookupSymbolInModule(CommandInterpreter &interpreter,
strm.EOL();
} else {
strm.IndentMore();
+ strm.Indent(" Name: ");
+ strm.PutCString(symbol->GetDisplayName().GetStringRef());
+ strm.EOL();
strm.Indent(" Value: ");
strm.Printf("0x%16.16" PRIx64 "\n", symbol->GetRawValue());
if (symbol->GetByteSizeIsValid()) {
strm.Indent(" Size: ");
strm.Printf("0x%16.16" PRIx64 "\n", symbol->GetByteSize());
}
+ strm.IndentLess();
}
}
}