This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
missing #include <dwarf.h> in libdw.h?
- From: Bill Williams <bill at cs dot wisc dot edu>
- To: "elfutils-devel at sourceware dot org" <elfutils-devel at sourceware dot org>
- Cc: Bill Williams <bill at cs dot wisc dot edu>
- Date: Tue, 03 Oct 2017 19:30:43 +0000
- Subject: missing #include <dwarf.h> in libdw.h?
- Accept-language: en-US
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=bill at cs dot wisc dot edu;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Hi all,
libdw.h uses the DW_CIE_ID_64 define from dwarf.h in a macro definition, but does not itself include dwarf.h. This makes the libdw.h header not self-contained if and only if your code uses the dwarf_cfi_cie_p macro. Is this behavior by design, or a bug?
--bw