From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30354 invoked by alias); 16 Sep 2003 13:44:18 -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 30345 invoked from network); 16 Sep 2003 13:44:17 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 16 Sep 2003 13:44:17 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h8GDiF418649 for ; Tue, 16 Sep 2003 09:44:15 -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 h8GDiEe17400; Tue, 16 Sep 2003 09:44:14 -0400 Received: from [150.1.200.14] (vpn50-25.rdu.redhat.com [172.16.50.25]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h8GDiBxI027105; Tue, 16 Sep 2003 09:44:14 -0400 Subject: Re: Problems with remote debugging From: Keith Seitz To: Mike Smith Cc: "insight@sources.redhat.com" In-Reply-To: <004601c37c32$9dae9820$4801a8c0@Arrows> References: <004601c37c32$9dae9820$4801a8c0@Arrows> Content-Type: text/plain Organization: Message-Id: <1063720002.1589.3.camel@lindt.uglyboxes.com> Mime-Version: 1.0 Date: Tue, 16 Sep 2003 13:44:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2003-q3/txt/msg00162.txt.bz2 On Tue, 2003-09-16 at 02:12, Mike Smith wrote: > I'm having problems trying to debug a remote xScale system with Insight > 5.3. I've built Insight for a xscale-arm-elf target. If I use the > version of gdb generated everything works fine and I can debug away. > However, when I run Insight things are not so happy. I set up the > target settings for Remote/TCP connection, to Attach to Target, not to > Download Program, and to 'Continue from Last Stop' as Run Method. When > I run, the connection gets set up to the gdbserver but then I get > 'Program Received signal SIGSEGV, Segmentation Fault'. On the bash > terminal on the host I get: > /bin/bash: 'my_prog': cannot execute binary file > /bin/bash: 'my_prog': Success What is "my_prog"? Is this your debug executable? If so, it appears that gdb is attempting to run it natively. What host are you on? Can you show me a gdb session (command line) of what you're doing (the part that works)? Any messages in the debug window? (Open console, type "tk ManagedWin::open DebugWin" to open.) Are you using a stub -- err, debug agent -- or gdbserver. I wasn't aware that gdbserver worked on anything other than native targets. Even if it did, it would almost certainly require a download. Keith