forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d19ee8c
commit 0d44b0f
Showing
5 changed files
with
66 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cd src/tests | ||
./build.sh -mono -debug riscv64 -ninja /p:KeepNativeSymbols=true -tree:JIT/ | ||
|
||
cd ../.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
handle SIGXCPU SIG33 SIG35 SIG36 SIG37 SIG38 SIGPWR nostop print | ||
|
||
define mono_backtrace | ||
select-frame 0 | ||
set $i = 0 | ||
while ($i < $arg0) | ||
set $foo = (char*) mono_pmip ($pc) | ||
if ($foo) | ||
printf "#%d %p in %s\n", $i, $pc, $foo | ||
else | ||
frame | ||
end | ||
up-silently | ||
set $i = $i + 1 | ||
end | ||
end | ||
|
||
define mono_stack | ||
set $mono_thread = mono_thread_current () | ||
if ($mono_thread == 0x00) | ||
printf "No mono thread associated with this thread\n" | ||
else | ||
set $ucp = malloc (sizeof (ucontext_t)) | ||
call (void) getcontext ($ucp) | ||
call (void) mono_print_thread_dump ($ucp) | ||
call (void) free ($ucp) | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// C# Hello World | ||
|
||
using System; | ||
|
||
public class Test | ||
{ | ||
public static void TestRun() | ||
{ | ||
int i; | ||
int len = 50; | ||
var rand = new Random(); | ||
while (len != 0) | ||
{ | ||
i = rand.Next(0, 1); | ||
len /= 2; | ||
} | ||
} | ||
|
||
public static void Main() | ||
{ | ||
TestRun(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters