Nuke db_show_fs_cmd() and the "machine fs" command in the debugger. The

command has not been used for years and is really broken now vfs_conf.c
is no more.
This commit is contained in:
mark 1998-02-21 02:42:42 +00:00
parent 81d2791bd9
commit b302819fbe
2 changed files with 2 additions and 28 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_interface.c,v 1.16 1997/10/14 10:16:39 mark Exp $ */
/* $NetBSD: db_interface.c,v 1.17 1998/02/21 02:42:42 mark Exp $ */
/*
* Copyright (c) 1996 Scott K. Stevens
@ -267,7 +267,6 @@ Debugger()
}
void db_show_vmstat_cmd __P((db_expr_t addr, int have_addr, db_expr_t count, char *modif));
void db_show_fs_cmd __P((db_expr_t addr, int have_addr, db_expr_t count, char *modif));
void db_show_vnode_cmd __P((db_expr_t addr, int have_addr, db_expr_t count, char *modif));
void db_show_intrchain_cmd __P((db_expr_t addr, int have_addr, db_expr_t count, char *modif));
void db_show_panic_cmd __P((db_expr_t addr, int have_addr, db_expr_t count, char *modif));
@ -275,7 +274,6 @@ void db_show_frame_cmd __P((db_expr_t addr, int have_addr, db_expr_t count, char
struct db_command arm32_db_command_table[] = {
{ "vmstat", db_show_vmstat_cmd, 0, NULL },
{ "fs", db_show_fs_cmd, 0, NULL },
{ "vnode", db_show_vnode_cmd, 0, NULL },
{ "intrchain", db_show_intrchain_cmd, 0, NULL },
{ "panic", db_show_panic_cmd, 0, NULL },

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_machdep.c,v 1.7 1997/10/14 10:11:06 mark Exp $ */
/* $NetBSD: db_machdep.c,v 1.8 1998/02/21 02:42:42 mark Exp $ */
/*
* Copyright (c) 1996 Mark Brinicombe
@ -30,7 +30,6 @@
#include <sys/param.h>
#include <sys/proc.h>
#include <sys/mount.h>
#include <sys/vnode.h>
#include <sys/systm.h>
@ -42,29 +41,6 @@
#include <machine/irqhandler.h>
void
db_show_fs_cmd(addr, have_addr, count, modif)
db_expr_t addr;
int have_addr;
db_expr_t count;
char *modif;
{
struct vfsops **vfsp;
int s;
s = splhigh();
db_printf("Registered filesystems (%d)\n", nvfssw);
for (vfsp = &vfssw[0]; vfsp < &vfssw[nvfssw]; vfsp++) {
if (*vfsp == NULL)
continue;
db_printf(" %s\n", (*vfsp)->vfs_name);
}
(void)splx(s);
}
/*
* Print out a description of a vnode.
* Some parts borrowed from kern/vfs_subr.c