windows - GDB: ImportError: No module named libstdcxx.v6.printers -


i have msys2 , mingw64 installed under windows 7.

gdb reports "importerror: no module named libstdcxx.v6.printers":

$ gdb   gnu gdb (gdb) 7.11.1   copyright (c) 2016 free software foundation, inc.   license gplv3+: gnu gpl version 3 or later <http://gnu.org/licenses/gpl.html>   free software: free change , redistribute it.   there no warranty, extent permitted law.  type "show copying"   , "show warranty" details.   gdb configured "x86_64-pc-msys".   type "show configuration" configuration details.   bug reporting instructions, please see:   <http://www.gnu.org/software/gdb/bugs/>.   find gdb manual , other documentation resources online at:   <http://www.gnu.org/software/gdb/documentation/>.   help, type "help".   type "apropos word" search commands related "word".   traceback (most recent call last):     file "<string>", line 3, in <module>   importerror: no module named libstdcxx.v6.printers   /etc/gdbinit:6: error in sourced command file:   error while executing python code.   (gdb) quit   

i have found several links:

import error: no module name libstdcxx

importerror: no module named 'libstdcxx' while debuging project ncurses

how enable gdb pretty printing c++ stl objects in eclipse cdt?

https://askubuntu.com/questions/345873/gdb-crashes-with-importerror-no-module-named-libstdcxx-v6-printers

https://github.com/alexpux/mingw-packages/issues/383

but none of them helps.

update:

there 2 gdbinit.

c:\appl\msys64\etc\gdbinit:

python import sys sys.path.insert(0, sys.path[0] + '/../../gcc-6.3.0/python') libstdcxx.v6.printers import register_libstdcxx_printers register_libstdcxx_printers (none) end 

c:\appl\msys64\mingw64\etc\gdbinit:

python import sys sys.path.insert(0, sys.path[0] + 'c:/appl/msys64/mingw64/share/gcc-7.1.0/python') libstdcxx.v6.printers import register_libstdcxx_printers end 


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -