aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2014-07-23 11:45:17 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2014-07-23 11:45:17 +0100
commitda03858bf025666c6fad437b833be11ca9badd54 (patch)
tree7cee398bdb47e96d46bac4b96ce0e8bf7890baed
parent861d14dfa6a4e4cc7a5acf239ab7b5daf31efe2b (diff)
downloadgcc-da03858bf025666c6fad437b833be11ca9badd54.zip
gcc-da03858bf025666c6fad437b833be11ca9badd54.tar.gz
gcc-da03858bf025666c6fad437b833be11ca9badd54.tar.bz2
printers.py (StdExpAnyPrinter): Convert type to string instead of using gdb.Type.name attribute.
* python/libstdcxx/v6/printers.py (StdExpAnyPrinter): Convert type to string instead of using gdb.Type.name attribute. From-SVN: r212929
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/python/libstdcxx/v6/printers.py2
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index ec816ba..219f794 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py
index 625396b..15d7a88 100644
--- a/libstdc++-v3/python/libstdcxx/v6/printers.py
+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
@@ -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