Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Elena Zannoni <ezannoni@redhat.com>
To: Joel Brobecker <brobecker@gnat.com>
Cc: Elena Zannoni <ezannoni@redhat.com>,
	schwab@suse.de, gdb-patches@sources.redhat.com
Subject: Re: [PATCH] Handle DW_TAG_subrange_type
Date: Thu, 15 Jan 2004 17:11:00 -0000	[thread overview]
Message-ID: <16390.51562.449957.635960@localhost.redhat.com> (raw)
In-Reply-To: <20040114172803.GO4978@gnat.com>

Joel Brobecker writes:
 > Hello Helena,
 > 
 > > I agree that the subrange type should be handled in more places, so ok
 > > with Joel's calls for that.
 > > 
 > > Almost identical code is in read_array_type. Would it be possible to
 > > unify that as well into a single function read_subrange_type?  I.e. do
 > > you think that that "else if (attr->form == DW_FORM_block1)" clause
 > > will interfere with the ADA case? If not and we can unify them, then,
 > > I'd prefer the version that Andreas has, since it handles the default
 > > high and low, not as -1, but the same as the original code.
 > 
 > Here is a revised patch, which I hope addresses all your comments.
 > Tested on x86-linux, using gcc HEAD. No regression.
 > 
 > I should also mention that I am about to send a patch to gcc-patches,
 > which slightly modifies the dwarf-2 output, and will likely cause GCC
 > to generate more of these subrange_type DIEs. It is more a cleanup
 > patch than anything else, but I did verify that GDB together with the
 > attached patch handle the new GCC without trouble.
 > 
 > 2004-01-14  J. Brobecker  <brobecker@gnat.com>
 > 
 >         * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
 >         Delete, no longer used.
 >         (read_subrange_type): New function, mostly extracted from
 >         read_array_type().
 >         (read_array_type): Replace extracted code by call to
 >         read_subrange_type().
 >         (dwarf2_get_attr_constant_value): New function.
 >         (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
 >         (add_partial_symbol): Likewise.
 >         (process_die): Likewise.
 >         (new_symbol): Likewise.
 >         (read_type_die): Likewise.
 > 
 > OK to apply?


sure

elena


  reply	other threads:[~2004-01-15 17:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-08 23:33 Elena Zannoni
2004-01-14 17:28 ` Joel Brobecker
2004-01-15 17:11   ` Elena Zannoni [this message]
2004-01-17  5:37     ` Joel Brobecker
  -- strict thread matches above, loose matches on Subject: below --
2003-11-22 20:08 Andreas Schwab
2003-11-24  9:51 ` Joel Brobecker
2003-11-24 12:16   ` Andreas Schwab
2003-12-04 16:51 ` Elena Zannoni
2003-12-04 17:29   ` Andreas Schwab
2003-12-04 17:49   ` Joel Brobecker
2003-12-04 18:16     ` Elena Zannoni

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=16390.51562.449957.635960@localhost.redhat.com \
    --to=ezannoni@redhat.com \
    --cc=brobecker@gnat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=schwab@suse.de \
    /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