From mboxrd@z Thu Jan 1 00:00:00 1970 From: Corinna Vinschen To: gdb-patches Subject: Re: [PATCH]: ser-tcp.c: Use `localhost' as default hostname Date: Thu, 02 Aug 2001 02:50:00 -0000 Message-id: <20010802110954.E21481@cygbert.vinschen.de> References: <20010731210714.A3717@cygbert.vinschen.de> <3B68E457.5020500@cygnus.com> X-SW-Source: 2001-08/msg00029.html 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 * 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