Commit 76c086c
scripts: sof-crash-decode: support debug_stream.py exception format
The debug_stream.py tool outputs exception records in a format that
differs from the QEMU format the decoder originally targeted:
- Register values can be (nil) instead of 0x0, e.g. 'A4 (nil)'
- Backtrace entries are on separate lines after 'Backtrace:' rather
than all on a single line
- Additional registers LCOUNT and THREADPTR are present
Update the parser to handle both formats:
- Fix (nil) regex: the trailing word boundary anchor failed on the
closing parenthesis; split hex and decimal into separate capture
groups to avoid the issue
- Parse backtrace entries across multiple lines after the Backtrace:
header, stopping when a line contains non-backtrace content
- Add LCOUNT and THREADPTR to the accepted register list
The existing single-line backtrace and QEMU register formats continue
to work unchanged.
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>1 parent 331b378 commit 76c086c
1 file changed
Lines changed: 24 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
173 | 175 | | |
174 | | - | |
| 176 | + | |
175 | 177 | | |
176 | 178 | | |
177 | | - | |
| 179 | + | |
178 | 180 | | |
179 | 181 | | |
180 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
181 | 185 | | |
182 | 186 | | |
183 | | - | |
| 187 | + | |
184 | 188 | | |
185 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
186 | 198 | | |
187 | 199 | | |
188 | 200 | | |
| |||
0 commit comments