paging support to KDL (but not the on-screen debug output for now). * Defaults to "on", use the new "paging" KDL command to turn it off (or on again). * When pressing 'q' while it is waiting for a key, it will now eat the rest of the commands output (helpful for slow screen output of a large data set). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23566 a95241bf-73f2-0310-859d-f6bbb57e9c96
41 lines
860 B
C
41 lines
860 B
C
/*
|
|
* Copyright 2008, Ingo Weinhold, [email protected]
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _KERNEL_DEBUG_COMMANDS_H
|
|
#define _KERNEL_DEBUG_COMMANDS_H
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
struct debugger_command {
|
|
struct debugger_command *next;
|
|
int (*func)(int, char **);
|
|
const char *name;
|
|
const char *description;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
debugger_command* next_debugger_command(debugger_command* command,
|
|
const char* prefix, int prefixLen);
|
|
debugger_command* find_debugger_command(const char* name, bool partialMatch,
|
|
bool& ambiguous);
|
|
bool in_command_invocation(void);
|
|
|
|
int invoke_debugger_command(struct debugger_command *command, int argc,
|
|
char** argv);
|
|
|
|
debugger_command* get_debugger_commands();
|
|
void sort_debugger_commands();
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|
|
|
|
|
|
#endif // _KERNEL_DEBUG_COMMANDS_H
|