Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "KONG, Gangfeng" <gkong@IPRG.nokia.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: Quality Quorum <qqi@theworld.com>,
	Andrew Cagney <ac131313@ges.redhat.com>,
	gdb@sources.redhat.com
Subject: Re: Remote target behind console server
Date: Tue, 02 Jul 2002 20:05:00 -0000	[thread overview]
Message-ID: <5.1.0.14.1.20020702200247.00a31960@mailhost.iprg.nokia.com> (raw)
In-Reply-To: <20020629042856.GA25124@nevyn.them.org>

At 12:28 AM 6/29/2002 -0400, Daniel Jacobowitz wrote:
>On Fri, Jun 28, 2002 at 06:45:17PM -0700, KONG, Gangfeng wrote:
> >
> > >
> > >>
> > >> You mean an ``annex[tm]''?  Yes.  You'll likely need to tweak things so
> > >> that  the terminal server automatically connects the GDB session through
> > >> to the serial port.  There isn't an easy way, from GDB, to send terminal
> > >> server commands.
> > >
> > >You have to configure your terminal server appropriately (either enable
> > >'raw' mode on the terminal server or disable 'X' command on the stub/gdb)
> > >and this is basically it, people do it all the time.
> > >
> > >If you are going to do 'load' over this connection big terminal server
> > >buffers may screw it up.
> > Thanks for your message,
> >
> > Basically I need to use 'telnet' to the ip-addr of my terminal server to
> > access
> > the serial port of my target box. I may reconfigure the terminal 
> server, but
> > how can I let gdb to setup an telnet connection to the terminal server and
> > then take this connection as media for its serial access to the stub on
> > the target?
>
>Have you tried using 'target remote ip-addr:port' to the terminal
>server directly?


Hi,

I start the gdb stub on the target by:
         gdbstart -s 38400 -t /dev/ttyS0
and start the gdb on the development box by:
         gdb vmlinux
         gdb)
         gdb) set remotebaud 38400
         gdb) target remote my-server-ipaddr:port  #note, the port I put 
here is the serial port# on the server,
                                                 #not L4 port, correct?
Now I only get error message:
         ignoring packet error, continuing....

If I replace the console server by a direct serial cable for the above 2 
boxes,
and use 'target remote /dev/ttyS0' instead. Everything works fine. So I know
except the serial connection, the rest configs are correct.

Could anybody correct me where I did wrongly ?

Thanks
GF



  reply	other threads:[~2002-07-03  3:05 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-27 18:12 KONG, Gangfeng
2002-06-28 15:49 ` Andrew Cagney
2002-06-28 17:51   ` Quality Quorum
     [not found]   ` <Pine.SGI.4.40.0206282044520.3477647-100000@shell01.TheWorl d.com>
2002-06-28 18:45     ` KONG, Gangfeng
2002-06-28 21:29       ` Daniel Jacobowitz
2002-07-02 20:05         ` KONG, Gangfeng [this message]
2002-07-02 21:40           ` Quality Quorum
2002-07-03  8:40           ` Andrew Cagney
2002-07-03 18:22             ` KONG, Gangfeng
     [not found]           ` <Pine.SGI.4.40.0207030038590.3981310-100000@shell01.TheWorl d.com>
2002-07-03 18:26             ` KONG, Gangfeng
2002-07-03 21:33               ` Quality Quorum
2002-07-03 21:55                 ` Eli Zaretskii
2002-07-08  9:49                   ` Andrew Cagney
     [not found]               ` <Pine.SGI.4.40.0207040021350.4215142-100000@shell01.TheWorl d.com>
2002-07-04 15:01                 ` KONG, Gangfeng
2002-07-04 22:21                   ` Quality Quorum
     [not found]                   ` <Pine.SGI.4.40.0207050115590.4236760-100000@shell01.TheWorl d.com>
2002-07-05 13:56                     ` KONG, Gangfeng
2002-07-05 16:21                       ` Quality Quorum
2002-06-29  7:45       ` Quality Quorum

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=5.1.0.14.1.20020702200247.00a31960@mailhost.iprg.nokia.com \
    --to=gkong@iprg.nokia.com \
    --cc=ac131313@ges.redhat.com \
    --cc=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    --cc=qqi@theworld.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