gdb 远程调试

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

./gdbserver --attach 29489
Usage:  gdbserver [OPTIONS] COMM PROG [ARGS ...]
        gdbserver [OPTIONS] --attach COMM PID
        gdbserver [OPTIONS] --multi COMM

COMM may either be a tty device (for serial debugging),
HOST:PORT to listen for a TCP connection, or '-' or 'stdio' to use
stdin/stdout of gdbserver.
PROG is the executable program.  ARGS are arguments passed to inferior.
PID is the process ID to attach to, when --attach is specified.

./gdbserver --attach 127.0.0.1:1234 29489

转载于:https://my.oschina.net/innovation/blog/811991

你可能感兴趣的:(gdb 远程调试)