cosmopolitan/build
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
..
bootstrap Choose better deterministic timestamp for zip 2022-03-16 16:59:45 -07:00
config.mk Introduce --strace flag for system call tracing 2022-03-18 18:07:28 -07:00
definitions.mk Make exciting improvements 2022-03-18 03:02:00 -07:00
findtmp Productionize new APE loader and more 2021-10-02 08:27:03 -07:00
functions.mk Initial import 2020-06-15 07:18:57 -07:00
gdb Fix redbean zip central directory lookup 2021-02-27 12:08:28 -08:00
getccversion Add binfmt_misc workaround detector to builds 2020-08-31 20:09:23 -07:00
getcompile Improve build system 2021-02-19 23:03:34 -08:00
hello Improve build system 2021-02-19 23:03:34 -08:00
htags Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
online.mk Improve build system 2021-02-19 23:03:34 -08:00
realify.sed Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
realify.sh Make more improvements 2020-09-28 01:20:34 -07:00
rules.mk Improve memory safety 2021-10-13 17:27:13 -07:00
sanitycheck Add binfmt_misc workaround detector to builds 2020-08-31 20:09:23 -07:00
sanitycheck2 Fix bug in code written a priori 2020-08-31 21:02:14 -07:00