From: "J. Johnston" <jjohnstn@redhat.com>
To: Eli Zaretskii <eliz@is.elta.co.il>
Cc: ezannoni@redhat.com, gdb-patches@sources.redhat.com
Subject: Re: Proposed patch for gdb/mi 741
Date: Thu, 12 Dec 2002 14:58:00 -0000 [thread overview]
Message-ID: <3DF8F98D.9070104@redhat.com> (raw)
In-Reply-To: <7263-Tue10Dec2002221810+0200-eliz@is.elta.co.il>
[-- Attachment #1: Type: text/plain, Size: 1143 bytes --]
Eli Zaretskii wrote:
>>Date: Tue, 10 Dec 2002 14:28:06 -0500
>>From: "J. Johnston" <jjohnstn@redhat.com>
>>
>>>The doco patch is approved, with one minor gripe: you don't really
>>>explain the syntax of adding multiple directories. One of the examples
>>>suggests that they should be separated by a colon, but that's probably
>>>not true for the DOS/Windows ports, where a semicolon should be used,
>>>right? I suggest to add something about this to the doco.
>>>
>>
>>Actually, the multiple directories are input on the command,
>>separated by blanks
>
>
> See what I mean? ;-)
>
>
>>(this is defined by the syntax of the command). The separator found in
>>the output of the command is dependenent on the system. I have modified the
>>doc slightly to add examples that specify more than one directory separated
>>by a blank. Is that sufficient to handle your concern?
>
>
> It's better, but I'd prefer that the text said explicitly that
> multiple directories should be separated by blanks.
>
> (This, of course, raises the issue of directories whose names include
> blanks ;-)
See the latest attached version.
-- Jeff J.
[-- Attachment #2: 741.doc.patch --]
[-- Type: text/plain, Size: 3920 bytes --]
Index: gdbmi.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/mi/gdbmi.texinfo,v
retrieving revision 1.30
diff -u -r1.30 gdbmi.texinfo
--- gdbmi.texinfo 11 Nov 2002 17:09:50 -0000 1.30
+++ gdbmi.texinfo 12 Dec 2002 20:58:09 -0000
@@ -1665,10 +1665,25 @@
@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.
+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-seperator
+character must not be used
+in any directory name.
+If no directories are specified, the current search path is displayed.
@subsubheading @value{GDBN} Command
@@ -1679,7 +1694,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 /usr/src
+^done,source-path="/home/jjohnstn/src/gdb:/usr/src:$cdir:$cwd"
+(@value{GDBP})
+-environment-directory -r
+^done,source-path="$cdir:$cwd"
(@value{GDBP})
@end smallexample
@@ -1690,10 +1714,27 @@
@subsubheading Synopsis
@example
- -environment-path ( @var{pathdir} )+
+ -environment-path [ -r ] [ @var{pathdir} ]+
@end example
Add directories @var{pathdir} to beginning of search path for object files.
+If the @samp{-r} option is used, the search path is reset to the original
+search path that existed at gdb start-up. 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.
+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-seperator
+character must not be used
+in any directory name.
+If no directories are specified, the current path is displayed.
+
@subsubheading @value{GDBN} Command
@@ -1703,8 +1744,14 @@
@smallexample
(@value{GDBP})
--environment-path /kwikemart/marge/ezannoni/flathead-dev/ppc-eabi/gdb
-^done
+-environment-path
+^done,path="/usr/bin"
+(@value{GDBP})
+-environment-path /kwikemart/marge/ezannoni/flathead-dev/ppc-eabi/gdb /bin
+^done,path="/kwikemart/marge/ezannoni/flathead-dev/ppc-eabi/gdb:/bin:/usr/bin"
+(@value{GDBP})
+-environment-path -r /usr/local/bin
+^done,path="/usr/local/bin:/usr/bin"
(@value{GDBP})
@end smallexample
@@ -1729,8 +1776,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
next prev parent reply other threads:[~2002-12-12 21:03 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-09 12:50 J. Johnston
2002-10-09 23:03 ` Eli Zaretskii
2002-10-22 9:08 ` Elena Zannoni
2002-11-07 14:10 ` J. Johnston
2002-11-07 16:00 ` Elena Zannoni
2002-11-08 15:53 ` J. Johnston
2002-11-11 17:15 ` J. Johnston
2002-12-06 7:34 ` Elena Zannoni
2002-12-09 17:05 ` J. Johnston
2002-12-09 20:59 ` Elena Zannoni
2002-12-09 22:17 ` Eli Zaretskii
2002-12-10 11:35 ` J. Johnston
2002-12-10 12:22 ` Eli Zaretskii
2002-12-12 14:58 ` J. Johnston [this message]
2002-12-13 5:05 ` Eli Zaretskii
2002-12-13 9:59 ` J. Johnston
2002-11-09 13:28 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3DF8F98D.9070104@redhat.com \
--to=jjohnstn@redhat.com \
--cc=eliz@is.elta.co.il \
--cc=ezannoni@redhat.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox