mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 07:29:23 +00:00
Get strace.com working beautifully
This commit is contained in:
parent
82f2e758c7
commit
f59b5dbd7c
7 changed files with 544 additions and 474 deletions
|
@ -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
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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))
|
||||
|
|
2
third_party/infozip/zip/unix/unix.c
vendored
2
third_party/infozip/zip/unix/unix.c
vendored
|
@ -56,8 +56,6 @@ typedef FILE DIR;
|
|||
** Cleaned up and modified by James W. Birdsall.
|
||||
*/
|
||||
|
||||
#define opendir(path) fopen(path, "r")
|
||||
|
||||
struct dirent *readdir(dirp)
|
||||
DIR *dirp;
|
||||
{
|
||||
|
|
10
third_party/make/make.mk
vendored
10
third_party/make/make.mk
vendored
|
@ -114,6 +114,16 @@ o/$(MODE)/third_party/make/make.com.dbg: \
|
|||
$(APE_NO_MODIFY_SELF)
|
||||
@$(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.dbg \
|
||||
o/$(MODE)/third_party/infozip/zip.com \
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -164,6 +164,7 @@
|
|||
((eq arg 3) "rel")
|
||||
((eq arg 4) "dbg")
|
||||
((eq arg 5) "")
|
||||
((eq arg 6) "optlinux")
|
||||
((eq arg 7) "tinylinux")
|
||||
((eq arg 8) "llvm")
|
||||
(default default)
|
||||
|
|
Loading…
Add table
Reference in a new issue