From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21187 invoked by alias); 14 May 2008 02:08:47 -0000 Received: (qmail 21152 invoked by uid 22791); 14 May 2008 02:08:44 -0000 X-Spam-Check-By: sourceware.org Received: from web62005.mail.re1.yahoo.com (HELO web62005.mail.re1.yahoo.com) (69.147.74.228) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 14 May 2008 02:08:25 +0000 Received: (qmail 49360 invoked by uid 60001); 14 May 2008 02:08:23 -0000 X-YMail-OSG: uE1fIXcVM1nv3gl0zmFWE8U6QIW_LXxVF3of5GV7Yw6No_KEdjDx7QODtnqL6bckfwVsj0j1jPlejFjJ9hK1yXjyABpJLKao5vHe1Q-- Received: from [24.6.195.80] by web62005.mail.re1.yahoo.com via HTTP; Tue, 13 May 2008 19:08:23 PDT X-Mailer: YahooMailRC/975.23 YahooMailWebService/0.7.185 Date: Wed, 14 May 2008 02:08:00 -0000 From: Robert Trask Subject: How to build & run ARM gdb? To: gdb@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <126693.48905.qm@web62005.mail.re1.yahoo.com> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-05/txt/msg00103.txt.bz2 Hello, I am doing remote ARM system development cross hosted on a Redhat FC4 machine. For building gdb I do the following: # ./configure --target=arm-none-eabi # make The resulting gdb seems to work ok vis-a-vis connecting to the target via the remote protocol but it has problems interpreting the debug info in the executable thus: (gdb) list No line number known for . Apparently this gdb can't understand the elf file? But, the gdb that came with the RH distribution, ( GNU gdb Red Hat Linux (6.3.0.0-1.21rh) DOES understand the elf file and correctly finds the in the appropriate source file. Of course, since it was configured for "i386-redhat-linux-gnu" it has no hope of properly interacting with the remote ARM target. I have tried all manner of different configurations (all accepted by config.sub). I get the same result. What is happening here and how do I fix it? I have tried this with gdb 6.7.1 and 6.8. I am using Redhat Fedore Core 4. R.