[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.30 and 1.31

version 1.30, 2005/02/26 23:04:17 version 1.31, 2005/06/01 12:25:27
Line 65  __KERNEL_RCSID(0, "$NetBSD$");
Line 65  __KERNEL_RCSID(0, "$NetBSD$");
 #endif  #endif
   
 void  void
 db_kill_proc(db_expr_t addr, int haddr, db_expr_t count, char *modif)  db_kill_proc(db_expr_t addr, int haddr, db_expr_t count, const char *modif)
 {  {
         struct proc *p;          struct proc *p;
         db_expr_t pid, sig;          db_expr_t pid, sig;
Line 102  db_kill_proc(db_expr_t addr, int haddr, 
Line 102  db_kill_proc(db_expr_t addr, int haddr, 
   
 #ifdef KGDB  #ifdef KGDB
 void  void
 db_kgdb_cmd(db_expr_t addr, int haddr, db_expr_t count, char *modif)  db_kgdb_cmd(db_expr_t addr, int haddr, db_expr_t count, const char *modif)
 {  {
         kgdb_active++;          kgdb_active++;
         kgdb_trap(db_trap_type, DDB_REGS);          kgdb_trap(db_trap_type, DDB_REGS);
Line 111  db_kgdb_cmd(db_expr_t addr, int haddr, d
Line 111  db_kgdb_cmd(db_expr_t addr, int haddr, d
 #endif  #endif
   
 void  void
 db_show_all_procs(db_expr_t addr, int haddr, db_expr_t count, char *modif)  db_show_all_procs(db_expr_t addr, int haddr, db_expr_t count, const char *modif)
 {  {
         int i;          int i;
   
         char *mode;          const char *mode;
         struct proc *p, *pp, *cp;          struct proc *p, *pp, *cp;
         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;
   
         if (modif[0] == 0)          if (modif[0] == 0)
                 modif[0] = 'n';                 /* default == normal mode */                  mode = "n";                     /* default == normal mode */
           else
                   mode = strchr("mawln", modif[0]);
   
         mode = strchr("mawln", modif[0]);  
         if (mode == NULL || *mode == 'm') {          if (mode == NULL || *mode == 'm') {
                 db_printf("usage: show all procs [/a] [/n] [/w]\n");                  db_printf("usage: show all procs [/a] [/n] [/w]\n");
                 db_printf("\t/a == show process address info\n");                  db_printf("\t/a == show process address info\n");
Line 227  db_show_all_procs(db_expr_t addr, int ha
Line 228  db_show_all_procs(db_expr_t addr, int ha
 }  }
   
 void  void
 db_dmesg(db_expr_t addr, int haddr, db_expr_t count, char *modif)  db_dmesg(db_expr_t addr, int haddr, db_expr_t count, const char *modif)
 {  {
         struct kern_msgbuf *mbp;          struct kern_msgbuf *mbp;
         db_expr_t print;          db_expr_t print;
Line 280  db_dmesg(db_expr_t addr, int haddr, db_e
Line 281  db_dmesg(db_expr_t addr, int haddr, db_e
 #endif  #endif
   
 void  void
 db_show_sched_qs(db_expr_t addr, int haddr, db_expr_t count, char *modif)  db_show_sched_qs(db_expr_t addr, int haddr, db_expr_t count, const char *modif)
 {  {
         struct prochd *ph;          struct prochd *ph;
         struct lwp *l;          struct lwp *l;

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

CVSweb <webmaster@jp.NetBSD.org>