mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 03:08:31 +00:00
Add MODE=optlinux build mode (#141)
This commit is contained in:
parent
226aaf3547
commit
67b5200a0b
111 changed files with 934 additions and 854 deletions
|
@ -99,7 +99,11 @@ relegated static const char *TinyStrSignal(int sig) {
|
|||
relegated static void ShowFunctionCalls(ucontext_t *ctx) {
|
||||
struct StackFrame *bp;
|
||||
struct StackFrame goodframe;
|
||||
if (ctx->uc_mcontext.rip && ctx->uc_mcontext.rbp) {
|
||||
if (!ctx->uc_mcontext.rip) {
|
||||
__printf("%s is NULL can't show backtrace\n", "RIP");
|
||||
} else if (!ctx->uc_mcontext.rbp) {
|
||||
__printf("%s is NULL can't show backtrace\n", "RBP");
|
||||
} else {
|
||||
goodframe.next = (struct StackFrame *)ctx->uc_mcontext.rbp;
|
||||
goodframe.addr = ctx->uc_mcontext.rip;
|
||||
bp = &goodframe;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue