Commit 15f8793
[Xamarin.Android.Build.Tasks] Preserve Debugger Async Supports (#875)
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=59516
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=59015
The linker requires that the target process contain members such as
`System.Threading.Tasks.Task.NotifyDebuggerOfWaitCompletion()`.
If these members are missing, the runtime may abort:
* Assertion at …xamarin-android/external/mono/mono/mini/debugger-agent.c:4765, condition `array->len == 1' not met
[libc] Fatal signal 6 (SIGABRT), code -6 in tid 11492 (…)
Update the linker so that `async`-related Debugger support
infrastructure is preserved, so that the debugger can rely on them.
*Note*: This commit does *not* fix the assert reported in Bug #59015
on Android as that happens when the linker is disabled as well.
Fixing the assert from Bug #59015 will require another fix.1 parent aa8ef23 commit 15f8793
File tree
1 file changed
+41
-1
lines changed- src/Xamarin.Android.Build.Tasks/Linker/MonoDroid.Tuner
1 file changed
+41
-1
lines changedLines changed: 41 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
144 | 148 | | |
| 149 | + | |
| 150 | + | |
145 | 151 | | |
146 | 152 | | |
147 | 153 | | |
| |||
155 | 161 | | |
156 | 162 | | |
157 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
158 | 198 | | |
159 | 199 | | |
160 | 200 | | |
| |||
0 commit comments