---
name: "dwarf_reset_section_bytes"
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_reset_section_bytes"
---

# dwarf\_reset\_section\_bytes(3)

reset the internal state of a producer instance

## NAME

**dwarf\_reset\_section\_bytes** – reset the internal state of a producer instance

## LIBRARY

library “libdwarf”

## SYNOPSIS

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

*void*\

**dwarf\_reset\_section\_bytes**(*Dwarf\_P\_Debug dbg*);

## DESCRIPTION

Function **dwarf\_reset\_section\_bytes**() resets the internal state of a DWARF producer instance, so that the next call to the function [dwarf\_get\_section\_bytes(3)](/dwarf_get_section_bytes/3.md) will return the byte stream for the first generated section, and the next call to the function [dwarf\_get\_relocation\_info(3)](/dwarf_get_relocation_info/3.md) will return the first relocation array for the DWARF producer instance.

Argument *dbg* should reference a DWARF producer instance allocated using [dwarf\_producer\_init(3)](/dwarf_producer_init/3.md) or [dwarf\_producer\_init\_b(3)](/dwarf_producer_init_b/3.md).

## RETURN VALUES

Function **dwarf\_reset\_section\_bytes**() has no return value.

## SEE ALSO

[dwarf(3)](/dwarf/3.md), [dwarf\_get\_relocation\_info(3)](/dwarf_get_relocation_info/3.md), [dwarf\_get\_section\_bytes(3)](/dwarf_get_section_bytes/3.md), [dwarf\_producer\_init(3)](/dwarf_producer_init/3.md), [dwarf\_producer\_init\_b(3)](/dwarf_producer_init_b/3.md), [dwarf\_transform\_to\_disk\_form(3)](/dwarf_transform_to_disk_form/3.md)
