mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-01 03:11:28 +00:00
Change the Thread constructor over to take a Process& rather than a ProcessSP. We can't create Threads with a NULL ProcessSP, so it makes no sense to use the SP.
Then make the Thread a Broadcaster, and get it to broadcast when the selected frame is changed (but only from the Command Line) and when Thread::ReturnFromFrame changes the stack. Made the Driver use this notification to print the new thread status rather than doing it in the command. Fixed a few places where people were setting their broadcaster class by hand rather than using the static broadcaster class call. <rdar://problem/12383087> llvm-svn: 165640
This commit is contained in:
1 parent
9a6717f647
commit
4f465cff8a
26 files changed
+369
-51
No files matched your search
@@ -188,7 +188,7 @@ OperatingSystemPython::UpdateThreadList (ThreadList &old_thread_list, ThreadList
|
||||
|
||||
ThreadSP thread_sp (old_thread_list.FindThreadByID (tid, false));
|
||||
if (!thread_sp)
|
||||
thread_sp.reset (new ThreadMemory (m_process->shared_from_this(),
|
||||
thread_sp.reset (new ThreadMemory (*m_process,
|
||||
tid,
|
||||
name,
|
||||
queue));
|
||||
|
||||
Reference in new issue
Block a user