Skip to content

Commit 4bd7064

Browse files
Brian Radermanjoncham
authored andcommitted
Tiny debugger tests
* Ignoring the EventSets test because it tests exceptions. * Fixing the vm.Exit() path that doesn't use System.Environment.Exit().
1 parent 6871e3d commit 4bd7064

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mono/mini/debugger-agent.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8750,11 +8750,11 @@ vm_commands (int command, int id, guint8 *p, guint8 *end, Buffer *buf)
87508750
while (suspend_count > 0)
87518751
resume_vm ();
87528752

8753+
mono_environment_exitcode_set (exit_code);
8754+
87538755
if (!mono_runtime_try_shutdown ())
87548756
break;
87558757

8756-
mono_environment_exitcode_set (exit_code);
8757-
87588758
/* Suspend all managed threads since the runtime is going away */
87598759
DEBUG_PRINTF (1, "Suspending all threads...\n");
87608760
mono_thread_suspend_all_other_threads ();

mono/mini/il2cpp-stubs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ gint32 il2cpp_mono_environment_exitcode_get()
900900

901901
void il2cpp_mono_environment_exitcode_set(gint32 value)
902902
{
903-
IL2CPP_ASSERT(0 && "This method is not yet implemented");
903+
il2cpp::vm::Runtime::SetExitCode(value);
904904
}
905905

906906
void il2cpp_mono_threadpool_suspend()

0 commit comments

Comments
 (0)