GDB (xrefs)
|
#include "line-header.h"
Public Member Functions | |
line_header (const char *comp_dir) | |
line_header (sect_offset sect_off, bool offset_in_dwz) | |
void | add_include_dir (const char *include_dir) |
void | add_file_name (const char *name, dir_index d_index, unsigned int mod_time, unsigned int length) |
const char * | include_dir_at (dir_index index) const |
bool | is_valid_file_index (int file_index) const |
file_entry * | file_name_at (file_name_index index) |
const file_entry * | file_name_at (file_name_index index) const |
std::vector< file_entry > & | file_names () |
const std::vector< file_entry > & | file_names () const |
int | file_names_size () const |
std::string | file_file_name (const file_entry &fe) const |
const char * | comp_dir () const |
Public Attributes | |
sect_offset | sect_off {} |
unsigned | offset_in_dwz: 1 |
unsigned short | version {} |
unsigned char | minimum_instruction_length {} |
unsigned char | maximum_ops_per_instruction {} |
unsigned char | default_is_stmt {} |
int | line_base {} |
unsigned char | line_range {} |
unsigned char | opcode_base {} |
std::unique_ptr< unsigned char[]> | standard_opcode_lengths |
const gdb_byte * | statement_program_start {} |
const gdb_byte * | statement_program_end {} |
Private Attributes | |
std::vector< const char * > | m_include_dirs |
std::vector< file_entry > | m_file_names |
const char * | m_comp_dir = nullptr |
Definition at line 71 of file line-header.h.
|
inlineexplicit |
Definition at line 76 of file line-header.h.
|
inline |
Definition at line 82 of file line-header.h.
void line_header::add_file_name | ( | const char * | name, |
dir_index | d_index, | ||
unsigned int | mod_time, | ||
unsigned int | length ) |
Definition at line 46 of file line-header.c.
References dwarf_line_debug, file_names_size(), gdb_printf(), gdb_stdlog, m_file_names, name, and version.
Referenced by dwarf_decode_lines_1().
void line_header::add_include_dir | ( | const char * | include_dir | ) |
Definition at line 30 of file line-header.c.
References dwarf_line_debug, gdb_printf(), gdb_stdlog, m_include_dirs, and version.
|
inline |
Definition at line 180 of file line-header.h.
References m_comp_dir.
std::string line_header::file_file_name | ( | const file_entry & | fe | ) | const |
Definition at line 61 of file line-header.c.
References file_entry::include_dir(), file_entry::index, is_valid_file_index(), m_comp_dir, and file_entry::name.
Referenced by dwarf2_start_subfile(), and macro_start_file().
|
inline |
Definition at line 117 of file line-header.h.
References m_file_names, and version.
Referenced by lnp_state_machine::current_file(), file_name_at(), macro_start_file(), and new_symbol().
|
inline |
Definition at line 130 of file line-header.h.
References file_name_at().
|
inline |
Definition at line 139 of file line-header.h.
References m_file_names.
Referenced by dwarf_decode_lines(), process_structure_scope(), and dwarf2_cu::setup_type_unit_groups().
|
inline |
Definition at line 142 of file line-header.h.
References m_file_names.
|
inline |
Definition at line 165 of file line-header.h.
References m_file_names.
Referenced by add_file_name(), is_valid_file_index(), and dwarf2_cu::setup_type_unit_groups().
|
inline |
Definition at line 96 of file line-header.h.
References m_include_dirs, and version.
Referenced by dwarf2_start_subfile(), and file_entry::include_dir().
|
inline |
Definition at line 108 of file line-header.h.
References file_names_size(), and version.
Referenced by file_file_name().
unsigned char line_header::default_is_stmt {} |
Definition at line 154 of file line-header.h.
int line_header::line_base {} |
Definition at line 155 of file line-header.h.
Referenced by lnp_state_machine::handle_special_opcode().
unsigned char line_header::line_range {} |
Definition at line 156 of file line-header.h.
Referenced by lnp_state_machine::handle_const_add_pc(), and lnp_state_machine::handle_special_opcode().
|
private |
Definition at line 196 of file line-header.h.
Referenced by comp_dir(), and file_file_name().
|
private |
Definition at line 192 of file line-header.h.
Referenced by add_file_name(), file_name_at(), file_names(), file_names(), and file_names_size().
|
private |
Definition at line 186 of file line-header.h.
Referenced by add_include_dir(), and include_dir_at().
unsigned char line_header::maximum_ops_per_instruction {} |
Definition at line 153 of file line-header.h.
Referenced by lnp_state_machine::handle_advance_pc(), lnp_state_machine::handle_const_add_pc(), and lnp_state_machine::handle_special_opcode().
unsigned char line_header::minimum_instruction_length {} |
Definition at line 152 of file line-header.h.
Referenced by lnp_state_machine::handle_advance_pc(), lnp_state_machine::handle_const_add_pc(), and lnp_state_machine::handle_special_opcode().
unsigned line_header::offset_in_dwz |
Definition at line 149 of file line-header.h.
Referenced by line_header_eq_voidp(), and line_header_hash().
unsigned char line_header::opcode_base {} |
Definition at line 157 of file line-header.h.
Referenced by dwarf_decode_lines_1(), lnp_state_machine::handle_const_add_pc(), and lnp_state_machine::handle_special_opcode().
sect_offset line_header::sect_off {} |
Definition at line 146 of file line-header.h.
Referenced by line_header_eq_voidp(), and line_header_hash().
std::unique_ptr<unsigned char[]> line_header::standard_opcode_lengths |
Definition at line 163 of file line-header.h.
Referenced by dwarf_decode_lines_1().
const gdb_byte * line_header::statement_program_end {} |
Definition at line 170 of file line-header.h.
Referenced by dwarf_decode_lines_1().
const gdb_byte* line_header::statement_program_start {} |
Definition at line 170 of file line-header.h.
Referenced by dwarf_decode_lines_1().
unsigned short line_header::version {} |
Definition at line 151 of file line-header.h.
Referenced by add_file_name(), add_include_dir(), file_name_at(), include_dir_at(), and is_valid_file_index().