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.
This commit is contained in:
parent
0808b0df9c
commit
8ea0fadc1b
@ -1484,18 +1484,6 @@ class StdCmpCatPrinter:
|
|||||||
name = names[int(self.val)]
|
name = names[int(self.val)]
|
||||||
return 'std::{}::{}'.format(self.typename, name)
|
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:
|
class StdErrorCodePrinter:
|
||||||
"Print a std::error_code or std::error_condition"
|
"Print a std::error_code or std::error_condition"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user