gdbserver: Move remote_debug to a single place