3 ms·
Just link to the code instead of executing it as a separate binary
by charcircuit 4y ago
Just link to the code instead of executing it as a separate binary
- notaplumber1 4y agoI'm pretty sure parsing ELF binaries is out of scope for kdump(1), sorry, but I don't think that's going to happen. It's not that difficult to run addr2line yourself with the information provided, and that's really for the best.
- charcircuit 4y agoYou are arguing for a worse UX because of an arbitrary reason. Just link against the code in addr2line. Providing a good UX should always be in scope for a project.
- sigjuice 4y agoHow does one "just link against the code in addr2line" ?
- charcircuit 4y agoYou rename them main symbol to something else then you just call it like any other library.
- sigjuice 4y agoaddr2line is unlikely to be a trivial self-contained program without dependencies.
- charcircuit 4y agoThen link to those dependencies.
- sigjuice 4y agoUnnecessary. Most people's hands will be able to type up the required shell one-liner to do this.
- tedunangst 4y agoWhy would openbsd want to taint kdump with GPL code?
- charcircuit 4y agoThen find or write an alternative. Asking people to run a command to see the file and line number is a joke.
- yakubin 4y agoLLVM provides llvm-addr2line and llvm-symbolizer. Of course I understand not wanting to link with LLVM code, even when the licence is ok. :)