Download GDB User Manual - C programming language ressources
Transcript
248 Debugging with gdb Synopsis -environment-cd pathdir Set gdb’s working directory. gdb Command The corresponding gdb command is ‘cd’. Example (gdb) -environment-cd /kwikemart/marge/ezannoni/flathead-dev/devo/gdb ^done (gdb) The -environment-directory Command Synopsis -environment-directory [ -r ] [ pathdir ]+ Add directories pathdir to beginning of search path for source files. If the ‘-r’ option is used, the search path is reset to the default search path. If directories pathdir are supplied in addition to the ‘-r’ option, the search path is first reset and then addition occurs as normal. Multiple directories may be specified, separated by blanks. Specifying multiple directories in a single command results in the directories added to the beginning of the search path in the same order they were presented in the command. If blanks are needed as part of a directory name, double-quotes should be used around the name. In the command output, the path will show up separated by the system directory-separator character. The directory-separator character must not be used in any directory name. If no directories are specified, the current search path is displayed. gdb Command The corresponding gdb command is ‘dir’. Example (gdb) -environment-directory /kwikemart/marge/ezannoni/flathead-dev/devo/gdb ^done,source-path="/kwikemart/marge/ezannoni/flathead-dev/devo/gdb:$cdir:$cwd" (gdb) -environment-directory "" ^done,source-path="/kwikemart/marge/ezannoni/flathead-dev/devo/gdb:$cdir:$cwd" (gdb) -environment-directory -r /home/jjohnstn/src/gdb /usr/src ^done,source-path="/home/jjohnstn/src/gdb:/usr/src:$cdir:$cwd" (gdb) -environment-directory -r ^done,source-path="$cdir:$cwd" (gdb) The -environment-path Command Synopsis -environment-path [ -r ] [ pathdir ]+
Related documents
HP gnu source-level debugger 5992-4701 User's Manual
Data processing system including a separate input/output processor
gdb960 User`s Manual
fulltext01 - DiVA Portal
User Manual
THAT BEFORE! THAT BEFORE!
Debugging with GDB - ESA Microelectronics Section
Windows 2000 09
Red Hat Developer Toolset 2.x User Guide