python exception <type 'exceptions.ImportError'> Kein Modul namens gdb:

Habe ich gerade kompiliert gdb 7.8 von der Quelle in meinem home-Verzeichnis auf einem server-Rechner, auf denen linux ausgeführt wird. Ich hatte zuvor mit gdb 7.6, und abgesehen von Probleme mit der Stabilität gdb selbst (der Grund für das upgrade) funktioniert alles einwandfrei.

Seit dem upgrade von gdb, wenn ich cgdb 0.6.7 bekomme ich sofort folgende Meldung:

Python Exception <type 'exceptions.ImportError'> No module named gdb:

warning:
Could not load the Python gdb module from `/home/username/bin/gdb//python'.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.

Als ich gebaut gdb ich verwendet ./configure --with-python.

Wenn ich cgdb und mein Programm erreicht einen segfault, ich tippe backtrace und bekomme die folgende Meldung:

Python-Exception Kein Modul namens gdb.frames:

So, wie es scheint, bin ich effektiv nicht nutzen gdb/cgdb ohne python-Unterstützung. Was kann ich tun, um dieses Problem beheben?

FWIW, ich weiß nicht verwenden python Schreibe ich normalerweise c++.

InformationsquelleAutor quant | 2014-09-01
Schreibe einen Kommentar