[PATCH]: ser-tcp.c: Use `localhost' as default hostname

Corinna Vinschen vinschen@redhat.com
Thu Aug 2 02:50:00 GMT 2001


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



More information about the Gdb-patches mailing list