mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue