gdb: make more use of make_target_connection_string