Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/mono/mono/mini/debugger-agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -1085,18 +1085,18 @@ finish_agent_init (gboolean on_startup)
// FIXME: Generated address
// FIXME: Races with transport_connect ()

char *argv [ ] = {
agent_config.launch,
agent_config.transport,
agent_config.address,
NULL
};
#ifdef G_OS_WIN32
// Nothing. FIXME? g_spawn_async_with_pipes is easy enough to provide for Windows if needed.
#elif !HAVE_G_SPAWN
g_printerr ("g_spawn_async_with_pipes not supported on this platform\n");
exit (1);
#else
char *argv [ ] = {
agent_config.launch,
agent_config.transport,
agent_config.address,
NULL
};
int res = g_spawn_async_with_pipes (NULL, argv, NULL, (GSpawnFlags)0, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
if (!res) {
g_printerr ("Failed to execute '%s'.\n", agent_config.launch);
Expand Down