aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-09-26 13:38:42 -0600
committerTom Tromey <tromey@adacore.com>2023-09-28 14:55:23 -0600
commit64f121030135b421d6ec16bf619cb14c50443aff (patch)
tree3f1f34fb9f0fc657676e2938babf04c5267f6006 /gcc
parent98db58eb0b8e78708af0770bac1053fa4fcbc5f4 (diff)
downloadgcc-64f121030135b421d6ec16bf619cb14c50443aff.zip
gcc-64f121030135b421d6ec16bf619cb14c50443aff.tar.gz
gcc-64f121030135b421d6ec16bf619cb14c50443aff.tar.bz2
libstdc++: Use gdb.ValuePrinter base class
GDB 14 will add a new ValuePrinter tag class that will be used to signal that pretty-printers will agree to the "extension protocol" -- essentially that they will follow some simple namespace rules, so that GDB can add new methods over time. A couple new methods have already been added to GDB, to support DAP. While I haven't implemented these for any libstdc++ printers yet, this patch makes the basic conversion: printers derive from gdb.ValuePrinter if it is available, and all "non-standard" (that is, not specified by GDB) members of the various value-printing classes are renamed to have a leading underscore. libstdc++-v3/ChangeLog: * python/libstdcxx/v6/printers.py: Use gdb.ValuePrinter everywhere. Rename members to start with "_".
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions