Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Julian Brown <julian@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Daniel Jacobowitz <dan@codesourcery.com>,
	  Julian Brown <julian@codesourcery.com>
Subject: [PATCH] Accept DWARF 3-format debug info
Date: Thu, 08 Jun 2006 22:48:00 -0000	[thread overview]
Message-ID: <4488A920.9090705@codesourcery.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 810 bytes --]

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.

[-- Attachment #2: arm-dwarf3.patch --]
[-- Type: text/x-patch, Size: 600 bytes --]

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));

             reply	other threads:[~2006-06-08 22:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-08 22:48 Julian Brown [this message]
2006-06-08 23:25 ` Jim Blandy
2006-06-08 23:59   ` Daniel Jacobowitz
2006-06-18  1:10     ` Mark Kettenis
2006-06-18  4:40       ` Jim Blandy
2006-06-20 19:53     ` RFC: Support DW_FORM_ref_addr as described in DWARF 3 Jim Blandy
2006-07-12 21:21       ` Daniel Jacobowitz
2006-06-09  7:29   ` [PATCH] Accept DWARF 3-format debug info Eli Zaretskii
2006-06-09 12:25     ` Daniel Jacobowitz
2006-06-09 16:42       ` Eli Zaretskii
2006-06-09 17:20         ` Daniel Jacobowitz
2006-06-09 19:46           ` Eli Zaretskii
2006-06-09 12:39     ` Julian Brown
2006-06-09 16:39       ` Eli Zaretskii
2006-06-09 23:18 David Anderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4488A920.9090705@codesourcery.com \
    --to=julian@codesourcery.com \
    --cc=dan@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox