Skip to content

Commit 0ed916a

Browse files
committed
Fix a bug in example code
1 parent 1029dcc commit 0ed916a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/crashreport2.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
│ • http://creativecommons.org/publicdomain/zero/1.0/ │
88
╚─────────────────────────────────────────────────────────────────*/
99
#endif
10-
#include "libc/calls/calls.h"
11-
#include "libc/math.h"
12-
#include "libc/runtime/runtime.h"
10+
#include <cosmo.h>
11+
#include <math.h>
1312

1413
void crash(long x0, long x1, long x2, //
1514
double v0, double v1, double v2) {

libc/log/showcrashreports.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ __static_yoink("__die"); // for backtracing
3333
__static_yoink("ShowBacktrace"); // for backtracing
3434
__static_yoink("GetSymbolTable"); // for backtracing
3535
__static_yoink("PrintBacktraceUsingSymbols"); // for backtracing
36+
__static_yoink("__demangle"); // for pretty c++ symbols
3637
__static_yoink("malloc_inspect_all"); // for asan memory origin
3738
__static_yoink("GetSymbolByAddr"); // for asan memory origin
3839
#endif

0 commit comments

Comments
 (0)