Re: issue with GDB python pretty-printers for libstdc++

2020-02-26 Thread Paul Smith
On Wed, 2020-02-26 at 17:23 +, Jonathan Wakely wrote: > I compiled this program: > > #include > > int main() > { > std::unordered_map m; > m[3] = 5; > return m[1]; > } > > And with Fedora 31's GDB 8.3.50 I get this behaviour: I can't reproduce with a simple test either. But in my fu

Re: issue with GDB python pretty-printers for libstdc++

2020-02-26 Thread Jonathan Wakely
On Wed, 26 Feb 2020 at 17:01, Jonathan Wakely wrote: > > On Wed, 26 Feb 2020 at 14:32, Paul Smith wrote: > > > > Hi all. I was seeing a strange error in GDB (8.2.1) debugging some C++ > > code while trying to print a value. The pretty printer was throwing Python > > exceptions. > > > > Debuggin

Re: issue with GDB python pretty-printers for libstdc++

2020-02-26 Thread Jonathan Wakely
On Wed, 26 Feb 2020 at 14:32, Paul Smith wrote: > > Hi all. I was seeing a strange error in GDB (8.2.1) debugging some C++ > code while trying to print a value. The pretty printer was throwing Python > exceptions. > > Debugging it I discovered the problem, which is here (from GCC 9.2): > > libst

issue with GDB python pretty-printers for libstdc++

2020-02-26 Thread Paul Smith
Hi all. I was seeing a strange error in GDB (8.2.1) debugging some C++ code while trying to print a value. The pretty printer was throwing Python exceptions. Debugging it I discovered the problem, which is here (from GCC 9.2): libstdc++-v3/python/libstdcxx/v6/printers.py: # Starting with the