From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31110 invoked by alias); 11 May 2005 20:13:14 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 30962 invoked from network); 11 May 2005 20:13:09 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 11 May 2005 20:13:09 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j4BKD9E9027079 for ; Wed, 11 May 2005 16:13:09 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j4BKD9O25313; Wed, 11 May 2005 16:13:09 -0400 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id j4BKD85C000347; Wed, 11 May 2005 16:13:09 -0400 Subject: Re: remote target debug problem running From: Keith Seitz To: Nathaniel Mercure Cc: "'insight@sources.redhat.com'" In-Reply-To: <73EE0374460DD311A89E00609779266801B0996D@excserveur.electrolinequip.com> References: <73EE0374460DD311A89E00609779266801B0996D@excserveur.electrolinequip.com> Content-Type: text/plain Date: Wed, 11 May 2005 20:13:00 -0000 Message-Id: <1115842388.1801.4.camel@lindt.uglyboxes.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-q2/txt/msg00025.txt.bz2 On Wed, 2005-05-11 at 16:02 -0400, Nathaniel Mercure wrote: > .../gdb/insight --command=~/bin/mips-gdb.ini > cat ~/bin/mips-gdb.ini > set remoteti 10 > set heur 0 > set remote memory-write-packet-size fixed > set remote memory-write-packet-size 4200 > set download-write-size 3584 > > target remote localhost:2345 > load eCos.elf > > The problem here is that I CAN'T browses any source file. That's because you've only downloaded the code to your target board. You haven't given GDB/Insight an executable to work on. I presume that "eCos.elf" was generated by a compiler. I suggest you change your startup script to do: file eCos.elf target remote localhost:2345 load instead of the last two lines you have. The "file" command is the equivalent of Insight's "open": it causes GDB to read in debugging information for your executable. > When I use open/run to select the elf file and run it. The board connects > to the > remote server but doesn't download the code and gives the following message. > > "You cannot do that without a process to debug" > ... > > In this case I CAN browses the source code ?! That's because the "open" command does the equivalent of GDB's "file" command (the step you were missing before). It prints the error for one of two reasons: you haven't selected a target to debug (File->Target Settings..." or it isn't setting the target based on the last run (which is a bug). Keith