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
This commit is contained in:
parent
861d14dfa6
commit
da03858bf0
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user