Get strace.com working beautifully

This commit is contained in:
Justine Tunney 2022-04-06 09:12:05 -07:00
parent 82f2e758c7
commit f59b5dbd7c
7 changed files with 544 additions and 474 deletions

View file

@ -62,6 +62,7 @@ static const char *__ptrace_describe_request(int x) {
*
* @param request can be PTRACE_xxx
* @note de facto linux only atm
* @vforksafe
*/
long ptrace(int request, ...) {
// TODO(jart): FreeBSD addr and data args are different

View file

@ -90,7 +90,7 @@ o//libc/intrin/memcmp.o \
o//libc/intrin/memset.o \
o//libc/intrin/memmove.o: \
OVERRIDE_CFLAGS += \
-O3
-O2
o/$(MODE)/libc/intrin/bzero.o \
o/$(MODE)/libc/intrin/memcmp.o \

View file

@ -76,6 +76,7 @@ o/$(MODE)/libc/str/iswseparator.o: \
-fno-jump-tables
o/$(MODE)/libc/str/bcmp.o \
o/$(MODE)/libc/str/strcmp.o \
o/$(MODE)/libc/str/windowsdurationtotimeval.o \
o/$(MODE)/libc/str/windowsdurationtotimespec.o \
o/$(MODE)/libc/str/timevaltowindowstime.o \
@ -83,7 +84,7 @@ o/$(MODE)/libc/str/timespectowindowstime.o \
o/$(MODE)/libc/str/windowstimetotimeval.o \
o/$(MODE)/libc/str/windowstimetotimespec.o: \
OVERRIDE_CFLAGS += \
-O3
-O2
LIBC_STR_LIBS = $(foreach x,$(LIBC_STR_ARTIFACTS),$($(x)))
LIBC_STR_SRCS = $(foreach x,$(LIBC_STR_ARTIFACTS),$($(x)_SRCS))