ソフトウェア設計及び演習2015

ヘルプ [help]と短縮コマンド

ヘルプ [help]と短縮コマンド

gdb を起動させる.

$ gdb

help コマンドを使用することによって,gdbコマンドに関するヘルプ情報を表示することができる.

(gdb) help
List of classes of commands:

aliases -- Aliases of other commands
breakpoints -- Making program stop at certain points
data -- Examining data
files -- Specifying and examining files
internals -- Maintenance commands
obscure -- Obscure features
running -- Running the program
stack -- Examining the stack
status -- Status inquiries
support -- Support facilities
tracepoints -- Tracing of program execution without stopping the program
user-defined -- User-defined commands

Type "help" followed by a class name for a list of commands in that class.
Type "help all" for the list of all commands.
Type "help" followed by command name for full documentation.
Type "apropos word" to search for commands related to "word".
Command name abbreviations are allowed if unambiguous.

クラス名を引数に指定して,そのクラスに属するコマンドの一覧を表示する.

(gdb) help breakpoints
Making program stop at certain points.

List of commands:

awatch -- Set a watchpoint for an expression
break -- Set breakpoint at specified line or function
catch -- Set catchpoints to catch events
catch assert -- Catch failed Ada assertions
...

quit コマンドで gdb を終了させる.

(gdb) quit
コマンドは、最初の2,3文字に省略することができる.
コマンド 短縮コマンド
backtrace bt
break b
continue c
delete d
display disp
finish fin
frame f
help h
info breakpoints i b
info watchpoints i wat
list l
next n
print p
ptype pt
quit q
run r
rwatch rw
set set
step s
undisplay und
watch wa


最終更新日:2015/03/05 10:01:24