From: Daniel Jacobowitz <drow@false.org>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Differentiate empty vs. opaque types
Date: Mon, 12 Mar 2007 03:35:00 -0000 [thread overview]
Message-ID: <20070312033529.GA1116@caradoc.them.org> (raw)
In-Reply-To: <20070311225518.GA10039@host0.dyn.jankratochvil.net>
On Sun, Mar 11, 2007 at 11:55:19PM +0100, Jan Kratochvil wrote:
> Hi,
>
> attached testcase targets the difference of `struct x;' vs. `struct {} x;' by checking
> the DWARF flag `DW_AT_declaration':
> # DWARF3: An incomplete structure, union or class type is represented by
> # a structure, union or class entry that does not have a byte size attribute
> # and that has a DW_AT_declaration attribute.
>
> The attachment then fixes GDB to make the testcase pass.
Does this happen in HEAD? It sounds just like the problem Joel fixed
for Ada:
2007-01-05 Joel Brobecker <brobecker@adacore.com>
* dwarf2read.c (partial_die_info): Add field has_byte_size.
(add_partial_symbol): Correct identification of external
references.
(process_structure_scope): Likewise.
(read_partial_die): Handle DW_AT_byte_size attribute.
There's an Ada testcase for this, and it passes now.
> Patch goes the regression-safe way by introducing OBJF_HAVE_TYPE_STUB currently
> being set only by DWARF/DWARF2.
An objfile flag is usually not right - this is per-compilation-unit,
not per objfile.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-03-12 3:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-11 22:55 Jan Kratochvil
2007-03-12 3:35 ` Daniel Jacobowitz [this message]
2007-03-12 21:36 ` Jan Kratochvil
2007-04-10 21:19 ` Daniel Jacobowitz
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=20070312033529.GA1116@caradoc.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@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