---
name: "dwarf_get_die_infotypes_flag"
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_die_infotypes_flag"
---

# dwarf\_get\_die\_infotypes\_flag(3)

indicate the originating DWARF section for a DIE

## NAME

**dwarf\_get\_die\_infotypes\_flag** – indicate the originating DWARF section for a DIE

## LIBRARY

library “libdwarf”

## SYNOPSIS

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

*Dwarf\_Bool*\

**dwarf\_get\_die\_infotypes\_flag**(*Dwarf\_Die die*);

## DESCRIPTION

Function **dwarf\_get\_die\_infotypes\_flag**() returns a flag indicating the originating DWARF section for the debugging information entry referenced by argument *die*.

Argument *die* should reference a valid debugging information entry descriptor.

## RETURN VALUES

Function **dwarf\_get\_die\_infotypes\_flag**() returns a non-zero value if argument *die* originates in the “.debug\_info” section.

It returns zero if argument *die* originates in the “.debug\_types” section.

## ERRORS

Function **dwarf\_get\_die\_infotypes\_flag**() always succeeds.

## SEE ALSO

[dwarf(3)](/dwarf/3.md), [dwarf\_next\_cu\_header\_c(3)](/dwarf_next_cu_header_c/3.md), [dwarf\_offdie\_b(3)](/dwarf_offdie_b/3.md), [dwarf\_siblingof\_b(3)](/dwarf_siblingof_b/3.md)
