From f09655334452fd773eacdce1a4e903f90887987e Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 20 Jul 2011 11:15:42 +0200 Subject: [PATCH] fix bug #320 (pretty gdb printer on mingw) (transplanted from d4bd8bddb5e9f968ffcbdfff5936934e3d706684 ) --- debug/gdb/printers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debug/gdb/printers.py b/debug/gdb/printers.py index 8c991e956..02823b8a2 100644 --- a/debug/gdb/printers.py +++ b/debug/gdb/printers.py @@ -56,12 +56,12 @@ class EigenMatrixPrinter: template_params = m.split(',') template_params = map(lambda x:x.replace(" ", ""), template_params) - if template_params[1] == '-0x00000000000000001': + if template_params[1] == '-0x00000000000000001' or template_params[1] == '-0x000000001': self.rows = val['m_storage']['m_rows'] else: self.rows = int(template_params[1]) - if template_params[2] == '-0x00000000000000001': + if template_params[2] == '-0x00000000000000001' or template_params[2] == '-0x000000001': self.cols = val['m_storage']['m_cols'] else: self.cols = int(template_params[2])