Příkazy pro práci v interaktivním režimu



PříkazCo dělá
show argsShow arguments to give program being debugged when it is started
info handleWhat debugger does when program gets various signals
killKill execution of program being debugged
targetConnect to a target machine or process
handleSpecify how to handle a signal
runStart debugged program
continueContinue program being debugged
jumpContinue program being debugged at specified line or address
untilExecute until the program reaches a source line greater than the current
stepStep program until it reaches a different source line
nextStep program
finishExecute until selected stack frame returns
nextiStep one instruction
stepiStep one instruction exactly
signalContinue program giving it signal specified by the argument
detachDetach a process or file previously attached
attachAttach to a process or file outside of GDB
unset environmentCancel environment variable VAR for the program
ttySet terminal for future runs of program being debugged
set environmentSet environment variable value to give the program
set argsSet arguments to give program being debugged when it is started
threadUse this command to switch between threads
thread applyApply a command to a list of threads
apply allApply a command to all threads

Index







PříkazCo dělá
btPrint backtrace of all stack frames
backtracePrint backtrace of all stack frames
select-frameSelect a stack frame without printing anything
frameSelect and print a stack frame
downSelect and print stack frame called by this one
upSelect and print stack frame that called this one
returnMake selected stack frame return to its caller

Index







PříkazCo dělá
whatisPrint data type of expression EXP
ptypePrint definition of type TYPE
inspectSame as "print" command
printPrint value of expression EXP
callCall a function in the program
setEvaluate expression EXP and assign result to variable VAR
set variableEvaluate expression EXP and assign result to variable VAR
outputLike "print" but don't put in value history and don't print newline
printfPrintf "printf format string"
displayPrint value of expression EXP each time the program stops
undisplayCancel some expressions to be displayed when program stops
disassembleDisassemble a specified section of memory
xExamine memory: x/FMT ADDRESS
delete displayCancel some expressions to be displayed when program stops
disable displayDisable some expressions to be displayed when program stops
enable displayEnable some expressions to be displayed when program stops

Index







PříkazCo dělá
awatchSet a watchpoint for an expression
rwatchSet a read watchpoint for an expression
watchSet a watchpoint for an expression
catchSet breakpoints to catch exceptions that are raised
breakSet breakpoint at specified line or function
clearClear breakpoint at specified line or function
deleteDelete some breakpoints or auto-display expressions
disableDisable some breakpoints
enableEnable some breakpoints
thbreakSet a temporary hardware assisted breakpoint
hbreakSet a hardware assisted breakpoint
tbreakSet a temporary breakpoint
conditionSpecify breakpoint number N to break only if COND is true
commandsSet commands to be executed when a breakpoint is hit
ignoreSet ignore-count of breakpoint number N to COUNT

Index







PříkazCo dělá
show gnutargetShow the current BFD target
cdSet working directory to DIR for debugger and program being debugged
pwdPrint working directory
core-fileUse FILE as core dump for examining memory and registers
sectionChange the base address of section SECTION of the exec file to ADDR
exec-fileUse FILE as program for getting contents of pure memory
fileUse FILE as program to be debugged
sharedlibraryLoad shared object library symbols for files matching REGEXP
pathAdd directory DIR(s) to beginning of search path for object files
loadDynamically load FILE into the running program
add-shared-symbol-filesLoad the symbols from shared objects in the dynamic linker's link map
add-symbol-fileUsage: add-symbol-file FILE ADDR
symbol-fileLoad symbol table from executable file FILE
set gnutargetSet the current BFD target
listList specified function or line
reverse-searchSearch backward for regular expression (see regex(3)) from last line listed
searchSearch for regular expression (see regex(3)) from last line listed
forward-searchSearch for regular expression (see regex(3)) from last line listed
directoryAdd directory DIR to beginning of search path for source files

Index






PříkazCo dělá
showGeneric command for showing things about the debugger
infoGeneric command for showing things about the program being debugged

Index







