[PATCH 3/6] Use std::vector<bool> for agent_expr::reg_mask
Tom Tromey
tom@tromey.com
Tue Jun 20 17:04:45 GMT 2023
>>>>> "John" == John Baldwin <jhb@FreeBSD.org> writes:
John> Re-synthesizing the packed hex output may not be useful, but perhaps you could
John> print it as binary instead by only printing 0 or 1 for each bit without spaces
John> (or maybe only spaces between each 8 bits?). Something like:
John> for (i = 0; i < x->reg_mask.size (); ++i)
John> {
John> if (i % 8 == 0)
John> gdb_printf(f, _(" "));
John> gdb_printf (f, _("%u"), x->reg_mask[i]);
John> }
Makes sense, I used this approach.
Tom
More information about the Gdb-patches
mailing list