12 #include "jdb_kobject.h"
13 #include "thread_state.h"
20 Jdb_thread::print_snd_partner(Thread *t, int task_format = 0)
22 if (t->state() & Thread_send_in_progress)
23 Jdb_kobject::print_uid(t->lookup(static_cast<Thread*>(t->receiver())), task_format);
25 // receiver() not valid
31 Jdb_thread::print_partner(Thread *t, int task_format = 0)
36 if (!(t->state() & (Thread_receiving | Thread_busy)))
38 printf("%*s ", task_format, " ");
44 printf("%*s ", task_format, "-");
48 // the Thread* cast is not good because we actually need to have a dynamic
49 // cast but we don't have this here in this environment. Luckily the cast
51 if (Kobject::is_kobj(p = static_cast<Thread*>(t->partner())))
54 printf("%*.lx%c", task_format, p->dbg_id(), flag);
56 else if ((o = Kobject::pointer_to_obj(t->partner())))
57 printf("%*.lx*", task_format, o->dbg_id());
59 printf("\033[31;1m%p\033[m ", t->partner());