Problem with .gdbinit [message #780799] |
Thu, 19 January 2012 07:32  |
Eclipse User |
|
|
|
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 07:34] by Moderator
|
|
|
|
|
|
Re: Problem with .gdbinit [message #780825 is a reply to message #780822] |
Thu, 19 January 2012 09:21  |
Eclipse User |
|
|
|
It wasn't at all a stupid question : the path was configured to a directory which doesn't exist anymore. It was created when I tried other gdb versions to resolve that other problem...
But the message was not so clear...
Thanks a lot.
[Updated on: Thu, 19 January 2012 09:22] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.05362 seconds