From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18466 invoked by alias); 14 May 2008 14:39:21 -0000 Received: (qmail 18444 invoked by uid 22791); 14 May 2008 14:39:19 -0000 X-Spam-Check-By: sourceware.org Received: from web62013.mail.re1.yahoo.com (HELO web62013.mail.re1.yahoo.com) (69.147.74.236) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 14 May 2008 14:38:59 +0000 Received: (qmail 90627 invoked by uid 60001); 14 May 2008 14:38:57 -0000 X-YMail-OSG: JmTD.ZIVM1lEZV7yCDTffRY.g5v2qVMbNUi6u8CEqUV5bShcGSGdB_k4mbkPmD_9ZZQGzmZlHuIPtP8DGTwxp4Fad.TgYnsxUbusdA-- Received: from [216.31.219.19] by web62013.mail.re1.yahoo.com via HTTP; Wed, 14 May 2008 07:38:57 PDT X-Mailer: YahooMailRC/975.38 YahooMailWebService/0.7.185 Date: Wed, 14 May 2008 14:39:00 -0000 From: Robert Trask Subject: Re: How to build & run ARM gdb? To: gdb@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <429032.90591.qm@web62013.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/msg00113.txt.bz2 As a follow on, I rebuilt the native gdb from 6.8 sources thus: # ./configure # make # make install It correctly interprets the arm elf file debug information, i.e. it's able to find symbols in source files via the "list" command etc. Why is the simple act of cross-targeting gdb destroying this capability? R. ----- Original Message ---- From: Robert Trask To: gdb@sources.redhat.com Sent: Tuesday, May 13, 2008 7:08:22 PM Subject: How to build & run ARM gdb? 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.