aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-07-15 09:38:32 -0600
committerTom Tromey <tromey@adacore.com>2022-07-15 09:42:39 -0600
commit3028a2dbbffb2e15cc2364d0c962951f6f2230f2 (patch)
treec862364ac2803f92e29542b656656f2365700bf7 /gdb/python
parentebbac1687d0075c8666b25438fc4f35d3dd1daaa (diff)
downloadgdb-3028a2dbbffb2e15cc2364d0c962951f6f2230f2.zip
gdb-3028a2dbbffb2e15cc2364d0c962951f6f2230f2.tar.gz
gdb-3028a2dbbffb2e15cc2364d0c962951f6f2230f2.tar.bz2
Add 'nibbles' to gdb.print_options
When I rebased and updated the print_options patch, I forgot to update print_options to add the new 'nibbles' feature to the result. This patch fixes the oversight. I'm checking this in.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-prettyprint.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/python/py-prettyprint.c b/gdb/python/py-prettyprint.c
index 7b2aa58..1f8dd26 100644
--- a/gdb/python/py-prettyprint.c
+++ b/gdb/python/py-prettyprint.c
@@ -753,6 +753,8 @@ gdbpy_print_options (PyObject *unused1, PyObject *unused2)
opts.static_field_print) < 0
|| set_boolean (result.get (), "deref_refs",
opts.deref_ref) < 0
+ || set_boolean (result.get (), "nibbles",
+ opts.nibblesprint) < 0
|| set_boolean (result.get (), "summary",
opts.summary) < 0
|| set_unsigned (result.get (), "max_elements",