Rizin
unix-like reverse engineering framework and cli tools
rz_bin_source_line_sample_t Struct Reference

A single sample of source line info for a specific address. More...

#include <rz_bin.h>

Public Attributes

ut64 address
 
ut32 line
 
ut32 column
 
const char * file
 

Detailed Description

A single sample of source line info for a specific address.

If at least one of the line, column and file members is not 0/NULL, such a sample specifies the line info for all addresses greater or equal to address until the next address that has another sample.

If all the members line, column and file are 0/NULL, then this is a closing sample, indicating that the previous entry stops here. The address is the first address not contained by the previous record. Such a case corresponds for example to what DW_LNE_end_sequence emits in Dwarf. Use rz_bin_source_line_sample_is_closing() for checking if a sample is closing.

Definition at line 441 of file rz_bin.h.

Member Data Documentation

◆ address

ut64 rz_bin_source_line_sample_t::address

The first address that is covered by the given line and column, or, if all other members are 0/NULL, this is the first.

Definition at line 446 of file rz_bin.h.

Referenced by capstone.CsInsn::__repr__(), line_sample_cmp(), rz_bin_source_line_info_builder_build_and_fini(), rz_bin_source_line_info_builder_push_sample(), and rz_bin_source_line_info_get_next().

◆ column

ut32 rz_bin_source_line_sample_t::column

If > 0, then indicates the column. If == 0, then no column information is known.

32bit for this value is an intentional decision to lower memory consumption.

Definition at line 462 of file rz_bin.h.

Referenced by line_sample_cmp(), and rz_bin_source_line_info_builder_push_sample().

◆ file

const char* rz_bin_source_line_sample_t::file

Filename, which must come out of the const pool of the owning RzBinSourceLineInfo or RzBinSourceLineInfoBuilder.

Definition at line 468 of file rz_bin.h.

Referenced by line_sample_cmp(), and rz_bin_source_line_info_builder_push_sample().

◆ line

ut32 rz_bin_source_line_sample_t::line

If > 0, then indicates the line for the given address and the following. If == 0, then indicates that no line information is known.

32bit for this value is an intentional decision to lower memory consumption.

Definition at line 454 of file rz_bin.h.

Referenced by line_sample_cmp(), and rz_bin_source_line_info_builder_push_sample().


The documentation for this struct was generated from the following file: