(gdb) target remote machine-XYZ:5001
(gdb) b some_function_name
(gdb) c
Continuing.
Now here the remote process have not hit the function and gdb is still in continuing stage. But if I have to add more break point or if I have to detach how can I do that, this can't be done without returning to prompt.