diff options
author | Greg Clayton <gclayton@apple.com> | 2011-02-08 02:40:32 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-02-08 02:40:32 +0000 |
commit | 7012049c7fd4d6b04b21a98dad6498b88e30182b (patch) | |
tree | 461dec4b9dbe853fd2b2e7f252b2bcc5a938014b /lldb/source/Commands/CommandObjectImage.cpp | |
parent | a57a66e8d02d30c8b2fe5db85d4de52f22c66646 (diff) | |
download | bcm5719-llvm-7012049c7fd4d6b04b21a98dad6498b88e30182b.tar.gz bcm5719-llvm-7012049c7fd4d6b04b21a98dad6498b88e30182b.zip |
Fixed a crasher that could happen when trying to look at N_GSYM entries
in the DWARF + debug map symbol file parser.
Also cleaned up the "image lookup --address ADDR" output when we it results
in something that is in an inlined function. Now we correctly dump out the
full inlined call stack.
llvm-svn: 125072
Diffstat (limited to 'lldb/source/Commands/CommandObjectImage.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectImage.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectImage.cpp b/lldb/source/Commands/CommandObjectImage.cpp index f71638c5c80..e8e1ea27fd4 100644 --- a/lldb/source/Commands/CommandObjectImage.cpp +++ b/lldb/source/Commands/CommandObjectImage.cpp @@ -248,7 +248,10 @@ LookupAddressInModule so_addr.Dump (&strm, exe_scope, Address::DumpStyleSectionNameOffset); strm.EOL(); strm.Indent (" Summary: "); + const uint32_t save_indent = strm.GetIndentLevel (); + strm.SetIndentLevel (save_indent + 11); so_addr.Dump (&strm, exe_scope, Address::DumpStyleResolvedDescription); + strm.SetIndentLevel (save_indent); strm.EOL(); // Print out detailed address information when verbose is enabled if (verbose) |