From ceb6b1393d05e3f5a7a235fd34bcf5d74ecc1f8d Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Tue, 26 Oct 2010 03:11:13 +0000 Subject: First pass at adding logging capabilities for the API functions. At the moment it logs the function calls, their arguments and the return values. This is not complete or polished, but I am committing it now, at the request of someone who really wants to use it, even though it's not really done. It currently does not attempt to log all the functions, just the most important ones. I will be making further adjustments to the API logging code over the next few days/weeks. (Suggestions for improvements are welcome). Update the Python build scripts to re-build the swig C++ file whenever the python-extensions.swig file is modified. Correct the help for 'log enable' command (give it the correct number & type of arguments). llvm-svn: 117349 --- lldb/source/Core/Module.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lldb/source/Core/Module.cpp') diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index ce334606712..4a04dedca88 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -375,6 +375,20 @@ Module::GetArchitecture () const return m_arch; } +void +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 ? ")" : ""); + +} + void Module::Dump(Stream *s) { -- cgit v1.2.3