GDB remote debugging with valgrind

前端 未结 1 1031
不思量自难忘°
不思量自难忘° 2021-02-06 12:54

If I remote debug using gdb I connect to the gdbserver using

target remote host:2345

If I debug memory errors with va

相关标签:
1条回答
  • 2021-02-06 13:24

    Can I combine the two to debug memory errors on a remote machine?

    Yes: current vgdb accepts --port= argument since this commit:

    r12204 | sewardj | 2011-10-22 13:38:08 -0700 (Sat, 22 Oct 2011) | 5 lines
    

    So run vgdb --port=2345, and then (gdb) target remote host:2345 as usual.

    0 讨论(0)
提交回复
热议问题