PříkazCo dělá
ifExecute nested commands once IF the conditional expression is non zero
whileExecute nested commands WHILE the conditional expression is non zero
show confirmShow whether to confirm potentially dangerous operations
show historyGeneric command for showing command history parameters
show editingShow editing of command lines as they are typed
show verboseShow verbosity
show promptShow gdb's prompt
show complaintsShow max number of complaints about incorrect symbols
show demangle-styleShow the current C++ demangling style
show writeShow writing into executable and core files
show check rangeShow range checking
show check typeShow type checking
show languageShow the current source language
show remotecacheShow cache use for remote targets
show auto-solib-addShow autoloading of shared library symbols
show stop-on-solib-eventsShow stopping for shared library events
show symbol-reloadingShow dynamic symbol table reloading multiple times in one run
show radixShow the default input and output number radices
show output-radixShow default output radix for printing of values
show input-radixShow default input radix for entering numbers
show print objectShow printing of object's derived type based on vtable info
show print vtblShow printing of C++ virtual function tables
show print static-membersShow printing of C++ static members
show print addressShow printing of addresses
show print arrayShow prettyprinting of arrays
show print unionShow printing of unions interior to structures
show print prettyShow prettyprinting of structures
show print asm-demangleShow demangling of C++ names in disassembly listings
show print sevenbit-stringsShow printing of 8-bit characters in strings as \nnn
show print demangleShow demangling of encoded C++ names when displaying symbols
show listsizeShow number of source lines gdb will list by default
show heightShow number of lines gdb thinks are in a page
show widthShow number of characters gdb thinks are in a line
dont-repeatDon't repeat this command
helpPrint list of commands
quitExit gdb
sourceRead commands from a file named FILE
defineDefine a new command name
documentDocument a user-defined command
echoPrint a constant string
makeRun the ``make'' program using the rest of the line as arguments
shellExecute the rest of the line as a shell command
set confirmSet whether to confirm potentially dangerous operations
set historyGeneric command for setting command history parameters
set editingSet editing of command lines as they are typed
set verboseSet verbosity
set promptSet gdb's prompt
set complaintsSet max number of complaints about incorrect symbols
set demangle-styleSet the current C++ demangling style
set writeSet writing into executable and core files
set check rangeSet range checking
set check typeSet type checking
set languageSet the current source language
set remotecacheSet cache use for remote targets
set auto-solib-addSet autoloading of shared library symbols
set stop-on-solib-eventsSet stopping for shared library events
set symbol-reloadingSet dynamic symbol table reloading multiple times in one run
set radixSet default input and output number radices
set output-radixSet default output radix for printing of values
set input-radixSet default input radix for entering numbers
set print objectSet printing of object's derived type based on vtable info
set print vtblSet printing of C++ virtual function tables
set print static-membersSet printing of C++ static members
set print addressSet printing of addresses
set print arraySet prettyprinting of arrays
set print unionSet printing of unions interior to structures
set print prettySet prettyprinting of structures
set print asm-demangleSet demangling of C++ names in disassembly listings
set print sevenbit-stringsSet printing of 8-bit characters in strings as \nnn
set print demangleSet demangling of encoded C++ names when displaying symbols
set listsizeSet number of source lines gdb will list by default
set heightSet number of lines gdb thinks are in a page
set widthSet number of characters gdb thinks are in a line
down-silentlySame as the `down' command
up-silentlySame as the `up' command

Index






PříkazCo dělá
defineUse the "define" command to define a command.

Index







PříkazCo dělá
niStep one instruction
siStep one instruction exactly
wherePrint backtrace of all stack frames
delete breakpointsDelete some breakpoints or auto-display expressions
disable breakpointsDisable some breakpoints

Index






PříkazCo dělá
show watchdogShow watchdog timer
show targetdebugShow target debugging
maintenanceCommands for use by GDB maintainers
maintenance check-symtabsCheck consistency of psymtabs and symtabs
maintenance spaceSet the display of space usage
maintenance timeSet the display of time usage
maintenance demangleDemangle a C++ mangled name
maintenance dump-meGet fatal error; make debugger dump its core
maintenance printMaintenance command for printing GDB internal state
maintenance print statisticsPrint statistics about internal gdb state
maintenance print objfilesPrint dump of current object file definitions
maintenance print psymbolsPrint dump of current partial symbol definitions
maintenance print msymbolsPrint dump of current minimal symbol definitions
maintenance print symbolsPrint dump of current symbol definitions
maintenance print typePrint a type chain for a given symbol
maintenance infoCommands for showing internal info about the program being debugged
maintenance info sectionsList the BFD sections of the exec and core files
maintenance info breakpointsStatus of all breakpoints
set watchdogSet watchdog timer
set targetdebugSet target debugging

Index



Tato stránka se nalézá na serveru Fakultě Informatiky
Masarykovy Univerzity v Brně.



Optimalizováno pro Netscape
[Zvolte si kódování]