mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-05 18:58:30 +00:00
Improve debug binary location detection
This commit is contained in:
parent
68c7c9c1e0
commit
7a9e176ecf
17 changed files with 92 additions and 50 deletions
|
@ -229,8 +229,8 @@ static relegated void __oncrash_impl(int sig, struct siginfo *si,
|
|||
Append(b, " %s %s %s %s\n", names.sysname, names.version, names.nodename,
|
||||
names.release);
|
||||
Append(
|
||||
b, " cosmoaddr2line %s%s %lx %s\n", __argv[0],
|
||||
endswith(__argv[0], ".com") ? ".dbg" : "", ctx ? ctx->uc_mcontext.PC : 0,
|
||||
b, " cosmoaddr2line %s %lx %s\n", FindDebugBinary(),
|
||||
ctx ? ctx->uc_mcontext.PC : 0,
|
||||
DescribeBacktrace(ctx ? (struct StackFrame *)ctx->uc_mcontext.BP
|
||||
: (struct StackFrame *)__builtin_frame_address(0)));
|
||||
if (ctx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue