— Extends the ddb
() macro adds command_name
to the list of top-level commands. Invoking command_name
from ddb will call command_function
() are roughly equivalent to
() but in these cases,
is a sub-command of the ddb
command and show all
The general command syntax:
translates into the following parameters for
- The address passed to the command as an argument.
- A boolean value that is true if the addr field is
- The number of quad words starting at offset
addr that the command must process.
- A pointer to the string of modifiers. That is, a series of
symbols used to pass some options to the command. For example, the
examine command will display words in decimal form if it
is passed the modifier "d".
In your module, the command is declared as:
db_printf("Calling my command with address %p\n", addr);
Then, when in ddb:
db> mycmd 0x1000 Calling my command with address 0x1000 db>
This manual page was written by Guillaume Ballet