From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16616 invoked by alias); 17 Oct 2003 09:32:56 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 16605 invoked from network); 17 Oct 2003 09:32:54 -0000 Received: from unknown (HELO anchor-post-35.mail.demon.net) (194.217.242.85) by sources.redhat.com with SMTP; 17 Oct 2003 09:32:54 -0000 Received: from calivar.demon.co.uk ([212.228.213.211] helo=miso.calivar.com) by anchor-post-35.mail.demon.net with esmtp (Exim 3.35 #1) id 1AAQya-000JXm-0Z; Fri, 17 Oct 2003 10:32:54 +0100 Received: from miso.calivar.com (miso.calivar.com [127.0.0.2]) by miso.calivar.com (Postfix) with ESMTP id 7EADE28DF48; Fri, 17 Oct 2003 10:26:58 +0100 (BST) To: Ottawa Guy Cc: ecos-discuss@sources.redhat.com References: <20031016205203.79811.qmail@web13005.mail.yahoo.com> From: Nick Garnett Date: Fri, 17 Oct 2003 09:32:00 -0000 In-Reply-To: <20031016205203.79811.qmail@web13005.mail.yahoo.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [ECOS] gdb stubs in ecos. X-SW-Source: 2003-10/txt/msg00316.txt.bz2 Ottawa Guy writes: > Hello everyone, > I have an interesting problem. I am running a > simulator. This simulator has interface similar to > redBoot. That means I could request the simulator to > load an ELF object file and start executing code at > some memory address. > > > Now I want to run gdb-stubs on that simulator and then > use the host gdb program to connect to the simulator. > > Can someone suggest me what to do. This all depends on the level of hardware emulation that the simulator supports. Does the simulator have full emulation of things like the interrupt controller, UARTs, etc? One approach we used in the past was for the simulator to connect its UART device emulation to a TCP socket. We could then connect GDB to that socket and treat it like a serial line. However, it was all very slow because all debug interations were handled by simuated target code. -- Nick Garnett eCos Kernel Architect http://www.ecoscentric.com The eCos and RedBoot experts -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss