Commit b58e3d0
[debugger] Fixing two crashes while debugging an Android app. (mono#13373)
* [debugger] Fixing two crashes while debugging an Android app.
-> Doing stepping into in VSM in some situation the frame saved in TLS is not synchronised with what is really been executed in the main thread. This makes the debugger-agent crashes because it tries to get variable info in some memory that is not available anymore.
-> To fix it I forced the update of stack when CMD_THREAD_GET_FRAME_INFO is called.
-> Doing step over in Visual Studio for Windows, if you have the threads debugger window enabled, VSW calls frame_commands for each thread that is showed, and if the thread is not really_suspended it tries to get variable info from a memory that is not available anymore because the thread is not suspended yet.
-> To fix it I don't send variable info of a frame if the thread is not really_suspended and doesn't have an async_state valid.
Cherry-picked with some light massaging by Alex Thibodeau (case 1249172)1 parent 79a0da3 commit b58e3d0
1 file changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3519 | 3519 | | |
3520 | 3520 | | |
3521 | 3521 | | |
3522 | | - | |
| 3522 | + | |
3523 | 3523 | | |
3524 | 3524 | | |
3525 | 3525 | | |
| |||
3528 | 3528 | | |
3529 | 3529 | | |
3530 | 3530 | | |
3531 | | - | |
| 3531 | + | |
3532 | 3532 | | |
3533 | 3533 | | |
3534 | 3534 | | |
| |||
5211 | 5211 | | |
5212 | 5212 | | |
5213 | 5213 | | |
5214 | | - | |
| 5214 | + | |
5215 | 5215 | | |
5216 | 5216 | | |
5217 | 5217 | | |
| |||
6533 | 6533 | | |
6534 | 6534 | | |
6535 | 6535 | | |
6536 | | - | |
| 6536 | + | |
6537 | 6537 | | |
6538 | 6538 | | |
6539 | 6539 | | |
| |||
6866 | 6866 | | |
6867 | 6867 | | |
6868 | 6868 | | |
6869 | | - | |
| 6869 | + | |
6870 | 6870 | | |
6871 | 6871 | | |
6872 | 6872 | | |
| |||
11189 | 11189 | | |
11190 | 11190 | | |
11191 | 11191 | | |
11192 | | - | |
| 11192 | + | |
11193 | 11193 | | |
11194 | 11194 | | |
11195 | 11195 | | |
| |||
11246 | 11246 | | |
11247 | 11247 | | |
11248 | 11248 | | |
11249 | | - | |
| 11249 | + | |
11250 | 11250 | | |
11251 | 11251 | | |
11252 | 11252 | | |
| |||
11350 | 11350 | | |
11351 | 11351 | | |
11352 | 11352 | | |
| 11353 | + | |
| 11354 | + | |
| 11355 | + | |
11353 | 11356 | | |
11354 | 11357 | | |
11355 | 11358 | | |
| |||
0 commit comments