cosmopolitan/third_party/chibicc/test
Justine Tunney 14e192e5ba Introduce --strace flag for system call tracing
This is similar to the --ftrace (c function call trace) flag, except
it's less noisy since it only logs system calls to stderr. Having this
flag is valuable because (1) system call tracing tells us a lot about
the behavior of complex programs and (2) it's usually very hard to get
system call tracing on various operating systems, e.g. strace, ktrace,
dtruss, truss, nttrace, etc. Especially on Apple platforms where even
with the special boot trick, debuggers still aren't guaranteed to work.

    make -j8 o//examples
    o//examples/hello.com --strace

This is enabled by default in MODE=, MODE=opt, and MODE=dbg. In MODE=dbg
extra information will be printed.

    make -j8 MODE=dbg o/dbg/examples
    o/dbg/examples/hello.com --strace |& less

This change also changes:

- Rename IsText() → _istext()
- Rename IsUtf8() → _isutf8()
- Fix madvise() on Windows NT
- Fix empty string case of inet_ntop()
- vfork() wrapper now saves and restores errno
- Update xsigaction() to yoink syscall support
2022-03-18 18:07:28 -07:00
..
alignof_test.c Improve some unicode functions 2021-05-05 07:25:39 -07:00
alloca_test.c Enhance chibicc 2020-12-09 04:00:48 -08:00
arith_test.c Add chibicc 2020-12-06 16:20:21 -08:00
asm_test.c Further refine documentation 2020-12-27 17:05:03 -08:00
assert_test.c Enhance chibicc 2020-12-09 04:00:48 -08:00
attribute_test.c Auto-generate some documentation 2020-12-26 02:09:07 -08:00
bitfield_test.c Make minor improvements 2020-12-23 23:42:56 -08:00
builtin_test.c Improve documentation 2020-12-27 07:02:35 -08:00
cast_test.c Add chibicc 2020-12-06 16:20:21 -08:00
common.c Add chibicc 2020-12-06 16:20:21 -08:00
compat_test.c Add chibicc 2020-12-06 16:20:21 -08:00
complit_test.c Add chibicc 2020-12-06 16:20:21 -08:00
const_test.c Add chibicc 2020-12-06 16:20:21 -08:00
constexpr_test.c Add l suffix to yoink nop 2020-12-28 11:38:38 -08:00
control_test.c Add chibicc 2020-12-06 16:20:21 -08:00
dce_test.c Make minor improvements 2020-12-23 23:42:56 -08:00
decl_test.c Add chibicc 2020-12-06 16:20:21 -08:00
enum_test.c Add chibicc 2020-12-06 16:20:21 -08:00
extern_test.c Add chibicc 2020-12-06 16:20:21 -08:00
float_test.c Add chibicc 2020-12-06 16:20:21 -08:00
function_test.c Enhance chibicc 2020-12-09 04:00:48 -08:00
generic_test.c Add chibicc 2020-12-06 16:20:21 -08:00
include1.h Add chibicc 2020-12-06 16:20:21 -08:00
include2.h Add chibicc 2020-12-06 16:20:21 -08:00
include3.h Add chibicc 2020-12-06 16:20:21 -08:00
include4.h Add chibicc 2020-12-06 16:20:21 -08:00
initializer_test.c Hunt down some small bugs 2020-12-24 16:01:48 -08:00
int128_test.c Enhance chibicc 2020-12-09 04:00:48 -08:00
line_test.c Add chibicc 2020-12-06 16:20:21 -08:00
literal_test.c Add chibicc 2020-12-06 16:20:21 -08:00
macro_test.c Make minor improvements 2020-12-19 11:21:04 -08:00
offsetof_test.c Add chibicc 2020-12-06 16:20:21 -08:00
pointer_test.c Add chibicc 2020-12-06 16:20:21 -08:00
pragma-once_test.c Add chibicc 2020-12-06 16:20:21 -08:00
sizeof_test.c Make minor improvements 2020-12-23 23:42:56 -08:00
string_test.c Enhance chibicc 2020-12-09 04:00:48 -08:00
struct_test.c Integrate more chibicc changes 2020-12-09 13:53:02 -08:00
test.h Support malloc() on bare metal 2021-02-24 00:53:24 -08:00
test.mk Introduce --strace flag for system call tracing 2022-03-18 18:07:28 -07:00
tls_test.c.todo Add chibicc 2020-12-06 16:20:21 -08:00
typedef_test.c Add chibicc 2020-12-06 16:20:21 -08:00
typeof_test.c Enhance chibicc 2020-12-09 04:00:48 -08:00
unicode_test.c Add chibicc 2020-12-06 16:20:21 -08:00
union_test.c Add chibicc 2020-12-06 16:20:21 -08:00
usualconv_test.c Add chibicc 2020-12-06 16:20:21 -08:00
varargs_test.c Add chibicc 2020-12-06 16:20:21 -08:00
variable_test.c Add chibicc 2020-12-06 16:20:21 -08:00
vector_test.c Add chibicc 2020-12-06 16:20:21 -08:00
vla_test.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00