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 * @param request can be PTRACE_xxx
* @note de facto linux only atm * @note de facto linux only atm
* @vforksafe
*/ */
long ptrace(int request, ...) { long ptrace(int request, ...) {
// TODO(jart): FreeBSD addr and data args are different // 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/memset.o \
o//libc/intrin/memmove.o: \ o//libc/intrin/memmove.o: \
OVERRIDE_CFLAGS += \ OVERRIDE_CFLAGS += \
-O3 -O2
o/$(MODE)/libc/intrin/bzero.o \ o/$(MODE)/libc/intrin/bzero.o \
o/$(MODE)/libc/intrin/memcmp.o \ o/$(MODE)/libc/intrin/memcmp.o \

View file

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

View file

@ -56,8 +56,6 @@ typedef FILE DIR;
** Cleaned up and modified by James W. Birdsall. ** Cleaned up and modified by James W. Birdsall.
*/ */
#define opendir(path) fopen(path, "r")
struct dirent *readdir(dirp) struct dirent *readdir(dirp)
DIR *dirp; DIR *dirp;
{ {

View file

@ -114,6 +114,16 @@ o/$(MODE)/third_party/make/make.com.dbg: \
$(APE_NO_MODIFY_SELF) $(APE_NO_MODIFY_SELF)
@$(APELINK) @$(APELINK)
o/$(MODE)/third_party/make/strcache.o \
o/$(MODE)/third_party/make/expand.o \
o/$(MODE)/third_party/make/read.o: \
OVERRIDE_CFLAGS += \
-O2
o/$(MODE)/third_party/make/hash.o: \
OVERRIDE_CFLAGS += \
-O3
o/$(MODE)/third_party/make/make.com: \ o/$(MODE)/third_party/make/make.com: \
o/$(MODE)/third_party/make/make.com.dbg \ o/$(MODE)/third_party/make/make.com.dbg \
o/$(MODE)/third_party/infozip/zip.com \ o/$(MODE)/third_party/infozip/zip.com \

File diff suppressed because it is too large Load diff

View file

@ -164,6 +164,7 @@
((eq arg 3) "rel") ((eq arg 3) "rel")
((eq arg 4) "dbg") ((eq arg 4) "dbg")
((eq arg 5) "") ((eq arg 5) "")
((eq arg 6) "optlinux")
((eq arg 7) "tinylinux") ((eq arg 7) "tinylinux")
((eq arg 8) "llvm") ((eq arg 8) "llvm")
(default default) (default default)