Skip to content

Modules

ζeh Matt edited this page Mar 9, 2019 · 2 revisions

Functions

getMain

Returns the module info from the debuggers child process.

-- @return table #module_info or nil on failure
modules.getMain()

findByAddress

Returns the module for the supplied address, gets the module where address is higher than base and smaller than base + size

-- @param address of module range as integer
-- @return table #module_info or nil on failure
modules.findByAddress(address)

findByName

Returns the module with the specified name, gets the module where address is higher than base and smaller than base + size

-- @param name of the module to look for as string
-- @return table #module_info or nil on failure
modules.findByName(name)

getList

Returns a table of all modules loaded.

-- @return table containing multiple #module_info
modules.getList()

Types

module_info

Table structure of module_info

{
    ['base'], -- Base of module
    ['name'], -- Name of module
    ['entrypoint'], -- Entrypoint, can be 0
    ['path'], -- Path of loaded modules
    ['size'], -- Image size
    ['sections'] = { module_section_info... }
}

module_section_info

Table structure of module_section_info

{
    ['base'], -- Section address
    ['size'], -- Section size
    ['name'], -- Section name
}
Clone this wiki locally