Lines Matching refs:regnum
55 set_reg (dwarf_state_record_t *sr, unw_word_t regnum, dwarf_where_t where, in set_reg() argument
58 sr->rs_current.reg.where[regnum] = where; in set_reg()
59 sr->rs_current.reg.val[regnum] = val; in set_reg()
117 unw_word_t operand = 0, regnum, val, len; in run_cfi_program() local
176 regnum = operand; in run_cfi_program()
177 if (regnum >= DWARF_NUM_PRESERVED_REGS) in run_cfi_program()
180 (unsigned int) regnum); in run_cfi_program()
186 set_reg (sr, regnum, DWARF_WHERE_CFAREL, val * dci->data_align); in run_cfi_program()
188 (long) regnum, (long) (val * dci->data_align)); in run_cfi_program()
192 if (((ret = read_regnum (as, a, addr, ®num, arg)) < 0) in run_cfi_program()
195 set_reg (sr, regnum, DWARF_WHERE_CFAREL, val * dci->data_align); in run_cfi_program()
197 (long) regnum, (long) (val * dci->data_align)); in run_cfi_program()
201 if (((ret = read_regnum (as, a, addr, ®num, arg)) < 0) in run_cfi_program()
204 set_reg (sr, regnum, DWARF_WHERE_CFAREL, val * dci->data_align); in run_cfi_program()
206 (long) regnum, (long) (val * dci->data_align)); in run_cfi_program()
210 regnum = operand; in run_cfi_program()
211 if (regnum >= DWARF_NUM_PRESERVED_REGS) in run_cfi_program()
214 (unsigned int) regnum); in run_cfi_program()
218 sr->rs_current.reg.where[regnum] = sr->rs_initial.reg.where[regnum]; in run_cfi_program()
219 sr->rs_current.reg.val[regnum] = sr->rs_initial.reg.val[regnum]; in run_cfi_program()
220 Debug (15, "CFA_restore r%lu\n", (long) regnum); in run_cfi_program()
224 if ((ret = dwarf_read_uleb128 (as, a, addr, ®num, arg)) < 0) in run_cfi_program()
226 if (regnum >= DWARF_NUM_PRESERVED_REGS) in run_cfi_program()
229 "DW_CFA_restore_extended\n", (unsigned int) regnum); in run_cfi_program()
233 sr->rs_current.reg.where[regnum] = sr->rs_initial.reg.where[regnum]; in run_cfi_program()
234 sr->rs_current.reg.val[regnum] = sr->rs_initial.reg.val[regnum]; in run_cfi_program()
235 Debug (15, "CFA_restore_extended r%lu\n", (long) regnum); in run_cfi_program()
250 if ((ret = read_regnum (as, a, addr, ®num, arg)) < 0) in run_cfi_program()
252 set_reg (sr, regnum, DWARF_WHERE_UNDEF, 0); in run_cfi_program()
253 Debug (15, "CFA_undefined r%lu\n", (long) regnum); in run_cfi_program()
257 if ((ret = read_regnum (as, a, addr, ®num, arg)) < 0) in run_cfi_program()
259 set_reg (sr, regnum, DWARF_WHERE_SAME, 0); in run_cfi_program()
260 Debug (15, "CFA_same_value r%lu\n", (long) regnum); in run_cfi_program()
264 if (((ret = read_regnum (as, a, addr, ®num, arg)) < 0) in run_cfi_program()
267 set_reg (sr, regnum, DWARF_WHERE_REG, val); in run_cfi_program()
268 Debug (15, "CFA_register r%lu to r%lu\n", (long) regnum, (long) val); in run_cfi_program()
295 if (((ret = read_regnum (as, a, addr, ®num, arg)) < 0) in run_cfi_program()
298 set_reg (sr, DWARF_CFA_REG_COLUMN, DWARF_WHERE_REG, regnum); in run_cfi_program()
300 Debug (15, "CFA_def_cfa r%lu+0x%lx\n", (long) regnum, (long) val); in run_cfi_program()
304 if (((ret = read_regnum (as, a, addr, ®num, arg)) < 0) in run_cfi_program()
307 set_reg (sr, DWARF_CFA_REG_COLUMN, DWARF_WHERE_REG, regnum); in run_cfi_program()
311 (long) regnum, (long) (val * dci->data_align)); in run_cfi_program()
315 if ((ret = read_regnum (as, a, addr, ®num, arg)) < 0) in run_cfi_program()
317 set_reg (sr, DWARF_CFA_REG_COLUMN, DWARF_WHERE_REG, regnum); in run_cfi_program()
318 Debug (15, "CFA_def_cfa_register r%lu\n", (long) regnum); in run_cfi_program()
338 if (((ret = read_regnum (as, a, addr, ®num, arg)) < 0) in run_cfi_program()
341 set_reg (sr, regnum, DWARF_WHERE_VAL, val * dci->data_align); in run_cfi_program()
343 (long) regnum, (long) (val * dci->data_align)); in run_cfi_program()
347 if (((ret = read_regnum (as, a, addr, ®num, arg)) < 0) in run_cfi_program()
350 set_reg (sr, regnum, DWARF_WHERE_VAL, val * dci->data_align); in run_cfi_program()
352 (long) regnum, (long) (val * dci->data_align)); in run_cfi_program()
368 if ((ret = read_regnum (as, a, addr, ®num, arg)) < 0) in run_cfi_program()
372 set_reg (sr, regnum, DWARF_WHERE_EXPR, *addr); in run_cfi_program()
378 (long) regnum, (long) addr, (long) len); in run_cfi_program()
383 if ((ret = read_regnum (as, a, addr, ®num, arg)) < 0) in run_cfi_program()
387 set_reg (sr, regnum, DWARF_WHERE_VAL_EXPR, *addr); in run_cfi_program()
393 (long) regnum, (long) addr, (long) len); in run_cfi_program()
408 if (((ret = read_regnum (as, a, addr, ®num, arg)) < 0) in run_cfi_program()
411 set_reg (sr, regnum, DWARF_WHERE_CFAREL, ~(val * dci->data_align) + 1); in run_cfi_program()
420 for (regnum = 16; regnum < 32; ++regnum) in run_cfi_program()
421 set_reg (sr, regnum, DWARF_WHERE_CFAREL, in run_cfi_program()
422 (regnum - 16) * sizeof (unw_word_t)); in run_cfi_program()
788 unw_word_t regnum, addr, cfa, ip; in apply_reg_state() local
828 regnum = dwarf_to_unw_regnum (rs->reg.val[DWARF_CFA_REG_COLUMN]); in apply_reg_state()
829 if ((ret = unw_get_reg ((unw_cursor_t *) c, regnum, &cfa)) < 0) in apply_reg_state()