With gdb I would write a .gdbinit file with the following contents:
break file1.c:32
catch syscall write
# more setup commands
run
This would make gdb run the program and stop at those breakpoints.
How can I do the same with gdbserver? Eg: Stop for accepting connections only when the breakpoint is hit?