delaction
摘要
从动作列表中删除已定义的动作。如果传入参数 all,则删除全部动作。
语法
delaction <action_id> | all
| 参数 | 类型 | 说明 |
|---|---|---|
<action_id> |
整数 | 目标动作的数字动作 ID 可使用 ODB 命令 status 获取该参数的动作 ID,它会按数字顺序列出所有动作。 |
all |
不适用 | 删除所有已定义的动作。 |
详细说明
被删除的动作无法恢复。但动作可以通过 suspaction 命令暂停,并通过 actaction 命令重新激活。动作 ID 是唯一的,在关联动作被删除后不会被重复使用。
示例
ODB> status
Breakpoints :
None
Traces :
Full trace is disabled
Encapsulation trace is enabled
Execution trace is disabled
Trace format: indented
No other traces
Actions :
2) action at event (1513): status
3) action at event (1521): snapshot snap_file
Miscellaneous :
Memory tagging is disabled
ODB> delaction 2
“action at event (1513): status” is deleted.
ODB> status
Breakpoints :
None
Traces :
Full trace is disabled
Encapsulation trace is enabled
Execution trace is disabled
Trace format: indented
No other traces
Actions :
3) action at event (1521): snapshot snap_file
Miscellaneous :
Memory tagging is disabled