diff options
author | Enze Li <enze.li@hotmail.com> | 2022-06-12 13:25:31 +0800 |
---|---|---|
committer | Enze Li <enze.li@hotmail.com> | 2022-06-18 11:23:16 +0800 |
commit | 3f52a09075e3c62f2150375bb7fca338e7db45e7 (patch) | |
tree | 634d8aeccb4849832ed116c34762167c530bd750 /libiberty/xmemdup.c | |
parent | 153b3c1117d02c2893c5be1b3af53ec7f161a211 (diff) | |
download | gdb-3f52a09075e3c62f2150375bb7fca338e7db45e7.zip gdb-3f52a09075e3c62f2150375bb7fca338e7db45e7.tar.gz gdb-3f52a09075e3c62f2150375bb7fca338e7db45e7.tar.bz2 |
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.
Diffstat (limited to 'libiberty/xmemdup.c')
0 files changed, 0 insertions, 0 deletions