From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id EA6BA396ECBA; Tue, 17 Aug 2021 13:33:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EA6BA396ECBA MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r12-2960] libstdc++: Remove pretty printer committed by mistake X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 0808b0df9c4d31f4c362b9c85fb538b6aafcb517 X-Git-Newrev: 8ea0fadc1b39bded236a7eebd1bae78f0443875a Message-Id: <20210817133335.EA6BA396ECBA@sourceware.org> Date: Tue, 17 Aug 2021 13:33:35 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2021 13:33:36 -0000 https://gcc.gnu.org/g:8ea0fadc1b39bded236a7eebd1bae78f0443875a commit r12-2960-g8ea0fadc1b39bded236a7eebd1bae78f0443875a Author: Jonathan Wakely 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 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"