Add two new pretty-printer methods
authorTom Tromey <tromey@adacore.com>
Fri, 8 Sep 2023 19:18:17 +0000 (13:18 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 26 Sep 2023 15:29:14 +0000 (09:29 -0600)
commitf35baff348a2260616dc04721c31726d88e24851
tree3d399282e26c5c1ef888533da6fd13bd008f58be
parentfb282576998ca7ce70526dea42d41a7f418879c9
Add two new pretty-printer methods

This adds two new pretty-printer methods, to support random access to
children.  The methods are implemented for the no-op array printer,
and DAP is updated to use this.

Reviewed-By: Eli Zaretskii <eliz@gnu.org>
gdb/doc/python.texi
gdb/python/lib/gdb/dap/varref.py
gdb/python/lib/gdb/printing.py