mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-05 12:12:28 +00:00
Make exciting improvements
- Add Lua backtraces to redbean! - Wipe serving keys after redbean forks - Audit redbean to remove free via exit - Log SSL client ciphersuite preferences - Increase ASAN malloc() backtrace depth - Make GetSslRoots() behave as a singleton - Move leaks.c from LIBC_TESTLIB to LIBC_LOG - Add undocumented %n to printf() for newlines - Fix redbean memory leak reindexing inode change - Fix redbean memory leak with Fetch() DNS object - Restore original environ after __cxa_finalize() - Make backtrace always work after __cxa_finalize() - Introduce COUNTEXPR() diagnostic / benchmark tool - Fix a few more instances of errno being clobbered - Consolidate the ANSI color disabling internal APIs
This commit is contained in:
parent
f5831a62fa
commit
af645fcbec
61 changed files with 1354 additions and 814 deletions
|
@ -18,6 +18,20 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/log/log.h"
|
||||
|
||||
const char *GetAddr2linePath(void) {
|
||||
return commandvenv("ADDR2LINE", "addr2line");
|
||||
static const char *__addr2line;
|
||||
|
||||
static textstartup void __addr2line_init() {
|
||||
static bool once;
|
||||
if (!once) {
|
||||
__addr2line = commandvenv("ADDR2LINE", "addr2line");
|
||||
once = true;
|
||||
}
|
||||
}
|
||||
|
||||
const char *GetAddr2linePath(void) {
|
||||
return __addr2line;
|
||||
}
|
||||
|
||||
const void *const __addr2line_ctor[] initarray = {
|
||||
__addr2line_init,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue