Date: 2009-08-16 09:32:36 +0000 (Sun, 16 Aug 2009)
Changed dwarf_init to take two more args: error handler, and error
If an error occurs in an API, error handling code will copy error
information to application supplied Dwarf_Error buffer, call
error handler installed by application. If application has not
provided Dwarf_Error buffer nor error handler, libdwarf will call
abort(3) to terminate. (This is the same behaviour as SGI libdwarf)
SGI libdwarf's error handler is specific per Dwarf_Debug, while our
error handler is global. The advantage of global error handler is
that in some error cases there is no way to obtain related Dwarf_Debug,
per Dwarf_Debug error handler can not be called in such situation,
while global error handler can. The disadvantage is that application
can only install one error handler for all Dwarf_Debug.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.