[PATCH] Handle bitfields inside inner structs for internalvars

Jan Kratochvil jan.kratochvil@redhat.com
Mon Feb 11 18:11:00 GMT 2013


On Mon, 11 Feb 2013 19:05:58 +0100, Sergio Durigan Junior wrote:
> On Saturday, February 09 2013, Jan Kratochvil wrote:
> > 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...)
> 
> According to comments in gdb/value.{c,h}, value_parent is only used iff
> the we are dealing with bitfields, so I guess this case is covered
> (otherwise it is a bug).  Was it a rhetorical question?

I expected a future reader may have such a question.

I just believed the code was worth some comment, thanks for it.  If it were
absolutely clear the bug would not happen there in the first place.


Thanks,
Jan



More information about the Gdb-patches mailing list