gdb reports ImportError no module libstdcxx.v6.printers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdb (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
GDB attempts to use a python "pretty printer" and reports the following error:
[Thread debugging using libthread_db enabled]
Traceback (most recent call last):
File "/usr/local/
from libstdcxx.
ImportError: No module named libstdcxx.
[Inferior 1 (process 31059) exited normally]
(gdb)
GDB Version: GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
I found that by doing the following it fixes the problem:
svn co svn://gcc.
mv gdb_printers /usr/local/etc
cd ~
vi .gdbinit
(copy & paste into .gdbinit)
python
import sys
sys.path.insert(0, '/usr/local/
from libstdcxx.
register_
end
Status changed to 'Confirmed' because the bug affects multiple users.