Commit aeb2d94
feat(native): ptrace-capture registers for non-crashed threads on 32-bit ARM
ptrace_get_thread_registers had x86_64 / aarch64 / i386 branches but
no __arm__ branch. On arm32 it returned false without populating the
thread's ucontext, so every non-crashed thread landed in the minidump
without registers or stack — multi-threaded crash reports on arm32
were effectively single-threaded.
Add the arm32 branch using PTRACE_GETREGS (same mechanism the x86_64 /
i386 branches use; works on arm32 too) and map the returned
`struct user_regs` uregs[0..16] into the ucontext_t's arm_* fields.
No VFP/NEON capture yet — matches the i386 branch's punt on FPU state.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1c408c6 commit aeb2d94
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
276 | 304 | | |
277 | 305 | | |
278 | 306 | | |
| |||
0 commit comments