[PATCH] libdw: Add new function dwarf_getlocations.