diff options
author | Greg Clayton <gclayton@apple.com> | 2010-10-29 04:59:35 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2010-10-29 04:59:35 +0000 |
commit | 93aa84e83b28fd32f370ac99d15ffa49d0f116a9 (patch) | |
tree | 2d787806911b85581db69b2d4299b2ac56f0a141 /lldb/source/Target/Target.cpp | |
parent | 31575f758c4defb5bf7b54cbf0238e414ff4e3b3 (diff) | |
download | bcm5719-llvm-93aa84e83b28fd32f370ac99d15ffa49d0f116a9.tar.gz bcm5719-llvm-93aa84e83b28fd32f370ac99d15ffa49d0f116a9.zip |
Modified the lldb_private::TypeList to use a std::multimap for quicker lookup
by type ID (the most common type of type lookup).
Changed the API logging a bit to always show the objects in the OBJECT(POINTER)
format so it will be easy to locate all instances of an object or references
to it when looking at logs.
llvm-svn: 117641
Diffstat (limited to 'lldb/source/Target/Target.cpp')
-rw-r--r-- | lldb/source/Target/Target.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index e8ed69d2834..1d315f11611 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -73,22 +73,15 @@ Target::Dump (Stream *s, lldb::DescriptionLevel description_level) s->Indent(); s->PutCString("Target\n"); s->IndentMore(); - m_images.Dump(s); - m_breakpoint_list.Dump(s); - m_internal_breakpoint_list.Dump(s); + m_images.Dump(s); + m_breakpoint_list.Dump(s); + m_internal_breakpoint_list.Dump(s); + s->IndentLess(); } else { - char path[PATH_MAX]; - int path_len = PATH_MAX; - if (GetExecutableModule()->GetFileSpec().GetPath (path, path_len)) - s->Printf ("Target: %s\n", path); - else - s->Printf ("Target: <unknown>\n"); + s->Printf ("%s", GetExecutableModule()->GetFileSpec().GetFilename().GetCString()); } -// if (m_process_sp.get()) -// m_process_sp->Dump(s); - s->IndentLess(); } void |