[PATCH 0/2] two ptype/o changes

Tom Tromey tromey@adacore.com
Mon Apr 29 18:31:00 GMT 2019


This series changes ptype/o in a couple of ways.

Last week I spent quite some time puzzling over the meaning of the
'offset' for a bitfield in ptype/o output.  After talking with Sergio
on irc, I ended up concluding that gdb should instead print the bit
offset, not the number of bits remaining in the field's allocation.

That is patch #2.  Then, I noticed that the tests did not fail,
despite the output changing.  It turns out the tests weren't working
correctly, so I wrote patch #1.

Tested on x86-64 Fedora 29.  Let me know what you think.

Patch #2 includes a doc change.

Tom




More information about the Gdb-patches mailing list