I'm cross-compiling for an embedded linux target and debugging using gdbserver. On the target I run gdbserver :2000 /home/root/demo
and on the host I run gdb-multiarch
followed by target remote 10.24.0.236:2000
to connect to the server (as per this tutorial).
Everytime I recompile my program I kill
the program from the gdb client, recompile, restart the server and run target remote 10.24.0.236:2000
again.
Must I restart the server each time I recompile?