← Back to Pull requests

Add LoongArch 64-bit support #196

Closed
unknown closed this pull request without merging on Dec 12, 2025 11:30 UTC
View on GitHub
unknown unknown commented on Jun 17, 2025 14:27 UTC
Author

Add LoongArch 64-bit support for netcoredbg, which is a new RISC arch a bit like MIPS or RISC-V, for more informations about LoongArch, please refer Areweloongyet.

dotnet runtime & SDK already have a quite finite LoongArch 64 port, however as a community port, there are no official SDK released, so I use the community one for building & testing, after compiling libdbgshim.so and modify TargetFramework from netcoreapp3.1 to net9.0, it can pass most of tests in test-suite.

It's worth noticing that due to LoongArch's ptrace implement and __debug_trap() is slightly different with other architectures like x64/arm64, like SIGTRAP and SIGILL's si_code, so there are some macros for interop breakpoints could work properly.

Here are the test results

CLITestBreakpoint ... passed
CLITestInteropBreakpoint ... passed
MIExampleTest ... passed
MITestBreakpoint ... passed
MITestExpression ... passed
MITestVariables ... failed res=1
MITestStepping ... passed
MITestEvaluate ... passed
MITestException ... passed
MITestEnv ... passed
MITestGDB ... passed
MITestExecAbort ... passed
MITestExecInt ... passed
MITestHandshake ... passed
MITestTarget ... passed
MITestExceptionBreakpoint ... failed res=1
MITestExtensionMethods ... passed
MITestExitCode ... passed
MITestEvalNotEnglish ... passed
MITest中文目录 ... passed
MITestSrcBreakpointResolve ... passed
MITestEnum ... passed
MITestAsyncStepping ... passed
MITestBreak ... passed
MITestBreakpointToModule ... passed
MITestNoJMCNoFilterStepping ... passed
MITestNoJMCBreakpoint ... passed
MITestNoJMCAsyncStepping ... passed
MITestNoJMCExceptionBreakpoint ... failed res=1
MITestSizeof ... passed
MITestAsyncLambdaEvaluate ... passed
MITestGeneric ... passed
MITestEvalArraysIndexers ... passed
MITestBreakpointWithoutStop ... passed
MITestBreakpointUpdate ... passed
MITestUnhandledException ... passed
VSCodeExampleTest ... passed
VSCodeTestBreakpoint ... passed
VSCodeTestFuncBreak ... passed
VSCodeTestAttach ... passed
VSCodeTestPause ... passed
VSCodeTestDisconnect ... passed
VSCodeTestThreads ... passed
VSCodeTestVariables ... failed res=1
VSCodeTestEvaluate ... passed
VSCodeTestStepping ... passed
VSCodeTestEnv ... passed
VSCodeTestExitCode ... passed
VSCodeTestEvalNotEnglish ... passed
VSCodeTest中文目录 ... passed
VSCodeTestSrcBreakpointResolve ... passed
VSCodeTestEnum ... passed
VSCodeTestAsyncStepping ... passed
VSCodeTestBreak ... passed
VSCodeTestNoJMCNoFilterStepping ... passed
VSCodeTestNoJMCBreakpoint ... passed
VSCodeTestNoJMCAsyncStepping ... passed
VSCodeTestExceptionBreakpoint ... passed
VSCodeTestNoJMCExceptionBreakpoint ... passed
VSCodeTestSizeof ... passed
VSCodeTestAsyncLambdaEvaluate ... passed
VSCodeTestGeneric ... passed
VSCodeTestEvalArraysIndexers ... passed
VSCodeTestExtensionMethods ... passed
VSCodeTestBreakpointWithoutStop ... passed
VSCodeTestUnhandledException ... passed

Total tests: 66. Passed: 62. Failed: 4.

The failed tests seems to be architecture independent, they're failed too on x64-linux's net9.0 target. It's highly possible that dotnet version differences make them failed.

Related: https://github.com/loongson-community/discussions/issues/84

Diff: 418 lines (+313 / -105) across 5 files Reviewer: lrzlin Review duration: 256143m
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 418 lines diff across 5 files
0.45
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.361
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #196"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 45.0% (MEDIUM) · Higher = larger blast radius
45.0%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 17.8% · Safe to merge
17.8%