* Re: [PATCH]: ser-tcp.c: Use `localhost' as default hostname [not found] <20010731210714.A3717@cygbert.vinschen.de> @ 2001-08-01 11:34 ` Andrew Cagney 2001-08-01 12:00 ` Kevin Buettner ` (3 more replies) 2001-08-01 22:25 ` Andrew Cagney 1 sibling, 4 replies; 10+ messages in thread From: Andrew Cagney @ 2001-08-01 11:34 UTC (permalink / raw) To: gdb-patches > Hi, > > I don't like to type > > target remote localhost:1234 > > all the time. It"s possible to abbreviate it to > > ta r localhost:1234 > > but I don't see a need to type `localhost'. I would like to have > `localhost' as default if no hostname is given like in: > > ta r :1234 I don't have an opinion. Does anyone strongly object or concure with this? Andrew ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH]: ser-tcp.c: Use `localhost' as default hostname 2001-08-01 11:34 ` [PATCH]: ser-tcp.c: Use `localhost' as default hostname Andrew Cagney @ 2001-08-01 12:00 ` Kevin Buettner 2001-08-01 12:09 ` Stan Shebs ` (2 subsequent siblings) 3 siblings, 0 replies; 10+ messages in thread From: Kevin Buettner @ 2001-08-01 12:00 UTC (permalink / raw) To: Andrew Cagney, gdb-patches On Aug 1, 2:34pm, Andrew Cagney wrote: > > I don't like to type > > > > target remote localhost:1234 > > > > all the time. It"s possible to abbreviate it to > > > > ta r localhost:1234 > > > > but I don't see a need to type `localhost'. I would like to have > > `localhost' as default if no hostname is given like in: > > > > ta r :1234 > > > I don't have an opinion. Does anyone strongly object or concure with this? I don't strongly object or concur. But I will observe that commands like ``target remote localhost:1234'' might be better placed in a .gdbinit file or some other file which can be explicitly sourced. I.e, so myinits doesn't seem so bad to type. (And if it's placed in .gdbinit, there's no typing at all.) Kevin ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH]: ser-tcp.c: Use `localhost' as default hostname 2001-08-01 11:34 ` [PATCH]: ser-tcp.c: Use `localhost' as default hostname Andrew Cagney 2001-08-01 12:00 ` Kevin Buettner @ 2001-08-01 12:09 ` Stan Shebs 2001-08-01 13:25 ` Michael Snyder 2001-08-01 23:54 ` Eli Zaretskii 3 siblings, 0 replies; 10+ messages in thread From: Stan Shebs @ 2001-08-01 12:09 UTC (permalink / raw) To: Andrew Cagney; +Cc: gdb-patches Andrew Cagney wrote: > > > ta r :1234 > > I don't have an opinion. Does anyone strongly object or concure with this? Heh, for some reason I thought this already worked. But yeah, it seems like the right thing - ':' is not normally the first character of a host name, so no ambiguity. Stan ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH]: ser-tcp.c: Use `localhost' as default hostname 2001-08-01 11:34 ` [PATCH]: ser-tcp.c: Use `localhost' as default hostname Andrew Cagney 2001-08-01 12:00 ` Kevin Buettner 2001-08-01 12:09 ` Stan Shebs @ 2001-08-01 13:25 ` Michael Snyder 2001-08-01 23:54 ` Eli Zaretskii 3 siblings, 0 replies; 10+ messages in thread From: Michael Snyder @ 2001-08-01 13:25 UTC (permalink / raw) To: Andrew Cagney; +Cc: gdb-patches Andrew Cagney wrote: > > > Hi, > > > > I don't like to type > > > > target remote localhost:1234 > > > > all the time. It"s possible to abbreviate it to > > > > ta r localhost:1234 > > > > but I don't see a need to type `localhost'. I would like to have > > `localhost' as default if no hostname is given like in: > > > > ta r :1234 > > I don't have an opinion. Does anyone strongly object or concure with this? I think it's a great idea. The default for "host" should be "this host". And like Stan says, it shouldn't do any harm... ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH]: ser-tcp.c: Use `localhost' as default hostname 2001-08-01 11:34 ` [PATCH]: ser-tcp.c: Use `localhost' as default hostname Andrew Cagney ` (2 preceding siblings ...) 2001-08-01 13:25 ` Michael Snyder @ 2001-08-01 23:54 ` Eli Zaretskii 3 siblings, 0 replies; 10+ messages in thread From: Eli Zaretskii @ 2001-08-01 23:54 UTC (permalink / raw) To: Andrew Cagney; +Cc: gdb-patches On Wed, 1 Aug 2001, Andrew Cagney wrote: > > I don't like to type > > > > target remote localhost:1234 > > > > all the time. It"s possible to abbreviate it to > > > > ta r localhost:1234 > > > > but I don't see a need to type `localhost'. I would like to have > > `localhost' as default if no hostname is given like in: > > > > ta r :1234 > > I don't have an opinion. Does anyone strongly object or concure with this? Can the string after "target remote" ever be a file name? If so, the code that implements this should need to exercise caution not to break the DOS/Windows drive-letter brain-damage. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH]: ser-tcp.c: Use `localhost' as default hostname [not found] <20010731210714.A3717@cygbert.vinschen.de> 2001-08-01 11:34 ` [PATCH]: ser-tcp.c: Use `localhost' as default hostname Andrew Cagney @ 2001-08-01 22:25 ` Andrew Cagney 2001-08-01 23:55 ` Eli Zaretskii 2001-08-02 2:50 ` Corinna Vinschen 1 sibling, 2 replies; 10+ messages in thread From: Andrew Cagney @ 2001-08-01 22:25 UTC (permalink / raw) To: gdb-patches Corinna, Can you please add your self to the write-after-approval list of the gdb/MAINTAINERS file as an ``obvious fix'' (don't forget to post the corresponding change). Your patch is approved. Should this be mentioned in the doco? Andrew ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH]: ser-tcp.c: Use `localhost' as default hostname 2001-08-01 22:25 ` Andrew Cagney @ 2001-08-01 23:55 ` Eli Zaretskii 2001-08-02 2:50 ` Corinna Vinschen 1 sibling, 0 replies; 10+ messages in thread From: Eli Zaretskii @ 2001-08-01 23:55 UTC (permalink / raw) To: Andrew Cagney; +Cc: gdb-patches On Thu, 2 Aug 2001, Andrew Cagney wrote: > Your patch is approved. Should this be mentioned in the doco? Of course. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH]: ser-tcp.c: Use `localhost' as default hostname 2001-08-01 22:25 ` Andrew Cagney 2001-08-01 23:55 ` Eli Zaretskii @ 2001-08-02 2:50 ` Corinna Vinschen 2001-08-02 3:09 ` Eli Zaretskii 1 sibling, 1 reply; 10+ messages in thread From: Corinna Vinschen @ 2001-08-02 2:50 UTC (permalink / raw) To: gdb-patches On Thu, Aug 02, 2001 at 01:25:43AM -0400, Andrew Cagney wrote: > Corinna, > > Can you please add your self to the write-after-approval list of the > gdb/MAINTAINERS file as an ``obvious fix'' (don't forget to post the > corresponding change). > > Your patch is approved. Should this be mentioned in the doco? Applied. What about the following patch to the docu: 2001-08-02 Corinna Vinschen <vinschen@redhat.com> * gdb.texinfo: Explain omitting the hostname in the `target remote' command. Index: gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.47 diff -u -p -r1.47 gdb.texinfo --- gdb.texinfo 2001/07/28 19:35:20 1.47 +++ gdb.texinfo 2001/08/02 09:01:48 @@ -9636,6 +9636,17 @@ terminal server named @code{manyfarms}: @example target remote manyfarms:2828 @end example + +If your remote target is actually running on the same machine as +your debugger session (e.g. a simulator of your target running on +the same host) you can omit the hostname. For example, to connect +to port 1234 on your local machine: + +@example +target remote :1234 +@end example + +Note that the colon is still required here. @end enumerate Now you can use all the usual commands to examine and change data and to Corinna -- Corinna Vinschen Cygwin Developer Red Hat, Inc. mailto:vinschen@redhat.com ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH]: ser-tcp.c: Use `localhost' as default hostname 2001-08-02 2:50 ` Corinna Vinschen @ 2001-08-02 3:09 ` Eli Zaretskii 2001-08-02 3:52 ` Corinna Vinschen 0 siblings, 1 reply; 10+ messages in thread From: Eli Zaretskii @ 2001-08-02 3:09 UTC (permalink / raw) To: gdb-patches On Thu, 2 Aug 2001, Corinna Vinschen wrote: > What about the following patch to the docu: > > 2001-08-02 Corinna Vinschen <vinschen@redhat.com> > > * gdb.texinfo: Explain omitting the hostname in the > `target remote' command. Thanks. This is approved, with the following nitpicking: > +your debugger session (e.g. a simulator of your target running on Please use "e.g.@:", to get TeX typeset this correctly (a period before a blank is by default taken as ending the sentence). > +the same host) you can omit the hostname. For example, to connect ^ You need a comma after the right parenthesis. > +@example > +target remote :1234 > +@end example > + > +Note that the colon is still required here. Please add @noindent, on a line by itself, before the last line (since that line should not be indented, as it continues the example that's before it). ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH]: ser-tcp.c: Use `localhost' as default hostname 2001-08-02 3:09 ` Eli Zaretskii @ 2001-08-02 3:52 ` Corinna Vinschen 0 siblings, 0 replies; 10+ messages in thread From: Corinna Vinschen @ 2001-08-02 3:52 UTC (permalink / raw) To: gdb-patches On Thu, Aug 02, 2001 at 01:11:08PM +0300, Eli Zaretskii wrote: > > On Thu, 2 Aug 2001, Corinna Vinschen wrote: > > > What about the following patch to the docu: > > > > 2001-08-02 Corinna Vinschen <vinschen@redhat.com> > > > > * gdb.texinfo: Explain omitting the hostname in the > > `target remote' command. > > Thanks. This is approved, with the following nitpicking: > > > +your debugger session (e.g. a simulator of your target running on > > Please use "e.g.@:", to get TeX typeset this correctly (a period before a > blank is by default taken as ending the sentence). > > > +the same host) you can omit the hostname. For example, to connect > ^ > You need a comma after the right parenthesis. > > > +@example > > +target remote :1234 > > +@end example > > + > > +Note that the colon is still required here. > > Please add @noindent, on a line by itself, before the last line (since > that line should not be indented, as it continues the example that's > before it). Thanks for the hints. Applied with the above changes. Corinna -- Corinna Vinschen Cygwin Developer Red Hat, Inc. mailto:vinschen@redhat.com ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2001-08-02 3:52 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20010731210714.A3717@cygbert.vinschen.de>
2001-08-01 11:34 ` [PATCH]: ser-tcp.c: Use `localhost' as default hostname Andrew Cagney
2001-08-01 12:00 ` Kevin Buettner
2001-08-01 12:09 ` Stan Shebs
2001-08-01 13:25 ` Michael Snyder
2001-08-01 23:54 ` Eli Zaretskii
2001-08-01 22:25 ` Andrew Cagney
2001-08-01 23:55 ` Eli Zaretskii
2001-08-02 2:50 ` Corinna Vinschen
2001-08-02 3:09 ` Eli Zaretskii
2001-08-02 3:52 ` Corinna Vinschen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox