dwarf_errmsg(3)

dwarf_errmsg3

Retrieve a human-readable string corresponding to a dwarf_error instance

Usage

#include <libdwarf.h>

const char *

dwarf_errmsg(Dwarf_Error err);

Library

library “libdwarf”

Overview

Function dwarf_errmsg() returns aNUL- terminated string for the error denoted by argument err.

Argument err should be a valid handle to a Dwarf_Error instance.

Memory Management

The returned pointer should not be freed using free(3) or dwarf_dealloc(3).

Return values

Function dwarf_errmsg() returns a pointer to aNUL- terminated string.

Releases

25 releases since FreeBSD 11.0-RELEASE; the text changed 1 time.

  1. 11.0–12.0
  2. 12.1–16.0

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.