GDBMI_environment_directory.st
changeset 12 568a2971c977
child 21 83395ca8b257
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GDBMI_environment_directory.st	Thu Jun 12 01:21:45 2014 +0100
@@ -0,0 +1,67 @@
+"{ Package: 'jv:libgdbs' }"
+
+GDBMICommand subclass:#GDBMI_environment_directory
+	instanceVariableNames:''
+	classVariableNames:''
+	poolDictionaries:''
+	category:'GDB-Core-Commands-MI'
+!
+
+!GDBMI_environment_directory class methodsFor:'documentation'!
+
+documentation
+"
+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.
+
+{No value for `GDBN'} Command
+.............................
+
+The corresponding {No value for `GDBN'} 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)
+
+
+"
+! !
+
+!GDBMI_environment_directory methodsFor:'accessing'!
+
+operation
+	^ 'environment-directory'
+! !
+