server/gdb: Use get_target_from_connection()