centos安装gdbserver:
注意安装gdbserver的命令是
yum install gdb-gdbserver
On the target machine
gdbserver localhost:2000 my_program
On the GDB host machine
gdb my_program
(gdb)
(gdb) target remote 192.168.1.10:2000
参考:
https://ftp.gnu.org/old-gnu/Manuals/gdb-5.1.1/html_node/gdb_131.html