This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
build/2458: GDB configured for cross target can not read debug info in elf file
- From: rtrask at broadcom dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 14 May 2008 16:15:47 -0000
- Subject: build/2458: GDB configured for cross target can not read debug info in elf file
- Reply-to: rtrask at broadcom dot com
>Number: 2458
>Category: build
>Synopsis: GDB configured for cross target can not read debug info in elf file
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 14 16:18:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: rtrask@broadcom.com
>Release: GNU gdb 6.8
>Organization:
>Environment:
Linux lab-sv1-062 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686 i686 i386 GNU/Linux
>Description:
GDB configured to run on Linux with ARM target thus:
# ./configure --host=i686-pc-linux-gnu --target=arm-none-eabi
An elf executable built with cross gcc for ARM, -gstabs flag enabled.
(gdb) list <symbol>
No line number known for <symbol>.
This gdb seems to work correctly vis-a-vis the remote debugging protocol but it fails to interpret the debug info in the elf file.
Using the same sources one can build a gdb thus:
# ./configure
The resulting GDB correctly interprets the same elf file and will produce the desired result for a "list" command but is,of course, not usable as a cross debugger for the arm target.
>How-To-Repeat:
Build gdb as described above ...
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: