Search code examples
gdbgdbserver

gdb connecting target by default


When debugging on remote target by using gdbserver, at client normally I do

$ gdb <enter>
(gdb) target remote <IP>:<PORT>

Is there an option for gdb that I can do this by giving gdb a proper argument?


Solution

  • Just something like: gdb -ex "target remote ..."