Commit 30dd71b
fix(native): use breakpad's 0x40000000 MD_CONTEXT_ARM flag
The ARM32 write_thread_context branch was emitting
context_flags = 0x00200003 (Microsoft Windows CONTEXT_ARM | CONTROL |
INTEGER). That matched the pattern the other arches use in this file,
but ARM32 is the one arch where breakpad explicitly diverges from
Microsoft's numbering, with a comment in minidump_cpu_arm.h:
// This value was chosen to avoid likely conflicts with MD_CONTEXT_*
// for other CPUs.
#define MD_CONTEXT_ARM 0x40000000
rust-minidump (Sentry's ingest reader) keys off the breakpad value:
https://github.com/rust-minidump/rust-minidump/blob/d4fefc765aad35b3bef569d53c1680eadab5a268/minidump-common/src/format.rs#L801-L804
With 0x00200000, the parser wouldn't identify the stream as an ARM
context and registers would be dropped from the crash report. Switch
to 0x40000003 to match breakpad / rust-minidump / crashpad (all of
which use 0x40000000 for ARM specifically).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a3ecf71 commit 30dd71b
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
781 | 781 | | |
782 | 782 | | |
783 | 783 | | |
784 | | - | |
785 | | - | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
786 | 787 | | |
787 | 788 | | |
788 | 789 | | |
| |||
0 commit comments