Rename gdbserver functions
Reorder functions (no other changes)