printf("%s (%lx): ", tag, dbgid);
first = false;
}
- printf("%02x: ", p->prio());
+ printf("%02x: ", (unsigned)p->prio());
Prio_list::S_list::Iterator s = Prio_list::S_list::iter(*p);
do
{
bool
Jdb_sender_list::show_obj(Kobject *o, int printnone)
{
- if (Thread *t = Kobject::dcast<Thread_object *>(o))
+ if (Thread *t = cxx::dyn_cast<Thread *>(o))
{
show_sender_list(t->sender_list(), 0, printnone, "Thread", t->dbg_id());
return true;
}
- else if (Ipc_gate *g = Kobject::dcast<Ipc_gate_obj *>(o))
+ else if (Ipc_gate *g = cxx::dyn_cast<Ipc_gate_obj *>(o))
{
show_sender_list(&g->_wait_q, 0, printnone, "Ipc_gate", g->dbg_id());
return true;
if (keycode != 'S')
return false;
- if (Thread *t = Kobject::dcast<Thread_object *>(o))
+ if (Thread *t = cxx::dyn_cast<Thread *>(o))
show_sender_list(t->sender_list(), 1, 1, "Thread", t->dbg_id());
- else if (Ipc_gate *g = Kobject::dcast<Ipc_gate_obj *>(o))
+ else if (Ipc_gate *g = cxx::dyn_cast<Ipc_gate_obj *>(o))
show_sender_list(&g->_wait_q, 1, 1, "Ipc_gate", g->dbg_id());
else
return false;
IMPLEMENT
Jdb_sender_list::Jdb_sender_list()
- : Jdb_module("INFO"), Jdb_kobject_handler(0)
+ : Jdb_module("INFO")
{
Jdb_kobject::module()->register_handler(this);
}