improved --debugger switch; updated release plan
This commit is contained in:
parent
f87d663ab7
commit
169974cfe6
4 changed files with 19 additions and 11 deletions
|
|
@ -375,9 +375,19 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo) =
|
||||||
of "stacktrace": processOnOffSwitch({optStackTrace}, arg, pass, info)
|
of "stacktrace": processOnOffSwitch({optStackTrace}, arg, pass, info)
|
||||||
of "linetrace": processOnOffSwitch({optLineTrace}, arg, pass, info)
|
of "linetrace": processOnOffSwitch({optLineTrace}, arg, pass, info)
|
||||||
of "debugger":
|
of "debugger":
|
||||||
processOnOffSwitch({optEndb}, arg, pass, info)
|
case arg.normalize
|
||||||
if optEndb in gOptions: defineSymbol("endb")
|
of "on", "endb":
|
||||||
else: undefSymbol("endb")
|
gOptions.incl optEndb
|
||||||
|
defineSymbol("endb")
|
||||||
|
of "off":
|
||||||
|
gOptions.excl optEndb
|
||||||
|
undefSymbol("endb")
|
||||||
|
of "native":
|
||||||
|
incl(gGlobalOptions, optCDebug)
|
||||||
|
gOptions = gOptions + {optLineDir} - {optEndb}
|
||||||
|
undefSymbol("endb")
|
||||||
|
else:
|
||||||
|
localError(info, "expected endb|gdb but found " & arg)
|
||||||
of "profiler":
|
of "profiler":
|
||||||
processOnOffSwitch({optProfiler}, arg, pass, info)
|
processOnOffSwitch({optProfiler}, arg, pass, info)
|
||||||
if optProfiler in gOptions: defineSymbol("profiler")
|
if optProfiler in gOptions: defineSymbol("profiler")
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,6 @@ Advanced options:
|
||||||
--os:SYMBOL set the target operating system (cross-compilation)
|
--os:SYMBOL set the target operating system (cross-compilation)
|
||||||
--cpu:SYMBOL set the target processor (cross-compilation)
|
--cpu:SYMBOL set the target processor (cross-compilation)
|
||||||
--debuginfo enables debug information
|
--debuginfo enables debug information
|
||||||
--debugger:on|off turn Embedded Nim Debugger on|off
|
|
||||||
-t, --passC:OPTION pass an option to the C compiler
|
-t, --passC:OPTION pass an option to the C compiler
|
||||||
-l, --passL:OPTION pass an option to the linker
|
-l, --passL:OPTION pass an option to the linker
|
||||||
--cincludes:DIR modify the C compiler header search path
|
--cincludes:DIR modify the C compiler header search path
|
||||||
|
|
@ -88,7 +87,5 @@ Advanced options:
|
||||||
--parallelBuild:0|1|... perform a parallel build
|
--parallelBuild:0|1|... perform a parallel build
|
||||||
value = number of processors (0 for auto-detect)
|
value = number of processors (0 for auto-detect)
|
||||||
--verbosity:0|1|2|3 set Nim's verbosity level (1 is default)
|
--verbosity:0|1|2|3 set Nim's verbosity level (1 is default)
|
||||||
--cs:none|partial set case sensitivity level (default: none);
|
|
||||||
do not use! this setting affects the whole language
|
|
||||||
--experimental enable experimental language features
|
--experimental enable experimental language features
|
||||||
-v, --version show detailed version information
|
-v, --version show detailed version information
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ Command:
|
||||||
//compile, c compile project with default code generator (C)
|
//compile, c compile project with default code generator (C)
|
||||||
//doc generate the documentation for inputfile
|
//doc generate the documentation for inputfile
|
||||||
//doc2 generate the documentation for the whole project
|
//doc2 generate the documentation for the whole project
|
||||||
//i start Nim in interactive mode (limited)
|
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
arguments are passed to the program being run (if --run option is selected)
|
arguments are passed to the program being run (if --run option is selected)
|
||||||
|
|
@ -30,6 +29,7 @@ Options:
|
||||||
--infChecks:on|off turn Inf checks on|off
|
--infChecks:on|off turn Inf checks on|off
|
||||||
--deadCodeElim:on|off whole program dead code elimination on|off
|
--deadCodeElim:on|off whole program dead code elimination on|off
|
||||||
--opt:none|speed|size optimize not at all or for speed|size
|
--opt:none|speed|size optimize not at all or for speed|size
|
||||||
|
--debugger:native|endb use native debugger (gdb) | ENDB (experimental)
|
||||||
--app:console|gui|lib|staticlib
|
--app:console|gui|lib|staticlib
|
||||||
generate a console app|GUI app|DLL|static library
|
generate a console app|GUI app|DLL|static library
|
||||||
-r, --run run the compiled program with given arguments
|
-r, --run run the compiled program with given arguments
|
||||||
|
|
|
||||||
5
todo.txt
5
todo.txt
|
|
@ -5,6 +5,8 @@ version 0.10.4
|
||||||
- make 'nil' work for 'add' and 'len'
|
- make 'nil' work for 'add' and 'len'
|
||||||
- get rid of 'mget'; aka priority of 'var' needs to be 'var{lvalue}'
|
- get rid of 'mget'; aka priority of 'var' needs to be 'var{lvalue}'
|
||||||
- 'result' shadowing warning
|
- 'result' shadowing warning
|
||||||
|
- disallow negative indexing
|
||||||
|
- improve the parser; deal with echo $foo gotcha
|
||||||
|
|
||||||
|
|
||||||
version 1.0
|
version 1.0
|
||||||
|
|
@ -75,8 +77,7 @@ version 0.9.X
|
||||||
=============
|
=============
|
||||||
|
|
||||||
- macros as type pragmas
|
- macros as type pragmas
|
||||||
- lazy overloading resolution:
|
- document how lazy overloading resolution works
|
||||||
* special case ``tyStmt``
|
|
||||||
- document NimMain and check whether it works for threading
|
- document NimMain and check whether it works for threading
|
||||||
|
|
||||||
GC
|
GC
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue