All pastes #373302 Raw Edit

Untitled

public text v1 · immutable
#373302 ·published 2007-02-26 18:31 UTC
rendered paste body
define mono_stack
 set $mono_thread = mono_thread_current ()
 if ($mono_thread == 0x00)
   printf "No mono thread associated with this thread\n"
 else
   set $ucp = malloc (4096)
   call (void) getcontext ($ucp)
   call (void) mono_print_thread_dump ($ucp)
   call (void) free ($ucp)
 end
end