Skip to content

Cross References

ζeh Matt edited this page Apr 9, 2019 · 3 revisions

Functions

analyze

Analyses cross references.

-- @param [waitForDebugger=true] if false then it will not wait for the analysis to finish.
-- @return boolean success
xrefs.analyze(waitForDebugger)

get

Retrieves the cross references for the specified address. When extended is set to true it will result xreference_extended

NOTE: It is required to call analyze before otherwise will return empty results.

-- @param addr 
-- @param [extended=false]
-- @return table xreference or xreference_extended
xrefs.get(addr, extended)

add

Adds a new cross reference.

-- @param addr Source address
-- @param to Target address
-- @return boolean
xrefs.add(addr, to)

Types

xreference

Table containing a list of references.

{
    [1] = <address>,
    [2] = <address>,
    ...
}

xreference_extended

Table containing a list of references and reference type.

{
    [1] = {
        ['type'] = <xref_type>,
        ['address'] = <address>
    },
    ...
}
Clone this wiki locally