public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Mark Salter <msalter@redhat.com>
To: vinayak@multitech.co.in
Cc: ecos-discuss@sources.redhat.com
Subject: [ECOS] Re: remote debugging
Date: Mon, 22 Jul 2002 09:43:00 -0000	[thread overview]
Message-ID: <200207221641.g6MGf2P25810@deneb.localdomain> (raw)
In-Reply-To: <3D3C33F9.54517685@multitech.co.in> (message from Vinayak P Risbud on Mon, 22 Jul 2002 22:04:01 +0530)

>>>>> Vinayak P Risbud writes:

>         Hi,
>             I am trying to use remote debugging using LAN (Tcp/Ip) on
> Redboot
>             What I understood till now is,
>                     1.  the main polls net_io_test function during idle
> time
>                     2.  The function net_io_test checks for
>                                         tcp_sock.state == _ESTABLISHED
>                     3.   If established, the control calls
> net_io_assume_console
>                          to setup debug channel.

>                 But,  after this, how the flow goes,  I am not able to
> trace.

The above happens during TCP connection establishment and not for
debugging per se.

>                 my gdb client on remote PC sends $Hc-1#09 command,
>                 over tcp/ip link.
>                 I am not able to trace, where and how exactly this gdb
>                 command is read and processed (i.e trap is generated ?)

When RedBoot sees the '$' character in the input stream, it executes
a breakpoint instruction which in turn gives control to the GDB stub.

See the interpreter loop in main.c where there is a test:

            if (res == _GETS_GDB) {
               ...
            }

--Mark



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

  reply	other threads:[~2002-07-22 16:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-22  9:35 [ECOS] " Vinayak P Risbud
2002-07-22  9:43 ` Mark Salter [this message]
2002-07-22  9:43 ` Gary Thomas

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=200207221641.g6MGf2P25810@deneb.localdomain \
    --to=msalter@redhat.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=vinayak@multitech.co.in \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).