Sami Vaarala
947a08e4a9
Consistency renames for debug trans socket
9 years ago
Sami Vaarala
cf280d61c3
Avoid MSVC warnings about duk_cmdline.c fopen()
9 years ago
Sami Vaarala
32b99ca2f1
Add duk -c FILENAME bytecode compile option
9 years ago
Sami Vaarala
87ac8ae5a3
Type fix to avoid warning on MSVC
10 years ago
Sami Vaarala
0b49540014
Ajduk alloc logging (--ajsheap-log)
10 years ago
Sami Vaarala
9d624cbc2a
Duk cmdline hack test for duk_debugger_cooperate()
10 years ago
Sami Vaarala
3e4f2d4722
Debugger cleanups, endianness, peek/flush, etc
- Endianness for pointers and IEEE doubles
- Add DUK_OPT_DEBUGGER_DUMPHEAP feature option
- Add DUK_OPT_DEBUGGER_DUMPHEAP to Makefile
- Refactor executor and executor interrupt debugger handling to separate
functions to make them easier to read
- Explicit peek, read flush, and write flush callbacks
- Remove brkpt_dirty, easier and perhaps more robust to recheck breakpoints
whenever any debug commands have been executed
- Bug fixes, FIXME resolutions, trivia
10 years ago
Sami Vaarala
5c22523ebf
Add debugger support to core engine
10 years ago
Sami Vaarala
87fdd163b2
Ajduk exec timeout example, ajdukd target
10 years ago
Sami Vaarala
009fba3392
Add ENC16/DEC16/EXTSTR udata to ajduk example
10 years ago
Sami Vaarala
ac4b022d25
Enable dbgHEAPDUMP for ajduk
10 years ago
Sami Vaarala
c5dee5409f
Avoid interning compiled code in duk cmdline
10 years ago
Sami Vaarala
7d436b69c9
Ajduk strtab, extstr valgrind variant, pool sizes
10 years ago
Sami Vaarala
24385aa274
Example DUK_OPT_EXTSTR_FREE() for ajduk
10 years ago
Sami Vaarala
209065e745
Add ajduk example for compile time ext strings
10 years ago
Sami Vaarala
b1694d0fef
Refactor ajduk into own file, fix warnings
10 years ago
Sami Vaarala
adec7b447c
Add ajduk external string check example
10 years ago
Sami Vaarala
e451c4d8fb
Implement ajduk ptr compr, pool size tweaks
Also add more AjsHeap pool sizes for measurements. The resulting pool
total size is >128kB, but only a small part of it is used. It's good
to have pool entries with 4-byte increments in the low range so that
actual used sizes can be more easily seen.
10 years ago
Sami Vaarala
077f061f09
Add AllJoyn.js AjsHeap support to duk_cmdline
AllJoyn.js has a pool allocator which serves as a good example for using
Duktape with a pool allocator in a low memory environment.
10 years ago
Sami Vaarala
5fc135b1aa
Add hybrid allocator to cmdline
10 years ago
Sami Vaarala
105a55ddf0
Add DUK_GIT_DESCRIBE to commandline greet line
10 years ago
Sami Vaarala
fd79a95af1
Add logged/torture allocator support to cmdline
Enable alloc logging/torture support in 'duk' by default. This is only for
the Duktape repo 'duk' build, not for the dist version of it.
10 years ago
Sami Vaarala
6ab6294b8e
Cmdline: read 'stack' only if value is an error
10 years ago
Sami Vaarala
c5553a7185
Add -e (eval) option to duk_cmdline
10 years ago
Sami Vaarala
0e7f594d4f
Cleanup, remove unused code from duk_cmdline
10 years ago
Sami Vaarala
783aa3892f
Replace DUK_CMDLINE_BAREBONES w/ DUK_CMDLINE_FANCY
The default is a barebones build and it happens without any specific options.
This is a better default for people trying Duktape out for the first time.
10 years ago
Sami Vaarala
0f2b9df9b8
Rename various READMEs to .rst suffix
10 years ago
Sami Vaarala
10f94b554d
Move files from examples to dist-files/
The coffeescript makefile is a special case, as it doesn't rely on Duktape.
10 years ago
Sami Vaarala
98c70bc1fb
Improve misleading error message from duk cmdline
11 years ago
Sami Vaarala
629e68bf26
cmdline bug fix: avoid complaining about 'error in reading input' when executing code from a file
11 years ago
Sami Vaarala
53cc8b485a
'duk' cmdline util improvements: add -i to force interactive mode even after executing files, remove '-' argument support which was broken
11 years ago
Sami Vaarala
26a028fe19
add a few missing casts (g++ errors)
11 years ago
Sami Vaarala
b91f6e7124
fix protected/safe call sites in code examples to omit errhandler_index
11 years ago
Sami Vaarala
724dbd8080
improve cmdline stack printing, so that there is no fatal error even if getting the 'stack' property fails
11 years ago
Sami Vaarala
6145c50e3f
add duk_safe_to_string() usage to duk_cmdline so that double error coercions work
11 years ago
Sami Vaarala
3c3561e4a1
add some missing makefiles
11 years ago
Sami Vaarala
66fd31d853
example README.txt heading trivia
11 years ago
Sami Vaarala
8f1c1eb1f0
example README.txt files
11 years ago
Sami Vaarala
1504bbb151
move unused cmdline modules (fileiso, socket, ncurses) to eventloop example, which is perhaps a more useful place for them
11 years ago
Sami Vaarala
c99603e558
fix eof handling for duk cmdline in non-interactive mode
11 years ago
Sami Vaarala
7b14c5d05d
make duk cmdline default memory limit be high, and use -r to reduce it
11 years ago
Sami Vaarala
dc00f8812e
avoid ToString() coercion of final Program result in non-interactive mode, as it may itself throw a TypeError (e.g. failed to coerce with [[DefaultValue]])
11 years ago
Sami Vaarala
c79cf5c82c
provide an explicit 'this' binding when calling program code in duk_cmdline, otherwise 'this' binding is incorrect when global code is strict
11 years ago
Sami Vaarala
c9ce15cf5b
rename __duk__ to Duktape in examples
11 years ago
Sami Vaarala
0a4c3b59ea
__duk__.build removal related trivia
11 years ago
Sami Vaarala
608a2f8ebf
force DUK_CMDLINE_BAREBONES on Windows to avoid header issues
11 years ago
Sami Vaarala
80fd26d51e
add duktape version to cmdline greet
11 years ago
Sami Vaarala
db30481a5a
cmdline barebones variant warning cleanup
11 years ago
Sami Vaarala
c8d3db805f
make cmdline tool print 'Cleaning up...' only in interactive mode
11 years ago
Sami Vaarala
344a46e728
make cmdline use 'stack' through the accessor
11 years ago