Lines Matching refs:lh
1547 struct line_head lh;
1580 lh.total_length = read_4_bytes (abfd, line_ptr);
1583 if (lh.total_length == 0xffffffff)
1585 lh.total_length = read_8_bytes (abfd, line_ptr);
1589 else if (lh.total_length == 0 && unit->addr_size == 8)
1592 lh.total_length = read_4_bytes (abfd, line_ptr);
1596 line_end = line_ptr + lh.total_length;
1597 lh.version = read_2_bytes (abfd, line_ptr);
1598 if (lh.version < 2 || lh.version > 4)
1601 (_("Dwarf Error: Unhandled .debug_line version %d."), lh.version);
1607 lh.prologue_length = read_4_bytes (abfd, line_ptr);
1609 lh.prologue_length = read_8_bytes (abfd, line_ptr);
1611 lh.minimum_instruction_length = read_1_byte (abfd, line_ptr);
1613 if (lh.version >= 4)
1615 lh.maximum_ops_per_insn = read_1_byte (abfd, line_ptr);
1619 lh.maximum_ops_per_insn = 1;
1620 if (lh.maximum_ops_per_insn == 0)
1627 lh.default_is_stmt = read_1_byte (abfd, line_ptr);
1629 lh.line_base = read_1_signed_byte (abfd, line_ptr);
1631 lh.line_range = read_1_byte (abfd, line_ptr);
1633 lh.opcode_base = read_1_byte (abfd, line_ptr);
1635 amt = lh.opcode_base * sizeof (unsigned char);
1636 lh.standard_opcode_lengths = (unsigned char *) bfd_alloc (abfd, amt);
1638 lh.standard_opcode_lengths[0] = 1;
1640 for (i = 1; i < lh.opcode_base; ++i)
1642 lh.standard_opcode_lengths[i] = read_1_byte (abfd, line_ptr);
1712 int is_stmt = lh.default_is_stmt;
1728 if (op_code >= lh.opcode_base)
1731 adj_opcode = op_code - lh.opcode_base;
1732 if (lh.maximum_ops_per_insn == 1)
1733 address += (adj_opcode / lh.line_range
1734 * lh.minimum_instruction_length);
1737 address += ((op_index + adj_opcode / lh.line_range)
1738 / lh.maximum_ops_per_insn
1739 * lh.minimum_instruction_length);
1740 op_index = ((op_index + adj_opcode / lh.line_range)
1741 % lh.maximum_ops_per_insn);
1743 line += lh.line_base + (adj_opcode % lh.line_range);
1837 if (lh.maximum_ops_per_insn == 1)
1838 address += (lh.minimum_instruction_length
1845 address = ((op_index + adjust) / lh.maximum_ops_per_insn
1846 * lh.minimum_instruction_length);
1847 op_index = (op_index + adjust) % lh.maximum_ops_per_insn;
1878 if (lh.maximum_ops_per_insn == 1)
1879 address += (lh.minimum_instruction_length
1880 * ((255 - lh.opcode_base) / lh.line_range));
1883 bfd_vma adjust = ((255 - lh.opcode_base) / lh.line_range);
1884 address += (lh.minimum_instruction_length
1886 / lh.maximum_ops_per_insn));
1887 op_index = (op_index + adjust) % lh.maximum_ops_per_insn;
1897 for (i = 0; i < lh.standard_opcode_lengths[op_code]; i++)