multithreading - How can I jump to a different thread at the top of the stack in LLDB? -
using lldb can move , down through frames on stack using up
, down
commands or select specific frame. when you've reached top of stack, possible jump thread spawned execution of code happening on current thread?
no. "originating thread" not sort of thing threading systems keep track of (or rather pthreads doesn't , i've not heard of 1 does...)
if using libdispatch handle threading operations, can start "introspection" version of libdispatch (in /usr/lib/introspection) , command:
(lldb) thread backtrace -e
will print stacks chain of originating threads @ time work item being done on current thread enqueued. xcode show default. of course these not live backtraces, won't able inspect stack memory , like.
Comments
Post a Comment