Skip to main content

DESC_INSPECT_FUNCTION

Constant DESC_INSPECT_FUNCTION 

Source
pub const DESC_INSPECT_FUNCTION: &str = "\
Decompile and describe one function in the attached program. `function` is EITHER a symbol name \
(e.g. \"main\") OR a canonical address. Addresses use the form space:offset in hex — the default code \
space renders as a bare 0x value like \"0x00401000\", and other spaces keep their prefix like \
\"EXTERNAL:0x00000001\". If a name matches multiple functions you get an AMBIGUOUS_SYMBOL error listing \
each candidate's address — re-call with the disambiguating address. The reply includes the decompiled \
C (capped from the top by max_c_lines, default 2000; c_truncated=true means the body was longer — raise \
max_c_lines to see more), the signature, calling convention, thunk info, and callers/callees. A caller \
or callee with external=true is an imported library function with NO body — identify it by name; do not \
pass it back to inspect_function. To reach a function you can't name, navigate callers/callees from one \
you can (e.g. an entry point or export).";