Index: gdbmi.texinfo =================================================================== RCS file: /cvs/src/src/gdb/mi/gdbmi.texinfo,v retrieving revision 1.29 diff -u -r1.29 gdbmi.texinfo --- gdbmi.texinfo 3 Oct 2002 22:31:31 -0000 1.29 +++ gdbmi.texinfo 9 Nov 2002 00:30:50 -0000 @@ -1665,10 +1665,18 @@ @subsubheading Synopsis @example - -environment-directory @var{pathdir} + -environment-directory [ -r ] [ @var{pathdir} ]+ @end example -Add directory @var{pathdir} to beginning of search path for source files. +Add directories @var{pathdir} to beginning of search path for source files. +If the @samp{-r} option is used, the search path is reset to the default +search path. If directories @var{pathdir} are supplied in addition to the +@samp{-r} option, the search path is first reset and then addition +occurs as normal. +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 no directories are specified, the current search path is displayed. @subsubheading @value{GDBN} Command @@ -1679,7 +1687,16 @@ @smallexample (@value{GDBP}) -environment-directory /kwikemart/marge/ezannoni/flathead-dev/devo/gdb -^done +^done,source-path="/kwikemart/marge/ezannoni/flathead-dev/devo/gdb:$cdir:$cwd" +(@value{GDBP}) +-environment-directory "" +^done,source-path="/kwikemart/marge/ezannoni/flathead-dev/devo/gdb:$cdir:$cwd" +(@value{GDBP}) +-environment-directory -r /home/jjohnstn/src/gdb +^done,source-path="/home/jjohnstn/src/gdb:$cdir:$cwd" +(@value{GDBP}) +-environment-directory -r +^done,source-path="$cdir:$cwd" (@value{GDBP}) @end smallexample @@ -1690,10 +1707,12 @@ @subsubheading Synopsis @example - -environment-path ( @var{pathdir} )+ + -environment-path [ @var{pathdir} ]+ @end example Add directories @var{pathdir} to beginning of search path for object files. +If no paths or an empty path is specified, the current object search path +is displayed with no modification. @subsubheading @value{GDBN} Command @@ -1704,7 +1723,10 @@ @smallexample (@value{GDBP}) -environment-path /kwikemart/marge/ezannoni/flathead-dev/ppc-eabi/gdb -^done +^done,path="/kwikemart/marge/ezannoni/flathead-dev/ppc-eabi/gdb:/usr/bin" +(@value{GDBP}) +-environment-path +^done,path="/kwikemart/marge/ezannoni/flathead-dev/ppc-eabi/gdb:/usr/bin" (@value{GDBP}) @end smallexample @@ -1729,8 +1751,7 @@ @smallexample (@value{GDBP}) -environment-pwd -~Working directory /kwikemart/marge/ezannoni/flathead-dev/devo/gdb. -^done +^done,cwd="/kwikemart/marge/ezannoni/flathead-dev/devo/gdb" (@value{GDBP}) @end smallexample