Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Richard Henderson <rth@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: DW_FORM_data8
Date: Thu, 14 Mar 2002 13:31:00 -0000	[thread overview]
Message-ID: <20020314133141.A25197@redhat.com> (raw)

The dwarf2 reader doesn't believe that DW_FORM_data8 holds
a constant value.  Fixed thus.

Ok?


r~

PS: Not sure what generated this form -- certainly gcc should be
emitting the smaller forms when the array bounds allow.  Perhaps
it's output from an older gcc...  Anyway, it shows up on an ia64
installation I have here.


	* dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
	a constant array bound.

Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.49
diff -c -p -d -r1.49 dwarf2read.c
*** dwarf2read.c	2002/02/28 11:21:16	1.49
--- dwarf2read.c	2002/03/14 21:28:59
*************** read_array_type (struct die_info *die, s
*** 2538,2544 ****
  	      else if (attr->form == DW_FORM_udata
  		       || attr->form == DW_FORM_data1
  		       || attr->form == DW_FORM_data2
! 		       || attr->form == DW_FORM_data4)
  		{
  		  low = DW_UNSND (attr);
  		}
--- 2538,2545 ----
  	      else if (attr->form == DW_FORM_udata
  		       || attr->form == DW_FORM_data1
  		       || attr->form == DW_FORM_data2
! 		       || attr->form == DW_FORM_data4
! 		       || attr->form == DW_FORM_data8)
  		{
  		  low = DW_UNSND (attr);
  		}
*************** read_array_type (struct die_info *die, s
*** 2564,2570 ****
  	      else if (attr->form == DW_FORM_udata
  		       || attr->form == DW_FORM_data1
  		       || attr->form == DW_FORM_data2
! 		       || attr->form == DW_FORM_data4)
  		{
  		  high = DW_UNSND (attr);
  		}
--- 2565,2572 ----
  	      else if (attr->form == DW_FORM_udata
  		       || attr->form == DW_FORM_data1
  		       || attr->form == DW_FORM_data2
! 		       || attr->form == DW_FORM_data4
! 		       || attr->form == DW_FORM_data8)
  		{
  		  high = DW_UNSND (attr);
  		}


             reply	other threads:[~2002-03-14 21:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-14 13:31 Richard Henderson [this message]
2002-03-14 15:29 ` DW_FORM_data8 Andrew Cagney
2002-03-14 14:49   ` DW_FORM_data8 Richard Henderson

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=20020314133141.A25197@redhat.com \
    --to=rth@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    /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