mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-16 13:01:21 +08:00
re PR libstdc++/61835 (Invalid comment on pretty printers breaks gdb)
PR libstdc++/61835 * python/libstdcxx/v6/printers.py (TemplateTypePrinter): Use raw string. (SingleObjContainerPrinter): Check if type printers are in use. From-SVN: r212822
This commit is contained in:
parent
4ac2a3f0f7
commit
faf7f829a8
@ -1,3 +1,10 @@
|
||||
2014-07-18 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
PR libstdc++/61835
|
||||
* python/libstdcxx/v6/printers.py (TemplateTypePrinter): Use
|
||||
raw string.
|
||||
(SingleObjContainerPrinter): Check if type printers are in use.
|
||||
|
||||
2014-07-16 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* include/ext/random: Minor formatting and cosmetic tweaks.
|
||||
|
@ -845,6 +845,9 @@ class SingleObjContainerPrinter(object):
|
||||
|
||||
def _recognize(self, type):
|
||||
"""Return TYPE as a string after applying type printers"""
|
||||
global _use_type_printing
|
||||
if not _use_type_printing:
|
||||
return str(type)
|
||||
return gdb.types.apply_type_recognizers(gdb.types.get_type_recognizers(),
|
||||
type) or str(type)
|
||||
|
||||
@ -1043,7 +1046,7 @@ class Printer(object):
|
||||
libstdcxx_printer = None
|
||||
|
||||
class TemplateTypePrinter(object):
|
||||
"""A type printer for class templates.
|
||||
r"""A type printer for class templates.
|
||||
|
||||
Recognizes type names that match a regular expression.
|
||||
Replaces them with a formatted string which can use replacement field
|
||||
|
Loading…
x
Reference in New Issue
Block a user