Skip to content

libdwarf that allocates and frees memory through user-specified functions

Notifications You must be signed in to change notification settings

debiatan/libdwarf_custom_allocator

Repository files navigation

This version of libdwarf allocates and frees memory through user-specified functions.

The only difference in the API is that the dwarf_init function takes now three extra parameters:

    int dwarf_init(int fd, 
                   Dwarf_Unsigned access, 
                   Dwarf_Handler errhand, 
                   Dwarf_Ptr errarg, 
                   Dwarf_Debug * ret_dbg, 
                   Dwarf_Error * error, 
                   MallocFunction *malloc_function, 
                   CallocFunction *calloc_function, 
                   FreeFunction *free_function);

For more details, visit: http://blog.debiatan.net/libdwarf_with_custom_memory_allocators.html

About

libdwarf that allocates and frees memory through user-specified functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published