gdbserver 실행 (Target)
# gdbserver --attach :5039 <PID>Attached; pid = 7148Listening on port 5039 또는# gdbserver :5039 <BINARY PATH>Process xxx created; pid = 6232Listening on port 5039 |
$ gdb-multiarch(gdb) set arch arm(gdb) file <BINARY PATH>(gdb) target remote [gdbserver ip]:5039 참고https://sourceware.org/gdb/wiki/BuildingCrossGDBandGDBserver