summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Module.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-10-31 03:01:06 +0000
committerGreg Clayton <gclayton@apple.com>2010-10-31 03:01:06 +0000
commitcfd1aced7ea66eda9b23c227cdd76a2289150a13 (patch)
tree24d18ab977aac38caf781ac1f53b7bdb42a3c4d0 /lldb/source/Core/Module.cpp
parenta5df61a341ab35738a2788f222bd9799a060e2ea (diff)
downloadbcm5719-llvm-cfd1aced7ea66eda9b23c227cdd76a2289150a13.tar.gz
bcm5719-llvm-cfd1aced7ea66eda9b23c227cdd76a2289150a13.zip
Cleaned up the API logging a lot more to reduce redundant information and
keep the file size a bit smaller. Exposed SBValue::GetExpressionPath() so SBValue users can get an expression path for their values. llvm-svn: 117851
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r--lldb/source/Core/Module.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp
index 4a04dedca88..02ed8652d78 100644
--- a/lldb/source/Core/Module.cpp
+++ b/lldb/source/Core/Module.cpp
@@ -380,13 +380,16 @@ Module::GetDescription (Stream *s)
{
Mutex::Locker locker (m_mutex);
- s->Printf("Module %s/%s%s%s%s\n",
- m_file.GetDirectory().AsCString(),
- m_file.GetFilename().AsCString(),
- m_object_name ? "(" : "",
- m_object_name ? m_object_name.GetCString() : "",
- m_object_name ? ")" : "");
+ if (m_arch.IsValid())
+ s->Printf("(%s) ", m_arch.AsCString());
+ char path[PATH_MAX];
+ if (m_file.GetPath(path, sizeof(path)))
+ s->PutCString(path);
+
+ const char *object_name = m_object_name.GetCString();
+ if (object_name)
+ s->Printf("(%s)", object_name);
}
void
OpenPOWER on IntegriCloud