Re: Fix some _GLIBCXX_DEBUG pretty printer errors

2018-03-08 Thread François Dumont
On 08/03/2018 19:11, Jonathan Wakely wrote: This caused a new regression for: std::forward_list flst; std::forward_list::iterator flstiter0; // { dg-final { note-test flstiter0 {non-dereferenceable iterator for std::forward_list}} } $1 = {_M_node = 0x0} got: $1 = {_M_node = 0x0} FAIL: li

Re: Fix some _GLIBCXX_DEBUG pretty printer errors

2018-03-08 Thread Jonathan Wakely
On 8 March 2018 at 21:32, François Dumont wrote: > On 08/03/2018 19:11, Jonathan Wakely wrote: >> >> This caused a new regression for: >> >>std::forward_list flst; >>std::forward_list::iterator flstiter0; >> // { dg-final { note-test flstiter0 {non-dereferenceable iterator for >> std::forw

Re: Fix some _GLIBCXX_DEBUG pretty printer errors

2018-03-08 Thread François Dumont
On 08/03/2018 19:11, Jonathan Wakely wrote: This caused a new regression for: std::forward_list flst; std::forward_list::iterator flstiter0; // { dg-final { note-test flstiter0 {non-dereferenceable iterator for std::forward_list}} } $1 = {_M_node = 0x0} got: $1 = {_M_node = 0x0} FAIL: li

Re: Fix some _GLIBCXX_DEBUG pretty printer errors

2018-03-08 Thread Jonathan Wakely
This caused a new regression for: std::forward_list flst; std::forward_list::iterator flstiter0; // { dg-final { note-test flstiter0 {non-dereferenceable iterator for std::forward_list}} } $1 = {_M_node = 0x0} got: $1 = {_M_node = 0x0} FAIL: libstdc++-prettyprinters/debug_cxx11.cc print flst

Re: Fix some _GLIBCXX_DEBUG pretty printer errors

2018-03-07 Thread Jonathan Wakely
On 7 March 2018 at 17:39, François Dumont wrote: > On 06/03/2018 22:21, Jonathan Wakely wrote: >> >> >>> @@ -575,10 +586,12 @@ class StdDebugIteratorPrinter: >>> # and return the wrapped iterator value. >>> def to_string (self): >>> base_type = gdb.lookup_type('__gnu_debug::_Safe

Re: Fix some _GLIBCXX_DEBUG pretty printer errors

2018-03-07 Thread François Dumont
On 06/03/2018 22:21, Jonathan Wakely wrote: @@ -575,10 +586,12 @@ class StdDebugIteratorPrinter: # and return the wrapped iterator value. def to_string (self): base_type = gdb.lookup_type('__gnu_debug::_Safe_iterator_base') +itype = self.val.type.template_argument(0)

Re: Fix some _GLIBCXX_DEBUG pretty printer errors

2018-03-06 Thread Jonathan Wakely
On 5 February 2018 at 06:49, François Dumont wrote: > Hi > > Here is a patch to fix some pretty printer check errors when running > those tests with _GLIBCXX_DEBUG. > > I introduced a special rendered for the std::forward_list iterator which > is similar to the one used for the std::list an

Fix some _GLIBCXX_DEBUG pretty printer errors

2018-02-04 Thread François Dumont
Hi     Here is a patch to fix some pretty printer check errors when running those tests with _GLIBCXX_DEBUG.     I introduced a special rendered for the std::forward_list iterator which is similar to the one used for the std::list and so used inheritance, I hope it is not a problem for Pytho