public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2960] libstdc++: Remove pretty printer committed by mistake
@ 2021-08-17 13:33 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2021-08-17 13:33 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:8ea0fadc1b39bded236a7eebd1bae78f0443875a

commit r12-2960-g8ea0fadc1b39bded236a7eebd1bae78f0443875a
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Aug 17 14:29:53 2021 +0100

    libstdc++: Remove pretty printer committed by mistake
    
    The std::error_category printer wasn't meant to be part of the commit
    adding std::error_code and std::error_condition printers.
    
    Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
    
    libstdc++-v3/ChangeLog:
    
            * python/libstdcxx/v6/printers.py (StdErrorCatPrinter): Remove.

Diff:
---
 libstdc++-v3/python/libstdcxx/v6/printers.py | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py
index e027a69ded9..82d262de8c7 100644
--- a/libstdc++-v3/python/libstdcxx/v6/printers.py
+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
@@ -1484,18 +1484,6 @@ class StdCmpCatPrinter:
             name = names[int(self.val)]
         return 'std::{}::{}'.format(self.typename, name)
 
-class StdErrorCatPrinter:
-    "Print an object derived from std::error_category"
-
-    def __init__ (self, typename, val):
-        self.val = val
-        self.typename = typename
-
-    def to_string (self):
-        gdb.set_convenience_variable('__cat', self.val)
-        name = gdb.parse_and_eval('$__cat->name()').string()
-        return 'error category = "{}"'.format(name)
-
 class StdErrorCodePrinter:
     "Print a std::error_code or std::error_condition"


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-17 13:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-17 13:33 [gcc r12-2960] libstdc++: Remove pretty printer committed by mistake Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).