Community
Participate
Working Groups
Right now, both class implemenations uses a hardcoded set of default options to call the underlaying 'addr2line' and 'c++filt' utilities. If anything goes wrong calling the tools, the constructor of these classes throws an exception which stops the instanciation of these classes. The implementation of both classes make it impossible to extend the functionality and adjust the command line to the need of specific toolchains requiring different command line options to call both tools successfully. A more flexible implementation the one of the Objdump would be highly welcome.
Created attachment 8228 [details] Synchronize implementations of Addr2line/CPPFilt/Objdump to be extendable
Objdump.init(...) used default package visibility. To allow the possiblity of changing command line parameters for objdump by contributors (plugins) outside of CDT, the visibility of Objdump.init(...) needs to be at least protected.
Ok the patch looks good, let me get back to you on Monday.
Fix in the head. Thanks for the patch.