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

Store valuable info when parsing. Treat luac file body as a main function. More...

#include <luac_common.h>

Public Attributes

ut64 offset
 proto offset in bytes More...
 
ut64 size
 current proto size More...
 
ut8proto_name
 current proto name More...
 
int name_size
 size of proto name More...
 
ut64 line_defined
 line number of function start More...
 
ut64 lastline_defined
 line number of function end More...
 
ut8 num_params
 number of parameters of this proto More...
 
ut8 is_vararg
 is variable arg? More...
 
ut8 max_stack_size
 max stack size More...
 
ut64 code_offset
 code section offset More...
 
ut64 code_size
 code section size More...
 
ut64 code_skipped
 opcode data offset to code_offset. More...
 
RzListconst_entries
 A list to store constant entries. More...
 
ut64 const_offset
 const section offset More...
 
ut64 const_size
 const section size More...
 
RzListupvalue_entries
 A list to store upvalue entries. More...
 
ut64 upvalue_offset
 upvalue section offset More...
 
ut64 upvalue_size
 upvalue section size More...
 
RzListproto_entries
 A list to store sub proto entries. More...
 
ut64 inner_proto_offset
 sub proto section offset More...
 
ut64 inner_proto_size
 sub proto section size More...
 
ut64 debug_offset
 debug section offset More...
 
ut64 debug_size
 debug section size More...
 
RzListline_info_entries
 A list to store line info entries. More...
 
RzListabs_line_info_entries
 A list to store absolutely line info entries. More...
 
RzListlocal_var_info_entries
 A list to store local var entries. More...
 
RzListdbg_upvalue_entries
 A list to store upvalue names. More...
 

Detailed Description

Store valuable info when parsing. Treat luac file body as a main function.

Definition at line 43 of file luac_common.h.

Member Data Documentation

◆ abs_line_info_entries

RzList* lua_proto_ex::abs_line_info_entries

A list to store absolutely line info entries.

Definition at line 81 of file luac_common.h.

Referenced by lua_free_proto_entry(), lua_new_proto_entry(), and lua_parse_debug().

◆ code_offset

ut64 lua_proto_ex::code_offset

code section offset

Definition at line 58 of file luac_common.h.

Referenced by _luac_build_info(), lua_parse_body_53(), lua_parse_body_54(), and luac_build_info().

◆ code_size

ut64 lua_proto_ex::code_size

code section size

Definition at line 59 of file luac_common.h.

Referenced by _luac_build_info(), and lua_parse_code().

◆ code_skipped

ut64 lua_proto_ex::code_skipped

opcode data offset to code_offset.

Definition at line 60 of file luac_common.h.

Referenced by lua_parse_code(), and luac_build_info().

◆ const_entries

RzList* lua_proto_ex::const_entries

A list to store constant entries.

Definition at line 63 of file luac_common.h.

Referenced by _luac_build_info(), lua_free_proto_entry(), lua_new_proto_entry(), and lua_parse_const_entry().

◆ const_offset

ut64 lua_proto_ex::const_offset

const section offset

Definition at line 64 of file luac_common.h.

Referenced by _luac_build_info(), lua_parse_body_53(), and lua_parse_body_54().

◆ const_size

ut64 lua_proto_ex::const_size

const section size

Definition at line 65 of file luac_common.h.

Referenced by _luac_build_info(), and lua_parse_consts().

◆ dbg_upvalue_entries

RzList* lua_proto_ex::dbg_upvalue_entries

A list to store upvalue names.

Definition at line 83 of file luac_common.h.

Referenced by _luac_build_info(), lua_free_proto_entry(), lua_new_proto_entry(), and lua_parse_debug().

◆ debug_offset

ut64 lua_proto_ex::debug_offset

debug section offset

Definition at line 78 of file luac_common.h.

Referenced by _luac_build_info(), lua_parse_body_53(), and lua_parse_body_54().

◆ debug_size

ut64 lua_proto_ex::debug_size

debug section size

Definition at line 79 of file luac_common.h.

Referenced by _luac_build_info(), and lua_parse_debug().

◆ inner_proto_offset

ut64 lua_proto_ex::inner_proto_offset

sub proto section offset

Definition at line 74 of file luac_common.h.

Referenced by _luac_build_info(), lua_parse_body_53(), and lua_parse_body_54().

◆ inner_proto_size

ut64 lua_proto_ex::inner_proto_size

sub proto section size

Definition at line 75 of file luac_common.h.

Referenced by _luac_build_info(), lua_parse_body_53(), and lua_parse_body_54().

◆ is_vararg

ut8 lua_proto_ex::is_vararg

is variable arg?

Definition at line 54 of file luac_common.h.

Referenced by lua_parse_body_53(), and lua_parse_body_54().

◆ lastline_defined

ut64 lua_proto_ex::lastline_defined

line number of function end

Definition at line 51 of file luac_common.h.

Referenced by lua_parse_line_defined().

◆ line_defined

ut64 lua_proto_ex::line_defined

line number of function start

Definition at line 50 of file luac_common.h.

Referenced by lua_parse_line_defined().

◆ line_info_entries

RzList* lua_proto_ex::line_info_entries

A list to store line info entries.

Definition at line 80 of file luac_common.h.

Referenced by lua_free_proto_entry(), lua_new_proto_entry(), and lua_parse_debug().

◆ local_var_info_entries

RzList* lua_proto_ex::local_var_info_entries

A list to store local var entries.

Definition at line 82 of file luac_common.h.

Referenced by _luac_build_info(), lua_free_proto_entry(), lua_new_proto_entry(), and lua_parse_debug().

◆ max_stack_size

ut8 lua_proto_ex::max_stack_size

max stack size

Definition at line 55 of file luac_common.h.

Referenced by lua_parse_body_53(), and lua_parse_body_54().

◆ name_size

int lua_proto_ex::name_size

size of proto name

Definition at line 48 of file luac_common.h.

Referenced by _luac_build_info(), and lua_parse_name().

◆ num_params

ut8 lua_proto_ex::num_params

number of parameters of this proto

Definition at line 53 of file luac_common.h.

Referenced by lua_parse_body_53(), and lua_parse_body_54().

◆ offset

ut64 lua_proto_ex::offset

proto offset in bytes

Definition at line 44 of file luac_common.h.

Referenced by _luac_build_info(), lua_parse_body_53(), and lua_parse_body_54().

◆ proto_entries

RzList* lua_proto_ex::proto_entries

A list to store sub proto entries.

Definition at line 73 of file luac_common.h.

Referenced by _luac_build_info(), lua_free_proto_entry(), lua_new_proto_entry(), and lua_parse_protos().

◆ proto_name

ut8* lua_proto_ex::proto_name

current proto name

Definition at line 47 of file luac_common.h.

Referenced by _luac_build_info(), lua_free_proto_entry(), and lua_parse_name().

◆ size

ut64 lua_proto_ex::size

current proto size

Definition at line 45 of file luac_common.h.

Referenced by _luac_build_info(), lua_parse_body_53(), lua_parse_body_54(), and lua_parse_protos().

◆ upvalue_entries

RzList* lua_proto_ex::upvalue_entries

A list to store upvalue entries.

Definition at line 68 of file luac_common.h.

Referenced by _luac_build_info(), lua_free_proto_entry(), lua_new_proto_entry(), and lua_parse_upvalue_entry().

◆ upvalue_offset

ut64 lua_proto_ex::upvalue_offset

upvalue section offset

Definition at line 69 of file luac_common.h.

Referenced by _luac_build_info(), lua_parse_body_53(), and lua_parse_body_54().

◆ upvalue_size

ut64 lua_proto_ex::upvalue_size

upvalue section size

Definition at line 70 of file luac_common.h.

Referenced by _luac_build_info(), and lua_parse_upvalues().


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