From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Sergio Durigan Junior <sergiodj@redhat.com>
Cc: GDB Patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Handle bitfields inside inner structs for internalvars
Date: Sat, 09 Feb 2013 07:39:00 -0000 [thread overview]
Message-ID: <20130209073923.GA13418@host2.jankratochvil.net> (raw)
In-Reply-To: <m31ucqjdgv.fsf@redhat.com>
On Sat, 09 Feb 2013 05:52:32 +0100, Sergio Durigan Junior wrote:
> On Friday, February 08 2013, Jan Kratochvil wrote:
> >> + if (value_bitsize (toval))
> >> + offset += value_offset (value_parent (toval));
> >
> > value_address rather tests for value_parent existence; although value_bitsize
> > is right as value_parent is currently not used elsewhere.
> >
> > if (value_parent (toval))
>
> Do you think it's clearer to use `value_parent' here instead of
> `value_bitsize'?
Choose any way but therefore put there a comment that value_parent is non-NULL
iff value_bitsize is non-zero.
Otherwise I was curious - what to do if value_parent exists but TOVAL is not
a bitfield? Isn't it a forgotten case? (It is not but...)
Thanks,
Jan
next prev parent reply other threads:[~2013-02-09 7:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-06 20:39 Sergio Durigan Junior
2013-02-08 20:47 ` Jan Kratochvil
2013-02-09 4:52 ` Sergio Durigan Junior
2013-02-09 7:39 ` Jan Kratochvil [this message]
2013-02-11 18:06 ` Sergio Durigan Junior
2013-02-11 18:11 ` Jan Kratochvil
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=20130209073923.GA13418@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=sergiodj@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