aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-08-17 14:29:53 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-08-17 14:31:21 +0100
commit8ea0fadc1b39bded236a7eebd1bae78f0443875a (patch)
tree3f5663c8622264ff0de1f4b25c7117d6c190f773
parent0808b0df9c4d31f4c362b9c85fb538b6aafcb517 (diff)
downloadgcc-8ea0fadc1b39bded236a7eebd1bae78f0443875a.zip
gcc-8ea0fadc1b39bded236a7eebd1bae78f0443875a.tar.gz
gcc-8ea0fadc1b39bded236a7eebd1bae78f0443875a.tar.bz2
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.
-rw-r--r--libstdc++-v3/python/libstdcxx/v6/printers.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py
index e027a69..82d262d 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"