help
摘要
显示关于 ODB 命令的“help”帮助信息,包括对命令用途与语法的说明。这些信息可以是一份涵盖指定命令类别的列表,也可以是仅限于单个指定命令的更详细说明。
语法
help
help <category>
help <command>
| 参数 | 类型 | 说明 |
|---|---|---|
<category> |
string | 命令类别的名称 不带参数执行 help 命令即可显示命令类别列表;该类别列表也见下文“示例”一节。 |
<command> |
string | ODB 命令的名称 |
详细说明
不带参数执行 help 命令会显示命令类别列表,这些类别按照命令所关联的实体将 ODB 命令归入若干相互重叠的列表。带类别名称执行 help 命令会显示该类别的列表。basic 类别是最常用命令的列表,而“all”类别是所有 ODB 命令的完整列表(注意该列表很长,会在显示窗口中滚动多次)。所有类别列表均按字母顺序显示。此外还可能存在自定义类别。所有自定义类别都列在下列标准命令类别之后。带命令名称执行 help 命令会显示指定命令的详细信息。
- all
- basic
- event
- memory
- misc
- object
- packet
- process
- stop
- trace
示例
ODB> help event
_______________________________________________________
List of event-related ODB commands
continue : continue event execution until breakpoint.
usage: continue
evprint : print specified pending events.
usage: evprint +<n> | all | #<sched_id> | <objref> | <objref> +<n> | @<time>[-<time>]
evstop : set breakpoint for specified event.
usage: evstop <exec_id> | #<sched_id> | +<n>
iciprint_ev : print ICI (if any) associated with current event.
usage: iciprint_ev
next : advance to some next event.
usage: next [<num_steps> | time]
ODB> help evstop
evstop : set breakpoint for specified event.
usage: evstop <exec_id> | #<sched_id> | +<n>
evstop options:
<exec_id> -- set breakpoint for event with specified execution ID
#<sched_id> -- set breakpoint for event with specified schedule ID
+<n> -- set breakpoint for nth next event
You can specify an arbitrary number of breakpoints at once.