libdwarf: Reading .debug_names data

libdwarf

Loading...
Searching...
No Matches
Reading .debug_names data

Example access to .debug_names.

Example access to .debug_names.

This is accessing DWARF5 .debug_names, a section intended to provide fast access to DIEs.

It bears a strong resemblance to what libdwarf does in dwarf_global.c.

Making this a single (long) function here, though that is not how libdwarf or dwarfdump are written.

That is just one possible sort of access. There are many, and we would love to hear suggestions for specific new API functions in the library.

There is a wealth of information in .debug_names and the following is all taken care of for you by dwarf_get_globals().

*/
#define MAXPAIRS 8 /* The standard defines 5.