This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Wednesday 20 July 2011 19:21:59 Khem Raj wrote: > On 07/19/2011 08:39 AM, ANDY KENNEDY wrote: > > Traceback (most recent call last): > > File "/opt/toolchains/mips/mips/mips-linux-gnu/sysroot/lib/libstdc++.so.6.0.15-gdb.py", line 59, in<module> > > from libstdcxx.v6.printers import register_libstdcxx_printers > > ImportError: No module named libstdcxx.v6.printers > > Stopped due to shared library event > > > > > > I've looked around and found that this has something to do with the > > Python "pretty print" libraries. Now, granted, I'm working off a > > (relatively) very old CrossTool-NG, however, I'm not above updating > > if that is the fix. > > > > Any ideas why I'm getting such an error? > > cd $HOME > svn co svn://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python > > in .gdbinit add the path to it > > python > import sys > sys.path.insert(0, '~/python') > from libstdcxx.v6.printers import register_libstdcxx_printers > register_libstdcxx_printers (None) > end It should be installed along with gcc in: ${prefix}/share/gcc-${gcc_version}/python At least, it is on my gcc-4.6.1 toolchain: $ arm-unknown-linux-gnueabi-gcc --version arm-unknown-linux-gnueabi-gcc (crosstool-NG hg_default@2503_b5541f296b92 - 20110604.14-yem) 4.6.1 20110506 (prerelease) Maybe we could have gdb automatically locate this? Or prepare a template .gdbinit that the user could install? Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |