diff options
author | Greg Clayton <gclayton@apple.com> | 2012-05-15 18:43:44 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-05-15 18:43:44 +0000 |
commit | c4a8a76048e91baecb5746b80b9733e4af299937 (patch) | |
tree | 2484dd22164bf0897c05d30725ab7c1bca9de9e2 /lldb/source/Core/Address.cpp | |
parent | 4b5c9979b90fac734034553f2d1b83cc580bae16 (diff) | |
download | bcm5719-llvm-c4a8a76048e91baecb5746b80b9733e4af299937.tar.gz bcm5719-llvm-c4a8a76048e91baecb5746b80b9733e4af299937.zip |
<rdar://problem/11455398>
Add "--name" option to "image lookup" that will search both functions and symbols.
Also made all of the output from any of the "image lookup" commands be the same regardless of the lookup type (function name, symbol name, func or symbol, file and line, address, etc). The --verbose or -v option also will expand the results as needed and display things so they look the same.
llvm-svn: 156835
Diffstat (limited to 'lldb/source/Core/Address.cpp')
-rw-r--r-- | lldb/source/Core/Address.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Core/Address.cpp b/lldb/source/Core/Address.cpp index 005a1a03e80..e4dc06312f3 100644 --- a/lldb/source/Core/Address.cpp +++ b/lldb/source/Core/Address.cpp @@ -707,7 +707,8 @@ Address::Dump (Stream *s, ExecutionContextScope *exe_scope, DumpStyle style, Dum Variable *var = variable_list.GetVariableAtIndex (var_idx).get(); if (var && var->LocationIsValidForAddress (*this)) { - s->Printf (" Variable: id = {0x%8.8llx}, name = \"%s\", type= \"%s\", location =", + s->Indent(); + s->Printf (" Variable: id = {0x%8.8llx}, name = \"%s\", type= \"%s\", location =", var->GetID(), var->GetName().GetCString(), var->GetType()->GetName().GetCString()); |