Mona OS developers Wiki
(gdb) b number_yyerror if port == 0
Breakpoint 1 at 0x10003d0b4: file NumberReader.y, line 484.
(gdb) run check.scm
Starting program: /Users/oku/moshbuild/darwin64/nmosh check.scm
Reading symbols for shared libraries +++. done
Breakpoint 1, number_yyerror (str=0x100118799 "syntax error") at NumberReader.y:484
warning: Source file is more recent than executable.
484 TextualInputPort* const port = currentVM()->readerContext()->port();
(gdb) bt
#0 number_yyerror (str=0x100118799 "syntax error") at NumberReader.y:484
#1 0x000000010003dc7d in number_yyparse () at src/NumberReader.tab.cpp:2629
#2 0x000000010000c852 in scheme::NumberReaderContext::read () at /Users/oku/repos/mosh/src/NumberReader.cpp:49
#3 0x000000010000c852 in scheme::NumberReaderContext::read (this=0x1006c6220, text=@0x100dcd640, isErrorOccured=@0x7fff5fbfe99a) at ../../repos/mosh/misc/dist/mac/../../../src/NumberReader.cpp:484
#4 0x0000000100071af2 in stringToNumber [inlined] () at /Users/oku/repos/mosh/src/StringProcedures.cpp:184
#5 0x0000000100071af2 in scheme::stringTonumberEx (theVM=0x1006d2d20, argc=<value temporarily unavailable, due to optimizations>, argv=<value temporarily unavailable, due to optimizations>) at ../../repos/mosh/misc/dist/mac/../../../src/StringProcedures.cpp:484
#6 0x0000000100023911 in scheme::CProcedure::call (this=<value temporarily unavailable, due to optimizations>, theVM=<value temporarily unavailable, due to optimizations>, argc=<value temporarily unavailable, due to optimizations>, argv=<value temporarily unavailable, due to optimizations>) at CProcedure.h:47
#7 0x000000010001da0c in scheme::VM::runLoop (this=<value temporarily unavailable, due to optimizations>, code=<value temporarily unavailable, due to optimizations>, returnPoint=<value temporarily unavailable, due to optimizations>, returnTable=<value temporarily unavailable, due to optimizations>) at call.inc.cpp:68
#8 0x000000010001454e in scheme::VM::evaluateUnsafe () at /Users/oku/repos/mosh/src/VM.cpp:358
#9 0x000000010001454e in scheme::VM::evaluateSafe (this=0x1006d2d20, code=0x100b05000, codeSize=132091) at ../../repos/mosh/misc/dist/mac/../../../src/VM.cpp:484
#10 0x00000001000147e3 in scheme::VM::activateR6RSMode (this=0x1006d2d20, image=0x10011c740 "#\r", image_size=<value temporarily unavailable, due to optimizations>, isDebugExpand=<value temporarily unavailable, due to optimizations>) at ../../repos/mosh/misc/dist/mac/../../../src/VM.cpp:773
#11 0x000000010000136d in activateR6RSMode [inlined] () at /Users/oku/repos/mosh/src/main.cpp:99
#12 0x000000010000136d in main (argc=2, argv=<value temporarily unavailable, due to optimizations>) at ../../repos/mosh/misc/dist/mac/../../../src/main.cpp:484