Handle typedefs in no-op pretty printers
authorTom Tromey <tromey@adacore.com>
Thu, 22 Jun 2023 15:00:13 +0000 (09:00 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 10 Jul 2023 19:17:31 +0000 (13:17 -0600)
commitc38bda5104e0011b1255752bec63cb4ffd76449d
treed520059a2476bd5089d6e1e0ffbc06feacbe0ee7
parent5b86f10883d37e46aeeafa2818e227737d068dff
Handle typedefs in no-op pretty printers

The no-ops pretty-printers that were introduced for DAP have a classic
gdb bug: they neglect to call check_typedef.  This will cause some
strange behavior; for example not showing the children of a variable
whose type is a typedef of a structure type.  This patch fixes the
oversight.
gdb/python/lib/gdb/printing.py
gdb/testsuite/gdb.dap/scopes.c