From: Jim Blandy <jimb@redhat.com>
To: Andrew Cagney <cagney@gnu.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA: handle zero-length types in value_from_register
Date: Thu, 19 Feb 2004 22:53:00 -0000 [thread overview]
Message-ID: <vt2k72ipu6o.fsf@zenia.home> (raw)
In-Reply-To: <40337EB3.5000306@gnu.org>
Andrew Cagney <cagney@gnu.org> writes:
> > The patches I posted here:
> > http://sources.redhat.com/ml/gdb-patches/2004-01/msg00717.html
> > haven't gotten any more comments since my last revision, so I've
> > committed them.
>
> Jim, did you read this thread?
> http://sources.redhat.com/ml/gdb-patches/2004-02/msg00075.html
> Andrew
No, I hadn't --- thanks. I've committed the following.
2004-02-19 Jim Blandy <jimb@redhat.com>
* findvar.c (value_from_register): Doc fix.
*** findvar.c.~1.73.~ 2004-02-17 23:24:28.000000000 -0500
--- findvar.c 2004-02-19 17:39:16.000000000 -0500
***************
*** 627,640 ****
error.
Zero-length types can legitimately arise from declarations
! like 'struct {}'. GDB may also create them when it finds
! bogus debugging information; for example, in GCC 2.95.4 and
! binutils 2.11.93.0.2, the STABS BINCL->EXCL compression
! process can create bad type numbers. GDB reads these as
! TYPE_CODE_UNDEF types, with zero length. (That bug is
! actually the only known way to get a zero-length value
! allocated to a register --- which is what it takes to make it
! here.)
We'll just attribute the value to the original register. */
VALUE_LVAL (v) = lval_register;
--- 627,640 ----
error.
Zero-length types can legitimately arise from declarations
! like 'struct {}' (a GCC extension, not valid ISO C). GDB may
! also create them when it finds bogus debugging information;
! for example, in GCC 2.95.4 and binutils 2.11.93.0.2, the
! STABS BINCL->EXCL compression process can create bad type
! numbers. GDB reads these as TYPE_CODE_UNDEF types, with zero
! length. (That bug is actually the only known way to get a
! zero-length value allocated to a register --- which is what
! it takes to make it here.)
We'll just attribute the value to the original register. */
VALUE_LVAL (v) = lval_register;
next prev parent reply other threads:[~2004-02-19 22:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-18 3:14 Jim Blandy
2004-02-18 15:03 ` Andrew Cagney
2004-02-19 22:53 ` Jim Blandy [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-01-27 5:36 Jim Blandy
2004-01-27 14:05 ` Andrew Cagney
2004-01-27 15:38 ` Jim Blandy
2004-01-27 16:43 ` Andrew Cagney
2004-01-28 5:49 ` Jim Blandy
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=vt2k72ipu6o.fsf@zenia.home \
--to=jimb@redhat.com \
--cc=cagney@gnu.org \
--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