binutils-gdb/gdb/python
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
..
lib/gdb gdb/python: implement the print_insn extension language hook 2022-06-15 09:44:54 +01:00
py-all-events.def
py-arch.c
py-auto-load.c
py-block.c
py-bpevent.c
py-breakpoint.c Convert location_spec_to_string to a method 2022-06-17 09:58:49 +01:00
py-cmd.c
py-connection.c
py-continueevent.c
py-disasm.c gdb/python: implement the print_insn extension language hook 2022-06-15 09:44:54 +01:00
py-event-types.def
py-event.c
py-event.h
py-events.h
py-evtregistry.c
py-evts.c
py-exitedevent.c
py-finishbreakpoint.c event_location -> location_spec 2022-06-17 09:41:24 +01:00
py-frame.c
py-framefilter.c
py-function.c
py-gdb-readline.c
py-inferior.c
py-infevents.c
py-infthread.c
py-instruction.c
py-instruction.h
py-lazy-string.c
py-linetable.c
py-membuf.c
py-micmd.c
py-newobjfileevent.c
py-objfile.c
py-param.c
py-prettyprint.c
py-progspace.c
py-record-btrace.c
py-record-btrace.h
py-record-full.c
py-record-full.h
py-record.c
py-record.h
py-ref.h
py-registers.c
py-signalevent.c
py-stopevent.c
py-stopevent.h
py-symbol.c
py-symtab.c
py-threadevent.c
py-tui.c
py-type.c
py-unwind.c
py-utils.c
py-value.c gdb/python: Export nibbles to python layer 2022-06-18 11:23:16 +08:00
py-varobj.c
py-xmethods.c
python-config.py
python-internal.h gdb/python: implement the print_insn extension language hook 2022-06-15 09:44:54 +01:00
python.c event_location -> location_spec 2022-06-17 09:41:24 +01:00
python.h