This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

dwfl_attach_state alternative taking Ebl?


Hey all,

would you be willing to accept a patch that adds an alternative to 
dwfl_attach_state taking an Ebl pointer instead of the Elf* to guess the 
architecture from?

This would simplify the code for cases where we know the architecture, but 
don't necessarily have a corresponding Elf* at hand (yet). If there'd be a 
version that takes the Ebl pointer directly, one could use e.g. 
ebl_openbackend_emulation or _machine to find the backend handle for the known 
target architecture directly.

If this would be acceptable, I will write a patch up for this. I would need 
suggestions for a fitting name though, in C++ I'd simply use an overload but 
here with plain C... ;-)

Thanks
-- 
Milian Wolff
mail@milianw.de
http://milianw.de


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]