How to do remote debugging with Eclipse CDT without gdbserver?

前端 未结 3 740
有刺的猬
有刺的猬 2020-12-09 05:24

We\'re using the Eclipse CDT 5 C++ IDE on Windows to develop a C++ application on a remote AIX host.

Eclipse CDT has the ability to perform remote debugging using g

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-09 05:39

    I wouldn't normally take a shot in the dark on a question I can't really test the answer to, but since this one has sat around for a day, I'll give it a shot. It seems from looking at:

    http://wiki.eclipse.org/TM_and_RSE_FAQ#How_can_I_do_Remote_Debugging_with_CDT.3F

    ...that even if the CDT has changed since that wiki page was made, you should still be able to change the debug command to:

    ssh remotehost gdb

    instead of using TM which uses gdbserver. This will probably be slightly slower than the TM remote debugging since that actually uses a local gdb, but on the other hand this way you won't have to NFS or SMB mount your source code to make it available to the local debugger (and if you're on a LAN it probably won't matter anyhow).

    There's also a reference TCF implementation for linux, which you may or may not have any luck recompiling for AIX, but it allows for remote debugging if gdbserver is otherwise not available:

    http://wiki.eclipse.org/DSDP/TM/TCF_FAQ

提交回复
热议问题