diff --git a/examples/crashreport2.cc b/examples/crashreport2.cc index d57f3bdea..094a9e21b 100644 --- a/examples/crashreport2.cc +++ b/examples/crashreport2.cc @@ -7,9 +7,8 @@ │ • http://creativecommons.org/publicdomain/zero/1.0/ │ ╚─────────────────────────────────────────────────────────────────*/ #endif -#include "libc/calls/calls.h" -#include "libc/math.h" -#include "libc/runtime/runtime.h" +#include +#include void crash(long x0, long x1, long x2, // double v0, double v1, double v2) { diff --git a/libc/log/showcrashreports.c b/libc/log/showcrashreports.c index bd68fe1b5..ff7ea1132 100644 --- a/libc/log/showcrashreports.c +++ b/libc/log/showcrashreports.c @@ -33,6 +33,7 @@ __static_yoink("__die"); // for backtracing __static_yoink("ShowBacktrace"); // for backtracing __static_yoink("GetSymbolTable"); // for backtracing __static_yoink("PrintBacktraceUsingSymbols"); // for backtracing +__static_yoink("__demangle"); // for pretty c++ symbols __static_yoink("malloc_inspect_all"); // for asan memory origin __static_yoink("GetSymbolByAddr"); // for asan memory origin #endif