From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13869 invoked by alias); 8 Jun 2006 22:48:17 -0000 Received: (qmail 13858 invoked by uid 22791); 8 Jun 2006 22:48:16 -0000 X-Spam-Check-By: sourceware.org Received: from intranet.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.6) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 08 Jun 2006 22:48:15 +0000 Received: (qmail 28769 invoked from network); 8 Jun 2006 22:48:13 -0000 Received: from unknown (HELO ?10.1.1.7?) (julian@127.0.0.2) by mail.codesourcery.com with ESMTPA; 8 Jun 2006 22:48:13 -0000 Message-ID: <4488A920.9090705@codesourcery.com> Date: Thu, 08 Jun 2006 22:48:00 -0000 From: Julian Brown User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) MIME-Version: 1.0 To: gdb-patches@sourceware.org CC: Daniel Jacobowitz , Julian Brown Subject: [PATCH] Accept DWARF 3-format debug info Content-Type: multipart/mixed; boundary="------------070300000002030003070501" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00082.txt.bz2 This is a multi-part message in MIME format. --------------070300000002030003070501 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 810 Hi, This is part of a series of patches from a CodeSourcery branch which enable the output of ARM's RVCT 2.2 compiler to be debugged with gdb. ARMCC's support for DWARF 3 is superior to its DWARF 2 support, and GDB apparently supports much of DWARF 3 already. This patch allows DWARF 3 format debug info to be accepted by gdb. (Some things are notably missing from the DWARF 3 support -- one thing I've noticed so far is lack of support for DW_TAG_partial_unit, but RVDS 2.2 doesn't seem to need that. A couple of other minor things will be addressed in followup patches.) Tested with cross to arm-none-eabi, and natively on x86_64-unknown-linux-gnu. OK to apply on mainline? Cheers, Julian ChangeLog (Daniel Jacobowitz): * gdb/dwarf2read.c (partial_read_comp_unit_head): Accept version 3. --------------070300000002030003070501 Content-Type: text/x-patch; name="arm-dwarf3.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="arm-dwarf3.patch" Content-length: 600 Index: src/gdb/dwarf2read.c =================================================================== --- src.orig/gdb/dwarf2read.c 2005-03-01 12:09:19.000000000 -0800 +++ src/gdb/dwarf2read.c 2005-03-07 06:00:16.000000000 -0800 @@ -1312,7 +1312,7 @@ partial_read_comp_unit_head (struct comp info_ptr = read_comp_unit_head (header, info_ptr, abfd); - if (header->version != 2) + if (header->version != 2 && header->version != 3) error (_("Dwarf Error: wrong version in compilation unit header " "(is %d, should be %d) [in module %s]"), header->version, 2, bfd_get_filename (abfd)); --------------070300000002030003070501--