mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
Make minor revisions to previous change
This commit is contained in:
parent
a68cc690ff
commit
014d4bdab2
4 changed files with 6 additions and 8 deletions
|
@ -86,7 +86,6 @@ o/$(MODE)/examples/examples.pkg: \
|
||||||
$(EXAMPLES_OBJS) \
|
$(EXAMPLES_OBJS) \
|
||||||
$(foreach x,$(EXAMPLES_DIRECTDEPS),$($(x)_A).pkg)
|
$(foreach x,$(EXAMPLES_DIRECTDEPS),$($(x)_A).pkg)
|
||||||
|
|
||||||
o/$(MODE)/examples/zodiac.o \
|
|
||||||
o/$(MODE)/examples/unbourne.o: \
|
o/$(MODE)/examples/unbourne.o: \
|
||||||
OVERRIDE_CPPFLAGS += \
|
OVERRIDE_CPPFLAGS += \
|
||||||
-DSTACK_FRAME_UNLIMITED
|
-DSTACK_FRAME_UNLIMITED
|
||||||
|
|
|
@ -125,11 +125,11 @@ static int PrintBacktraceUsingAddr2line(int fd, const struct StackFrame *bp) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int PrintBacktrace(int fd, const struct StackFrame *bp) {
|
static int PrintBacktrace(int fd, const struct StackFrame *bp) {
|
||||||
/* if (!IsTiny()) { */
|
if (!IsTiny()) {
|
||||||
if (PrintBacktraceUsingAddr2line(fd, bp) != -1) {
|
if (PrintBacktraceUsingAddr2line(fd, bp) != -1) {
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* } */
|
|
||||||
return PrintBacktraceUsingSymbols(fd, bp, GetSymbolTable());
|
return PrintBacktraceUsingSymbols(fd, bp, GetSymbolTable());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#include "libc/sysv/errfuns.h"
|
#include "libc/sysv/errfuns.h"
|
||||||
|
|
||||||
textwindows int sys_getpeername_nt(struct Fd *fd, void *out_addr,
|
textwindows int sys_getpeername_nt(struct Fd *fd, void *out_addr,
|
||||||
uint32_t *out_addrsize) {
|
uint32_t *out_addrsize) {
|
||||||
assert(fd->kind == kFdSocket);
|
assert(fd->kind == kFdSocket);
|
||||||
if (__sys_getpeername_nt(fd->handle, out_addr, out_addrsize) != -1) {
|
if (__sys_getpeername_nt(fd->handle, out_addr, out_addrsize) != -1) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -76,7 +76,6 @@ void lookup(const char *name) {
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
int i;
|
int i;
|
||||||
showcrashreports();
|
showcrashreports();
|
||||||
lookup("time-a.timefreq.bldrdoc.gov");
|
for (i = 1; i < argc; ++i) lookup(argv[i]);
|
||||||
/* for (i = 1; i < argc; ++i) lookup(argv[i]); */
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue