From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25746 invoked by alias); 22 Jul 2002 16:43:08 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 25647 invoked from network); 22 Jul 2002 16:42:49 -0000 Received: from unknown (HELO hermes.chez-thomas.org) (63.225.98.241) by sources.redhat.com with SMTP; 22 Jul 2002 16:42:49 -0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by hermes.chez-thomas.org (Postfix) with ESMTP id 340FC1394; Mon, 22 Jul 2002 10:42:17 -0600 (MDT) Subject: Re: [ECOS] remote debugging From: Gary Thomas To: Vinayak P Risbud Cc: eCos Discussion , gdb In-Reply-To: <3D3C33F9.54517685@multitech.co.in> References: <3D3C33F9.54517685@multitech.co.in> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 22 Jul 2002 09:43:00 -0000 Message-Id: <1027356137.25328.31.camel@hermes.chez-thomas.org> Mime-Version: 1.0 X-SW-Source: 2002-07/txt/msg00226.txt.bz2 On Mon, 2002-07-22 at 10:34, Vinayak P Risbud wrote: > 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. More than that - at this point, all "console" I/O to RedBoot now goes through the TCP/IP connection. > > But, after this, how the flow goes, I am not able to > trace. > 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 ?) As soon as RedBoot sees a "$" at the start of a command line, it switches to GDB (via a call to 'breakpoint()'). This happens whether you are using serial or network I/O. GDB will then continue to use the network connection for it's I/O to the target device.