This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/2] two ptype/o changes
- From: Tom Tromey <tromey at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 29 Apr 2019 12:31:03 -0600
- Subject: [PATCH 0/2] two ptype/o changes
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