mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 15:38:22 +00:00
Fix debug mode build
This commit is contained in:
parent
dc0ea6640e
commit
be7c5e1071
9 changed files with 26 additions and 1 deletions
|
@ -39,7 +39,6 @@
|
|||
#include "libc/nt/winsock.h"
|
||||
#include "libc/sock/internal.h"
|
||||
#include "libc/sock/ntstdin.internal.h"
|
||||
#include "libc/sock/yoink.inc"
|
||||
#include "libc/sysv/consts/o.h"
|
||||
#include "libc/sysv/consts/poll.h"
|
||||
#include "libc/sysv/consts/sig.h"
|
24
tool/net/demo/crashreport.lua
Normal file
24
tool/net/demo/crashreport.lua
Normal file
|
@ -0,0 +1,24 @@
|
|||
globalvar1 = 31337
|
||||
|
||||
globalvar2 = {
|
||||
'hello': 'world',
|
||||
}
|
||||
|
||||
function dosomething(param1, x)
|
||||
local res, y = 0
|
||||
SetStatus(200)
|
||||
SetHeader('Content-Type', 'text/plain; charset=utf-8')
|
||||
Write('preprae to crash... now\r\n')
|
||||
res = x / y
|
||||
Write(string.format('42 / 0 is %d\r\n', res)
|
||||
end
|
||||
|
||||
function start(param1)
|
||||
local x = 42
|
||||
dosomething(s, x)
|
||||
end
|
||||
|
||||
function main()
|
||||
local s = 'hello'
|
||||
start(s)
|
||||
end
|
|
@ -174,6 +174,7 @@ o/$(MODE)/tool/net/demo/hello.lua.zip.o \
|
|||
o/$(MODE)/tool/net/demo/maxmind.lua.zip.o \
|
||||
o/$(MODE)/tool/net/demo/redbean.lua.zip.o \
|
||||
o/$(MODE)/tool/net/demo/opensource.lua.zip.o \
|
||||
o/$(MODE)/tool/net/demo/crashreport.lua.zip.o \
|
||||
o/$(MODE)/tool/net/demo/closedsource.lua.zip.o \
|
||||
o/$(MODE)/tool/net/demo/printpayload.lua.zip.o \
|
||||
o/$(MODE)/tool/net/demo/redbean-form.lua.zip.o \
|
||||
|
@ -215,6 +216,7 @@ o/$(MODE)/tool/net/redbean-demo.com.dbg: \
|
|||
o/$(MODE)/tool/net/demo/redbean.lua.zip.o \
|
||||
o/$(MODE)/tool/net/demo/maxmind.lua.zip.o \
|
||||
o/$(MODE)/tool/net/demo/opensource.lua.zip.o \
|
||||
o/$(MODE)/tool/net/demo/crashreport.lua.zip.o \
|
||||
o/$(MODE)/tool/net/demo/closedsource.lua.zip.o \
|
||||
o/$(MODE)/tool/net/demo/printpayload.lua.zip.o \
|
||||
o/$(MODE)/tool/net/demo/redbean-form.lua.zip.o \
|
||||
|
|
Loading…
Add table
Reference in a new issue