|
NAMEDB_COMMAND , DB_SHOW_COMMAND ,
DB_SHOW_ALL_COMMAND —
Extends the ddb command set
SYNOPSIS#include <ddb/ddb.h>
DESCRIPTIONTheDB_COMMAND () macro adds
command_name to the list of top-level commands. Invoking
command_name from ddb will call
command_function.
The The general command syntax:
EXAMPLEIn your module, the command is declared as:DB_COMMAND(mycmd, my_cmd_func) { if (have_addr) db_printf("Calling my command with address %p\n", addr); } Then, when in ddb: db> mycmd 0x1000
Calling my command with address 0x1000
db>
SEE ALSOddb(4)AUTHORSThis manual page was written by Guillaume Ballet <gballet@gmail.com>.
Visit the GSP FreeBSD Man Page Interface. |