From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30957 invoked by alias); 14 May 2008 20:28:02 -0000 Received: (qmail 30940 invoked by uid 71); 14 May 2008 20:28:01 -0000 Date: Wed, 14 May 2008 20:28:00 -0000 Message-ID: <20080514202801.30939.qmail@sourceware.org> To: nobody@sources.redhat.com Cc: gdb-prs@sources.redhat.com, From: "Robert Trask" Subject: RE: build/2458: GDB configured for cross target can not read debug info in elf file Reply-To: "Robert Trask" Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2008-q2/txt/msg00045.txt.bz2 The following reply was made to PR build/2458; it has been noted by GNATS. From: "Robert Trask" To: "Daniel Jacobowitz" , gdb-gnats@sourceware.org Cc: Subject: RE: build/2458: GDB configured for cross target can not read debug info in elf file Date: Wed, 14 May 2008 13:26:43 -0700 Thanks for responding. It looks like we should just use the "-g" and be happy about it. But it's mysterious that the same gdb sources config'd for (e.g.) native use CAN read the stabs info and the gdb sources config'd for cross-ARM can't. Reading symbol names & locations, debug info, etc from an elf file [should be] a common utility across all targets. Is it not? R. -----Original Message----- From: Daniel Jacobowitz [mailto:drow@false.org]=20 Sent: Wednesday, May 14, 2008 12:27 PM To: Robert Trask; gdb-gnats@sourceware.org Subject: Re: build/2458: GDB configured for cross target can not read debug info in elf file On Wed, May 14, 2008 at 07:18:02PM -0000, Robert Trask wrote: > Result: > The cross gdb CAN read debug info from the elf file. Now it can=20 > properly handle (e.g.) "list ". > What's different between output of "-gstabs" and "-g" to cause this? -g uses DWARF-2, a more modern debug info format. -- Daniel Jacobowitz CodeSourcery