>>>>> "Phil" == Phil Muldoon <[email protected]> writes:
Phil> 2013-07-03 Phil Muldoon <[email protected]> Phil> PR gcc/53477 Phil> http://sourceware.org/bugzilla/show_bug.cgi?id=15195 Phil> * python/libstdcxx/v6/printers.py (Printer.__call__): If a value Phil> is a reference, fetch referenced value. Phil> (RxPrinter.invoke): Ditto. Phil> * testsuite/libstdc++-prettyprinters/cxx11.cc (main): Add -O0 Phil> flag. Add referenced value tests. Thanks Phil. Remember to CC <[email protected]> on these notes. Phil> + if value.type.code == gdb.TYPE_CODE_REF: Phil> + value = value.referenced_value() Phil> + I think this code should test for the existence of referenced_value using hasattr. Maybe somebody is still on gdb 7.4. Tom
