]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
printers.py (StdExpAnyPrinter): Convert type to string instead of using gdb.Type...
authorJonathan Wakely <jwakely@redhat.com>
Wed, 23 Jul 2014 10:45:17 +0000 (11:45 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 23 Jul 2014 10:45:17 +0000 (11:45 +0100)
* python/libstdcxx/v6/printers.py (StdExpAnyPrinter): Convert type
to string instead of using gdb.Type.name attribute.

From-SVN: r212929

libstdc++-v3/ChangeLog
libstdc++-v3/python/libstdcxx/v6/printers.py

index ec816ba085ccc2ccf841447e1e2ca258827b9862..219f79448be00bfd781425905efce5c41ba5b425 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-23  Jonathan Wakely  <jwakely@redhat.com>
+
+       * python/libstdcxx/v6/printers.py (StdExpAnyPrinter): Convert type
+       to string instead of using gdb.Type.name attribute.
+
 2014-07-19  Jonathan Wakely  <jwakely@redhat.com>
 
        * acinclude.m4 (GLIBCXX_CHECK_SDT_H): Replace AC_MSG_RESULT with
index 625396b4459fbb8a46d74c0d1872117076aeb391..15d7a88dbf81b360ef104acddcfaa55088caa540 100644 (file)
@@ -899,7 +899,7 @@ class StdExpAnyPrinter(SingleObjContainerPrinter):
                 raise ValueError("Unknown manager function in std::experimental::any")
 
             # FIXME need to expand 'std::string' so that gdb.lookup_type works
-            mgrname = re.sub("std::string(?!\w)", gdb.lookup_type('std::string').strip_typedefs().name, m.group(1))
+            mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
             mgrtype = gdb.lookup_type(mgrname)
             self.contained_type = mgrtype.template_argument(0)
             valptr = None