Reads the next byte from the instruction list */
| 348 | |
| 349 | /* Reads the next byte from the instruction list */ |
| 350 | static uint8_t |
| 351 | unwind_exec_read_byte(struct unwind_state *state) |
| 352 | { |
| 353 | uint8_t insn; |
| 354 | |
| 355 | /* Read the unwind instruction */ |
| 356 | insn = (*state->insn) >> (state->byte * 8); |
| 357 | |
| 358 | /* Update the location of the next instruction */ |
| 359 | if (state->byte == 0) { |
| 360 | state->byte = 3; |
| 361 | state->insn++; |
| 362 | state->entries--; |
| 363 | } else |
| 364 | state->byte--; |
| 365 | |
| 366 | return insn; |
| 367 | } |
| 368 | |
| 369 | /* Executes the next instruction on the list */ |
| 370 | static int |