summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/python/libstdcxx/v6/printers.py
Commit message (Collapse)AuthorAgeFilesLines
* 2014-08-04 Samuel Bronson <naesten@gmail.com>redi2014-08-041-38/+82
| | | | | | | | | | | | | | | | | | | | | | Backport r212453 from trunk 2014-07-11 Samuel Bronson <naesten@gmail.com> Matthias Klose <doko@ubuntu.com> PR libstdc++/58962 * python/libstdcxx/v6/printers.py: Port to Python 2+3 (imap): New compat function. (izip): Likewise. (Iterator): New mixin to allow writing iterators in Python 3 style regardless of which version we're running on. [Python3] (long) New compat alias for "int". * testsuite/lib/gdb-test.exp: Port to Python 2+3 (print syntax) Backport r210625 from trunk 2014-05-19 Jonathan Wakely <jwakely@redhat.com> * python/libstdcxx/v6/printers.py: Use Python3 raise syntax. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@213604 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/59476redi2014-05-021-3/+22
| | | | | | | | | | | * python/libstdcxx/v6/printers.py (get_value_from_Rb_tree_node): New function to handle both C++03 and C++11 _Rb_tree_node implementations. (StdRbtreeIteratorPrinter, StdMapPrinter, StdSetPrinter): Use it. * testsuite/libstdc++-prettyprinters/simple.cc: Update comment to refer to... * testsuite/libstdc++-prettyprinters/simple11.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@210007 138bc75d-0d04-0410-961f-82ee72b054a4
* Update copyright years in libstdc++-v3/rsandifo2014-01-021-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206301 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-08-20 Phil Muldoon <pmuldoon@redhat.com>pmuldoon2013-08-201-0/+10
| | | | | | | | | | | | | | | PR libstdc++/53477 http://sourceware.org/bugzilla/show_bug.cgi?id=15195 * python/libstdcxx/v6/printers.py (Printer.__call__): If a value is a reference, fetch referenced value. (RxPrinter.invoke): Ditto. * testsuite/libstdc++-prettyprinters/cxx11.cc (main): Add -O0 flag. Add referenced value tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201888 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-08-08 François Dumont <fdumont@gcc.gnu.org>fdumont2013-08-081-1/+1
| | | | | | | | | | | | | | | | | | | * include/bits/hashtable_policy.h (_Hashtable_alloc): New. (_ReuseOrAllocNode, _AllocNode): Adapt to use latter rather than _Hashtable. (_Before_begin<>): Remove. * include/bits/hashtable.h (_Hashtable): Inherit from _Hashtable_alloc and adapt. Restore _M_before_begin field. * src/c++11/hashtable_c++0x.cc: Add ext/alloc_traits.h include. * python/libstdcxx/v6/printers.py (StdHashtableIterator): Adapt access to hashtable before begin. * testsuite/23_containers/unordered_set/ not_default_constructible_hash_neg.cc: Adapt dg-error line number. * testsuite/23_containers/unordered_set/instantiation_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201592 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-08-06 Paolo Carlini <paolo.carlini@oracle.com>paolo2013-08-061-1/+1
| | | | | | | Revert the last commit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201525 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-08-06 François Dumont <fdumont@gcc.gnu.org>fdumont2013-08-061-1/+1
| | | | | | | | | | | | | | | | | | * include/bits/hashtable_policy.h (_Hashtable_alloc): New. (_ReuseOrAllocNode, _AllocNode): Adapt to use latter rather than _Hashtable. (_Before_begin<>): Remove. * include/bits/hashtable.h (_Hashtable): Inherit from _Hashtable_alloc and adapt. Restore _M_before_begin field. * python/libstdcxx/v6/printers.py (StdHashtableIterator): Adapt access to hashtable before begin. * testsuite/23_containers/unordered_set/ not_default_constructible_hash_neg.cc: Adapt dg-error line number. * testsuite/23_containers/unordered_set/instantiation_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201522 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-05-15 François Dumont <fdumont@gcc.gnu.org>fdumont2013-05-151-5/+44
| | | | | | | | | | * python/libstdcxx/v6/printers.py (Tr1HashtableIterator): Fix rendering of std::tr1 unordered containers iterator. (StdHashtableIterator): New, render std unordered containers iterator. * testsuite/libstdc++-prettyprinters/tr1.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198947 138bc75d-0d04-0410-961f-82ee72b054a4
* Update copyright in libstdc++-v3.rsandifo2013-02-031-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195701 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/libstdc++-prettyprinters/whatis.cc: New file.tromey2012-11-161-0/+102
| | | | | | | | | | | | | * testsuite/lib/gdb-test.exp (whatis-test): New proc. (gdb-test): Handle 'whatis' tests. (gdb_batch_check): New proc. (gdb_version_check): Rewrite to use gdb_batch_check. * python/libstdcxx/v6/printers.py: Import gdb.types. (FilteringTypePrinter): New class. (add_one_type_printer, register_type_printers): New functions. (register_libstdcxx_printers): Call register_type_printers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193573 138bc75d-0d04-0410-961f-82ee72b054a4
* * python/libstdcxx/v6/printers.py (Tr1HashtableIterator): Update.redi2012-11-021-2/+4
| | | | | | (StdForwardListPrinter): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193087 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/55041redi2012-10-281-4/+14
| | | | | | | | * python/libstdcxx/v6/printers.py (Tr1UnorderedMapPrinter): Update to handle hashtable as member of unordered_map not base class. (Tr1UnorderedSetPrinter): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192894 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/libstdc++-prettyprinters/cxx11.cc (struct datum):tromey2012-08-151-1/+3
| | | | | | | | | | | New. (global): New global. (main): Add test for unique_ptr. * python/libstdcxx/v6/printers.py (UniquePointerPrinter.to_string): Extract the pointer and also print its type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190417 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-04-12 Benjamin Kosnik <bkoz@redhat.com>bkoz2012-04-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/unordered_map.h (__unordered_map): Remove. (__unordered_multimap): Remove. Add aliases for __umap_traits, __umap_hashtable, __ummap_traits, __ummap_hashtable. (unordered_map): Derive from __umap_hashtable. (unordered_multimap): Derive from __ummap_hashtable. * include/bits/unordered_set.h (__unordered_set): Remove. (__unordered_multiset): Remove. Add aliases for __uset_traits, __uset_hashtable, __umset_traits, __umset_hashtable. (unordered_set): Derive from __uset_hashtable. (unordered_multiset): Derive from __umset_hashtable. * include/bits/hashtable.h (__cache_default): New, consolidated cache defaults for _Hashtable. Adjust comments for doxygen. (_Hashtable): Consolidate bool template parameters into new, _Traits class. Inherited base classes synthesize _Hashtable in CRTP via original 10 parameters. Prefer using declarations to typedefs, add __node_type, __bucket_type, etc. Push many nested types down hierarchy to _Hashtable_base. Add constructors necessary for top-level unordered_containers. Consolidate insert member functions and logic in new base class, __detail::_Insert and __detail::_Insert_base. (_Hashtable::operator=(initializer_list)): Add. * include/bits/hashtable_policy.h: Convert to doxygen markup. (_Hashtable_traits) New. Consolidate bool template parameters here. (_Insert, _Insert_base): New, consolidated insert member functions. (_Map_base, _Equality, _Rehash_base): Adjust template parameters, use base types. (_Hashtable_base): Move type declarations useful to other base classes into this class. * python/libstdcxx/v6/printers.py (Tr1HashtableIterator): Update. * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust traits, line numbers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186403 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/libstdc++-prettyprinters/cxx11.cc (main): Add newtromey2012-02-141-26/+6
| | | | | | | | | | tests. * python/libstdcxx/v6/printers.py (Tr1HashtableIterator.__init__): Rewrite. (Tr1HashtableIterator.update): Remove. (Tr1HashtableIterator.next): Rewrite. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184233 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/51956redi2012-02-051-11/+16
| | | | | | | | * python/libstdcxx/v6/printers.py (StdPointerPrinter): Rename to... (SharedPointerPrinter): This. Also show weak count. * testsuite/libstdc++-prettyprinters/shared_ptr.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183914 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/51649:tromey2012-01-301-88/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/libstdc++-prettyprinters/debug.cc: New file. * testsuite/lib/gdb-test.exp (regexp-test): New proc. (note-test): Update. (gdb-test): Handle regexp tests. Add some logging. * testsuite/libstdc++-prettyprinters/simple.cc: Compile with -O0. (placeholder, use): Remove. (main): Add tests for deque, list, map, and set iterators. Add tests for slist and slist iterator. * testsuite/libstdc++-prettyprinters/48362.cc (main): Handle __7 namespace. * python/libstdcxx/v6/printers.py (StdListPrinter.children): Use the type's _Node typedef. (StdListIteratorPrinter.to_string): Change how node type is computed. (StdSlistPrinter.children): Use the type's _Node typedef. (StdSlistIteratorPrinter.to_string): Likewise. (StdRbtreeIteratorPrinter.to_string): Use the type's _Link_type typedef. (StdMapPrinter.children): Change how the node's type is computed. (StdSetPrinter.children): Likewise. (StdForwardListPrinter.children): Use the type's _Node typedef. (Printer.add_version): New method. (Printer.add_container): New method. (build_libstdcxx_dictionary): Handle __7 and __cxx1998 namespaces. (find_type): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183732 138bc75d-0d04-0410-961f-82ee72b054a4
* * python/libstdcxx/v6/printers.py (StdForwardListPrinter): Add.redi2012-01-081-0/+46
| | | | | | | * testsuite/libstdc++-prettyprinters/cxx11.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182989 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/48362redi2011-12-221-4/+6
| | | | | | | | * python/libstdcxx/v6/printers.py (StdTuplePrinter): Handle empty tuples. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182620 138bc75d-0d04-0410-961f-82ee72b054a4
* * python/libstdcxx/v6/printers.py (_use_gdb_pp): New global.tromey2011-03-141-98/+169
| | | | | | | | | | | | | | | | | | | | Try to import `gdb.printing' module. (UniquePointerPrinter.__init__): Add 'typename' argument. (StdSlistPrinter.__init__): Likewise. (StdSlistIteratorPrinter.__init__): Likewise. (StdVectorIteratorPrinter.__init__): Likewise. (StdRbtreeIteratorPrinter.__init__): Likewise. (StdDebugIteratorPrinter.__init__): Likewise. (StdDequeIteratorPrinter.__init__): Likewise. (StdStringPrinter.__init__): Likewise. (RxPrinter, Printer): New class. (libstdcxx_printer): New global. (register_libstdcxx_printers): Rewrite. (build_libstdcxx_dictionary): Rewrite. (pretty_printers_dict): Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170958 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-11-01 Jonathan Wakely <jwakely.gcc@gmail.com>redi2010-11-011-1/+4
| | | | | | | | | | PR libstdc++/45999 * python/libstdcxx/v6/printers.py (StdVectorPrinter): Replace conditional expression with backward-compatible if-else. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166150 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/45403redi2010-10-081-1/+3
| | | | | | | * python/libstdcxx/v6/printers.py: Check for lazy_string support. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165163 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-08-16 Chris Moller <cmoller@redhat.com>tromey2010-08-161-11/+45
| | | | | | | | http://sourceware.org/bugzilla/show_bug.cgi?id=11874 * python/libstdcxx/v6/printers.py (StdVectorPrinter): Added stuff to handle pretty-printing of std::vector<bool>. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163282 138bc75d-0d04-0410-961f-82ee72b054a4
* - Revert two chunks from libstdc++-v3/python/libstdcxx/v6/printers.py,doko2010-07-021-3/+2
| | | | | | | left over from testing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161702 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-06-22 Matthias Klose <doko@ubuntu.com>doko2010-06-221-4/+5
| | | | | | | * python/libstdcxx/v6/printers.py: Don't use string exceptions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161233 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-01-15 Phil Muldoon <pmuldoon@redhat.com>pmuldoon2010-01-151-15/+4
| | | | | | | | | | | | | | | | * python/libstdcxx/v6/printers.py (StdStringPrinter.__init__): Remove encoding argument. (StdStringPrinter.to_string): Do not compute or pass encoding. Use lazy_string over string function. --this line, and those below, will be ignored-- M libstdc++-v3/python/libstdcxx/v6/printers.py M libstdc++-v3/ChangeLog git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155951 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-10-20 Phil Muldoon <pmuldoon@redhat.com>pmuldoon2009-10-201-0/+59
| | | | | | | | | * python/libstdcxx/v6/printers.py (StdTuplePrinter): New printer. (build_libstdcxx_dictionary): Add StdTuplePrinter registration. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153013 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-10-01 Phil Muldoon <pmuldoon@redhat.com>tromey2009-10-011-19/+80
| | | | | | | | | | | | | | | | | * python/libstdcxx/v6/printers.py (StdListPrinter): Add -D_GLIBCXX_DEBUG implementation changes. Receive typename from printer registration. (StdListIteratorPrinter): Likewise. (StdDebugIteratorPrinter): New printer. (build_libstdcxx_dictionary): Add -D_GLIBCXX_DEBUG registration entries. Always pass a typename where the type can change. (StdSlistPrinter) Receive typename from printer registration. Use in printer output. (StdBitsetPrinter): Likewise. (StdDequePrinter): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152385 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-07-16 Phil Muldoon <pmuldoon@redhat.com>tromey2009-07-161-1/+15
| | | | | | | | | Tom Tromey <tromey@redhat.com> * python/libstdcxx/v6/printers.py (StdStringPrinter.to_string): Fetch std::string to the given length. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149714 138bc75d-0d04-0410-961f-82ee72b054a4
* * python/libstdcxx/v6/printers.py (StdMapPrinter.__init__): Don'ttromey2009-06-151-6/+6
| | | | | | | | | | | set self.iter. (StdMapPrinter.to_string): Make a new iterator. (StdMapPrinter.children): Likewise. (StdSetPrinter.__init__): Don't set self.iter. (StdSetPrinter.to_string): Make a new iterator. (StdSetPrinter.children): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148506 138bc75d-0d04-0410-961f-82ee72b054a4
* * python/libstdcxx/v6/printers.py (lookup_function): Remove extratromey2009-06-101-7/+5
| | | | | | | | | ';'. (build_libstdcxx_dictionary): Accept shortened form of basic_string names. (StdStringPrinter.to_string): Remove reference to WideEncoding. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148358 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-28 Tom Tromey <tromey@redhat.com>tromey2009-05-281-0/+642
Phil Muldoon <pmuldoon@redhat.com> Jonathan Wakely <jwakely.gcc@gmail.com> * python/Makefile.in, , python/libstdcxx/__init__.py, python/libstdcxx/v6/__init__.py, python/libstdcxx/v6/printers.py, python/hook.in, python/Makefile.am: New files. * configure, Makefile.in: Rebuild. * acinclude.m4 (glibcxx_SUBDIRS): Add python. * Makefile.am (SUBDIRS): Add python. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147958 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud