---
name: "dwarf_get_cie_of_fde"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/dwarf_get_cie_of_fde"
---

# dwarf\_get\_cie\_of\_fde(3)

retrieve CIE descriptor

## NAME

**dwarf\_get\_cie\_of\_fde** – retrieve CIE descriptor

## LIBRARY

library “libdwarf”

## SYNOPSIS

**#include \<libdwarf.h\>**

*int*\

**dwarf\_get\_cie\_of\_fde**(*Dwarf\_Fde fde*, *Dwarf\_Cie \*ret\_cie*, *Dwarf\_Error \*err*);

## DESCRIPTION

Function **dwarf\_get\_cie\_of\_fde**() retrieves the CIE descriptor associated with a given FDE descriptor.

Argument *fde* should reference a valid FDE descriptor.

Argument *ret\_cie* should point to a location that will hold the returned CIE descriptor.

If argument *err* is not NULL, it will be used to store error information in case of an error.

## RETURN VALUES

Function **dwarf\_get\_cie\_of\_fde**() returns DW\_DLV\_OK when it succeeds. In case of an error, it returns DW\_DLV\_ERROR and sets the argument *err*.

## ERRORS

Function **dwarf\_get\_cie\_of\_fde**() can fail with:

- \[DW\_DLE\_ARGUMENT\]

  Either of arugments *fde* or *ret\_cie* was NULL.

## SEE ALSO

[dwarf(3)](/dwarf/3.md), [dwarf\_get\_cie\_index(3)](/dwarf_get_cie_index/3.md), [dwarf\_get\_cie\_info(3)](/dwarf_get_cie_info/3.md), [dwarf\_get\_fde\_at\_pc(3)](/dwarf_get_fde_at_pc/3.md), [dwarf\_get\_fde\_n(3)](/dwarf_get_fde_n/3.md)
