nint22 / corebasic2

Automatically exported from code.google.com/p/corebasic
0 stars 0 forks source link

Need debugging symbols #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the code, or using parallel binaries, track the line count. Simple 
implementation: create no-op instructions where the args are the line number 
(as an integer) associated with all the following code. In the VM we can have a 
simple "getLine(...)" function that returns the line number we are on.

Original issue reported on code.google.com by nin...@gmail.com on 6 Feb 2012 at 10:19

GoogleCodeExporter commented 9 years ago
When compiling, ask for a debug flag, or via command line -d and allow nops to 
include the associated source-code line

Original comment by nin...@gmail.com on 21 Feb 2012 at 5:49

GoogleCodeExporter commented 9 years ago
Implemented and not optional; always combines the nop code, though when doing a 
step, if a nop is detected, it is ignored and the step is attempted again. 
Currently nops only contain the source-code line number associated with the 
problem

Original comment by nin...@gmail.com on 22 Feb 2012 at 12:09

GoogleCodeExporter commented 9 years ago
Removing the "repeats if op" - it will be up to the end-developer to make that 
decision.

Original comment by nin...@gmail.com on 22 Feb 2012 at 12:47