<pedantic> The comment and the return inside the while loop was confusing me at first. It would maybe be slightly easier on the reader to replace the "return DWARF_END_ABBREV;" with a "break;", so that your "at the end already" logic triggers always instead of only on the second (or third, etc.) call. </pedantic>
I'm looking at http://git.fedorahosted.org/git/?p=elfutils.git;a=commitdiff;h=bd1d16c3a17c2... and I can't see what you're referring to. Are we talking about the same change?
Thanks, Roland