Good day!

There was a problem debugging a remote project. I launch Netbeans under Win7x64, create a remote project with source codes on a remote Linux machine (CentOS6 x86_64). I compile the project and launch it for execution, I connect with the debugger - everything works fine, except that the debugger periodically freezes, falls off with errors, it does not work stably. The gdb debugger version is quite old.

I update (I install from source) the latest version of gdb - everything works quickly, nothing falls off, but the debugger does not see entities from STL (iterators, map, etc.).

I register in .gdbinit as recommended:

python import sys sys.path.insert(0, '/usr/share/gdb/python') from libstdcxx.v6.printers import register_libstdcxx_printers register_libstdcxx_printers (None) end 

But nothing happens as if it (.gdbinit) is not used at all. Perhaps, whoever, faced with similar problems how to solve them? What would the debugger see the entities STL.

PS Starting on a remote machine takes place. In the manner (ps aux | grep gdb):

 root 28094 0.0 0.0 3932 392 ? Ss 14:45 0:00 /var/tmp/dlight_root/3f6507a2/01514253146/pty --dir /usr/local/ --no-pty --readenv /var/tmp/dlight_root/3f6507a2/env /usr/local/bin/gdb -x C:\Users\user/.gdbinit --interpreter mi root 28103 0.0 0.0 3932 404 ? Ss 14:45 0:00 /var/tmp/dlight_root/3f6507a2/01514253146/pty --dir /usr/local/ --no-pty -- /var/tmp/dlight_root/3f6507a2/env /usr/local/bin/gdb -x C:\Users\user/.gdbinit --interpreter mi root 28104 7.1 9.5 324544 184448 ? Ss 14:45 0:02 /usr/local/bin/gdb -x C:\Users\user/.gdbinit --interpreter mi 

Perhaps the debugger is trying to find the path "C: \ Users \ user / .gdbinit" on the remote machine? but no errors whatsoever.

    0