[BACK]Return to db_xxx.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / ddb

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/ddb/db_xxx.c between version 1.44 and 1.45

version 1.44, 2007/05/17 14:51:37 version 1.45, 2007/07/09 21:10:47
Line 132  db_show_all_procs(db_expr_t addr, bool h
Line 132  db_show_all_procs(db_expr_t addr, bool h
         struct lwp *l, *cl;          struct lwp *l, *cl;
         struct timeval tv[2];          struct timeval tv[2];
         const struct proclist_desc *pd;          const struct proclist_desc *pd;
           char nbuf[MAXCOMLEN + 1];
   
         if (modif[0] == 0)          if (modif[0] == 0)
                 mode = "n";                     /* default == normal mode */                  mode = "n";                     /* default == normal mode */
Line 153  db_show_all_procs(db_expr_t addr, bool h
Line 154  db_show_all_procs(db_expr_t addr, bool h
                     "COMMAND", "STRUCT PROC *", "UAREA *", "VMSPACE/VM_MAP");                      "COMMAND", "STRUCT PROC *", "UAREA *", "VMSPACE/VM_MAP");
                 break;                  break;
         case 'l':          case 'l':
                 db_printf(" PID        %4s S %9s %18s %18s %-12s\n",                  db_printf(" PID        %4s S %9s %18s %18s %-8s\n",
                     "LID", "FLAGS", "STRUCT LWP *", "UAREA *", "WAIT");                      "LID", "FLAGS", "STRUCT LWP *", "NAME", "WAIT");
                 break;                  break;
         case 'n':          case 'n':
                 db_printf(" PID       %8s %8s %10s S %7s %4s %16s %7s\n",                  db_printf(" PID       %8s %8s %10s S %7s %4s %16s %7s\n",
Line 183  db_show_all_procs(db_expr_t addr, bool h
Line 184  db_show_all_procs(db_expr_t addr, bool h
                         switch (*mode) {                          switch (*mode) {
   
                         case 'a':                          case 'a':
                                 db_printf("%10.10s %18p %18p %18p\n",                                  db_printf("%10.10s %18lx %18lx %18lx\n",
                                     p->p_comm, p,                                      p->p_comm, (long)p,
                                     l != NULL ? l->l_addr : 0,                                      (long)(l != NULL ? l->l_addr : 0),
                                     p->p_vmspace);                                      (long)p->p_vmspace);
                                 break;                                  break;
                         case 'l':                          case 'l':
                                  while (l != NULL) {                                   while (l != NULL) {
                                         db_printf("%c%4d %d %#9x %18p %18p %s\n",                                          if (l->l_name != NULL) {
                                                   snprintf(nbuf, sizeof(nbuf),
                                                       "%s", l->l_name);
                                           } else
                                                   snprintf(nbuf, sizeof(nbuf),
                                                       "%s", p->p_comm);
                                           db_printf("%c%4d %d %9x %18lx %18s %-8s\n",
                                             (cl == l ? '>' : ' '), l->l_lid,                                              (cl == l ? '>' : ' '), l->l_lid,
                                             l->l_stat, l->l_flag, l,                                              l->l_stat, l->l_flag, (long)l, nbuf,
                                             l->l_addr,  
                                             (l->l_wchan && l->l_wmesg) ?                                              (l->l_wchan && l->l_wmesg) ?
                                             l->l_wmesg : "");                                              l->l_wmesg : "");
   

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45

CVSweb <webmaster@jp.NetBSD.org>