Problem with .gdbinit [message #780799] |
Thu, 19 January 2012 12:32 |
Harry Houdini Messages: 142 Registered: February 2010 |
Senior Member |
|
|
Hello,
First of all, I'm coming from Windows, and I'm not used at all to gdb.
Here is my .gdbinit file :
python
import sys
sys.path.insert(0, '/usr/share/gcc-4.5.1/python/libstdcxx/v6')
from libstdcxx.v6.printers import register_libstdcxx_printers
register_libstdcxx_printers (None)
end
printers.py is in /usr/share/gcc-4.5.1/python/libstdcxx/v6
When I run gdb on the command line, and execute each instruction, I have no problem :
(gdb) python
>import sys
>sys.path.insert(0, '/usr/share/gcc-4.5.1/python/libstdcxx/v6')
>from libstdcxx.v6.printers import register_libstdcxx_printers
>register_libstdcxx_printers (None)
>end
(gdb) quit
But when I want to use it from Eclipse CDT, I get the follwong message :
Error in final launch sequence
Failed to execute MI command:
source ~/.gdbinit
Error message from debugger back end:
/users/stepvand/.gdbinit:6: Error in sourced command file:
Error while executing Python code.
/users/stepvand/.gdbinit:6: Error in sourced command file:
Error while executing Python code.
[Updated on: Thu, 19 January 2012 12:34] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03641 seconds