Files
Enze Li 3f52a09075 gdb/python: Export nibbles to python layer
This patch makes it possible to allow Value.format_string() to return
nibbles output.

When we set the parameter of nibbles to True, we can achieve the
displaying binary values in groups of every four bits.

Here's an example:
  (gdb) py print (gdb.Value (1230).format_string (format='t', nibbles=True))
  0100 1100 1110
  (gdb)

Note that the parameter nibbles is only useful if format='t' is also used.

This patch also includes update to the relevant testcase and
documentation.

Tested on x86_64 openSUSE Tumbleweed.
2022-06-18 11:23:16 +08:00
..
2022-03-29 12:46:24 -06:00
2022-04-27 22:05:03 -04:00
2022-04-28 09:31:15 -06:00
2022-03-29 12:46:24 -06:00
2022-03-29 12:46:24 -06:00
2022-03-29 12:46:24 -06:00
2022-06-17 09:41:24 +01:00