diff options
Diffstat (limited to 'lldb/source/Target/ProcessInfo.cpp')
-rw-r--r-- | lldb/source/Target/ProcessInfo.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lldb/source/Target/ProcessInfo.cpp b/lldb/source/Target/ProcessInfo.cpp index 1adb93333fc..214db9ed3d4 100644 --- a/lldb/source/Target/ProcessInfo.cpp +++ b/lldb/source/Target/ProcessInfo.cpp @@ -15,6 +15,8 @@ // Project includes #include "lldb/Target/ProcessInfo.h" +#include "lldb/Core/Stream.h" + using namespace lldb; using namespace lldb_private; @@ -65,6 +67,21 @@ ProcessInfo::GetNameLength() const } void +ProcessInfo::Dump (Stream &s, Platform *platform) const +{ + s << "Executable: " << GetName() << "\n"; + s << "Triple: "; + m_arch.DumpTriple(s); + s << "\n"; + + s << "Arguments:\n"; + m_arguments.Dump(s); + + s << "Environment:\n"; + m_environment.Dump(s, "env"); +} + +void ProcessInfo::SetExecutableFile (const FileSpec &exe_file, bool add_exe_file_as_first_arg) { if (exe_file) |