mirror of git://gcc.gnu.org/git/gcc.git
- Revert two chunks from libstdc++-v3/python/libstdcxx/v6/printers.py,
left over from testing. From-SVN: r161702
This commit is contained in:
parent
1e0859a29e
commit
d1f736a2d7
|
@ -15,7 +15,7 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
#import gdb
|
import gdb
|
||||||
import itertools
|
import itertools
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
@ -77,8 +77,7 @@ class StdListPrinter:
|
||||||
elif self.typename == "std::__debug::list":
|
elif self.typename == "std::__debug::list":
|
||||||
nodetype = gdb.lookup_type('std::__norm::_List_node<%s>' % itype).pointer()
|
nodetype = gdb.lookup_type('std::__norm::_List_node<%s>' % itype).pointer()
|
||||||
else:
|
else:
|
||||||
#raise ValueError, "Cannot cast list node for list printer."
|
raise ValueError, "Cannot cast list node for list printer."
|
||||||
raise "Cannot cast list node for list printer."
|
|
||||||
return self._iterator(nodetype, self.val['_M_impl']['_M_node'])
|
return self._iterator(nodetype, self.val['_M_impl']['_M_node'])
|
||||||
|
|
||||||
def to_string(self):
|
def to_string(self):
|
||||||
|
|
Loading…
Reference in New Issue