Skip to content

Commit a269b9d

Browse files
committed
[debugger-agent] modify mono_debugger_disconnect method so the transport socket is opened after stopping the debugger thread and start a new debugger thread
1 parent 56ea90e commit a269b9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mono/mini/debugger-agent.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,9 +1092,11 @@ mono_debugger_get_generate_debug_info ()
10921092
}
10931093

10941094
MONO_API void
1095-
mono_debugger_disconnect (const char *message)
1095+
mono_debugger_disconnect ()
10961096
{
10971097
stop_debugger_thread ();
1098+
transport_connect (agent_config.address);
1099+
start_debugger_thread ();
10981100
}
10991101

11001102
typedef void (*MonoDebuggerAttachFunc)(gboolean attached);

0 commit comments

Comments
 (0)