Unbroke the debug build (also in user mode).

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6293 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-01-25 15:03:38 +00:00
parent ba6b73149c
commit 67a14a5ee7
@@ -260,6 +260,7 @@ dump_bplustree_node(bplustree_node *node,bplustree_header *header,Volume *volume
// #pragma mark - // #pragma mark -
#ifndef USER
//#warn Don't mount more than once... would register twice the debugger commands! //#warn Don't mount more than once... would register twice the debugger commands!
static int static int
@@ -276,17 +277,22 @@ dbg_inode(int argc, char **argv)
return B_OK; return B_OK;
} }
#endif
void void
unregister_debugger_commands() remove_debugger_commands()
{ {
#ifndef USER
remove_debugger_command("obfsinode", dbg_inode); remove_debugger_command("obfsinode", dbg_inode);
#endif
} }
void void
register_debugger_commands() add_debugger_commands()
{ {
#ifndef USER
add_debugger_command("obfsinode", dbg_inode, "dump an Inode object"); add_debugger_command("obfsinode", dbg_inode, "dump an Inode object");
#endif
} }