Function
Gumprocess_find_function_range
Declaration [src]
gboolean
gum_process_find_function_range (
gconstpointer address,
GumMemoryRange* range
)
Description [src]
Resolves the code range that address belongs to, derived from the platform’s
unwind tables. A function whose body is split across several ranges (e.g. a
cold .text.unlikely fragment) is represented by one range per fragment; this
returns the one covering address. Where no unwind information is available
(e.g. a leaf function, or a target lacking unwind tables altogether), the
containing symbol’s bounds are used as a best-effort fallback.
Parameters
address-
Type:
gconstpointerAn address belonging to the function.
The argument can be NULL.The data is owned by the caller of the function. range-
Type:
GumMemoryRangeThe function’s contiguous code range covering
address.The argument will be set by the function. The returned data is owned by the function.