summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Thread.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-05-21 21:55:59 +0000
committerGreg Clayton <gclayton@apple.com>2013-05-21 21:55:59 +0000
commit8cda7f083069d4cc1c8e5c8e658bbdbac0eea249 (patch)
treeea5530993e794203cb173e87ed617ab1651acde1 /lldb/source/Target/Thread.cpp
parent4df05caadbbf588406f99ef74342db49a647c1e2 (diff)
downloadbcm5719-llvm-8cda7f083069d4cc1c8e5c8e658bbdbac0eea249.tar.gz
bcm5719-llvm-8cda7f083069d4cc1c8e5c8e658bbdbac0eea249.zip
Added a test case that verifies that LLDB can debug across a process exec'ing itself into a new program. This currently is only enabled for Darwin since we exec from 64 bit to 32 bit and vice versa for 'x86_64' targets.
This can easily be adapted for linux and other platforms, but I didn't want to break any buildbots by assuming it will work. llvm-svn: 182428
Diffstat (limited to 'lldb/source/Target/Thread.cpp')
-rw-r--r--lldb/source/Target/Thread.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Target/Thread.cpp b/lldb/source/Target/Thread.cpp
index 9abf514ab46..850fc802c4e 100644
--- a/lldb/source/Target/Thread.cpp
+++ b/lldb/source/Target/Thread.cpp
@@ -442,6 +442,9 @@ Thread::SetStopInfo (const lldb::StopInfoSP &stop_info_sp)
m_stop_info_stop_id = process_sp->GetStopID();
else
m_stop_info_stop_id = UINT32_MAX;
+ Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_THREAD));
+ if (log)
+ log->Printf("%p: tid = 0x%llx: stop info = %s (stop_id = %u)\n", this, GetID(), stop_info_sp ? stop_info_sp->GetDescription() : "<NULL>", m_stop_info_stop_id);
}
void
OpenPOWER on IntegriCloud