2

http://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/からSTL用のgdbを使用してプリティプリントをセットアップしようと し、指示に従って実行しました

GDB pretty printing ImportError: No module named 'printers'の指示に従って、python の問題を修正しました。

のソース中にエラーが発生しなくなりましたgdbinit file

errorしかし、マルチマップを印刷しようとしているときに、次のことにこだわっています。

(gdb) p mymMap

Python Exception <type 'exceptions.LookupError'> no codec search functions registered: can't find encoding:

Python Exception <type 'exceptions.LookupError'> no codec search functions registered: can't find encoding:

$1 =

これを解決する方法に関するヒントはありますか?

1) gdbinit の stmt に従う前に、インポートコーデックを追加しようとしました:

from libstdcxx.v6.printers import register_libstdcxx_printers

2) codecs モジュールは Python インストールに存在します

version info:
gdb version - 7.5.1; 
python in gdb - 2.6.5
4

2 に答える 2