---
name: "unw_get_proc_info_in_range"
section: "3"
platform: "linux"
package: "libunwind"
version: "1.8.3-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/unw_get_proc_info_in_range"
---

# unw\_get\_proc\_info\_in\_range(3)

## NAME

unw\_get\_proc\_info\_in\_range -- get procedure info in IP range and a frame index table

## SYNOPSIS

\#include \<libunwind.h\>\

int unw\_get\_proc\_info\_in\_range(unw\_word\_t start\_ip, unw\_word\_t end\_ip, unw\_word\_t eh\_frame\_table, unw\_word\_t eh\_frame\_table\_len, unw\_word\_t exidx\_frame\_table, unw\_word\_t exidx\_frame\_table\_len,, unw\_addr\_space\_t \*as, void \*arg);\

## DESCRIPTION

The unw\_get\_proc\_info\_in\_range() routine returns the same  kind of auxiliary information about a procedure as  unw\_get\_proc\_info\_by\_ip(), except that the info is looked up in  instruction pointer (IP) range and frame table instead of just at IP. This  is equally flexible because it is possible to look up the info for an arbitrary  procedure, even if it is not part of the current call chain. However, since it  is more flexible, it also tends to run slower (and often much slower)  than unw\_get\_proc\_info().

## RETURN VALUE

On successful completion, unw\_get\_proc\_info\_in\_range() returns 0. Otherwise the negative value of one of the error-codes  below is returned.

## THREAD AND SIGNAL SAFETY

unw\_get\_proc\_info\_in\_range() is thread safe. If the local  address space is passed in argument as, this routine is also  safe to use from a signal handler.

## ERRORS

- UNW\_EUNSPEC

   An unspecified error occurred.

- UNW\_ENOINFO

   Libunwind was unable to locate  unwind-info for the procedure.

- UNW\_EBADVERSION

   The unwind-info for the procedure has  version or format that is not understood by libunwind.

- UNW\_EINVAL

   An unsupported table encoding was specified.

In addition, unw\_get\_proc\_info\_by\_ip() may return any  error returned by the access\_mem() callback (see  unw\_create\_addr\_space(3libunwind)).

## SEE ALSO

libunwind(3libunwind), unw\_get\_proc\_info\_in\_range(3libunwind), unw\_create\_addr\_space(3libunwind), unw\_get\_proc\_name(3libunwind), unw\_get\_proc\_info(3libunwind)

## AUTHOR

David Mosberger-Tang\
 Email: **dmosberger@gmail.com**\
 WWW: **http://www.nongnu.org/libunwind/**.
