On 02/14/2015 11:39 PM, Jakub Wilk wrote: > Package: libstdc++6 > Version: 5-20150205-1 > > $ gdb --batch --quiet --ex 'run >/dev/null' apt-get > Traceback (most recent call last): > File > "/usr/share/gdb/auto-load/usr/lib/i386-linux-gnu/libstdc++.so.6.0.21-gdb.py", > line 58, in <module> > import libstdcxx.v6 > File > "/usr/lib/i386-linux-gnu/../../share/gcc-5/python/libstdcxx/v6/__init__.py", > line 19, in <module> > from printers import register_libstdcxx_printers > ImportError: No module named 'printers' > [Inferior 1 (process 6130) exited normally] > > > This is with gdb_7.8.2-1 (from experimental).
please check this patch. gdb from experimental is linked with python3, not supporting implicit relative imports anymore. --- /usr/share/gcc-5/python/libstdcxx/v6/__init__.py.orig 2015-02-25 20:02:16.795604987 +0000 +++ /usr/share/gcc-5/python/libstdcxx/v6/__init__.py 2015-02-25 20:03:15.044015674 +0000 @@ -16,7 +16,7 @@ import gdb # Load the pretty-printers. -from printers import register_libstdcxx_printers +from .printers import register_libstdcxx_printers register_libstdcxx_printers(gdb.current_objfile()) # Load the xmethods if GDB supports them. @@ -28,5 +28,5 @@ return False if gdb_has_xmethods(): - from xmethods import register_libstdcxx_xmethods + from .xmethods import register_libstdcxx_xmethods register_libstdcxx_xmethods(gdb.current_objfile()) -- To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/54ee2ae2.60...@debian.org