GDB常用命令
help all:列出所有命令
file
- load
- run [argument]
- show arch:show出現有CPU architecture
- info target
- info break:列出breakpoint
- enable NUM:將breakpoint NUM enable
- disable NUM:將breakpoint NUM disable
- delete NUM:將breakpoint NUM delete掉
- break FILE:NUM:於FILE中第NUM行設一中斷點
- break *ADDRESS:於ADDRESS中設中斷點
- break FUNC:於FUNCTION設中斷點
- watch VAR:當VAR的值被改變時,停在VAR被改變點
- rwatch VAR:當VAR的值被讀取時,停在VAR被讀取點
- next:next statement,over function call
- nexti:下一個instruction,不進入function
- step:next statement,go into function call
- stepi:下一個instruction,進入function
- continue:continue run
- bt:backtrace
- kill
- list:list source code
- info reg:list registers value
- set $reg value:設定register的值
No comments:
Post a Comment