This repository was archived by the owner on Jan 6, 2025. It is now read-only.
Commit e8ccf57
committed
intercept_template.s - add more debug information
Add some dwarf information on the whereabouts of some
register values saved on the stack. The faked return address
points a debugger to a backtrace_placeholder routine, where the
return address (in debug builds) is found on the top of the
stack, and with this patch the values of some other registers
are also found on the stack by a debugger. These registers are
pushed on the stack by an instance generated from the assembly
template, so the offsets in the placeholder routines (which are
never actually executed) must match the offsets resulting from
the push instructions in the actually executed code.1 parent 69494d9 commit e8ccf57
1 file changed
+31
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
251 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
252 | 270 | | |
253 | 271 | | |
254 | 272 | | |
| |||
260 | 278 | | |
261 | 279 | | |
262 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
263 | 294 | | |
264 | 295 | | |
265 | 296 | | |
| |||
0 commit comments