PUBLIC static void Jdb_kobject::obj_description(String_buffer *buffer, bool dense, Kobject_dbg *o) { buffer->printf(dense ? "%lx %lx [%-*s]" : "%8lx %08lx [%-*s]", o->dbg_id(), (Mword)Kobject::from_dbg(o), 7, kobject_type(Kobject::from_dbg(o))); for (Handler_iter h = module()->global_handlers.begin(); h != module()->global_handlers.end(); ++h) h->show_kobject_short(buffer, Kobject::from_dbg(o)); if (Jdb_kobject_handler *oh = Jdb_kobject::module()->find_handler(Kobject::from_dbg(o))) oh->show_kobject_short(buffer, Kobject::from_dbg(o)); }
PUBLIC static int Jdb_kobject::obj_description(char *buffer, int max, bool dense, Kobject_dbg *o) { int pos = snprintf(buffer, max, dense ? "%lx %lx [%-*s]" : "%8lx %08lx [%-*s]", o->dbg_id(), (Mword)Kobject::from_dbg(o), 7, kobject_type(Kobject::from_dbg(o))); for (Handler_iter h = module()->global_handlers.begin(); h != module()->global_handlers.end(); ++h) pos += h->show_kobject_short(buffer + pos, max-pos, Kobject::from_dbg(o)); if (Jdb_kobject_handler *oh = Jdb_kobject::module()->find_handler(Kobject::from_dbg(o))) pos += oh->show_kobject_short(buffer + pos, max-pos, Kobject::from_dbg(o)); return pos; }