patchSimulavr: an AVR simulator - Patches: patch #7766, Make Step stoppable, print less...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #7766: Make Step stoppable, print less when used as a library

Submitter:  Lars Immisch <larsimmisch>
Submitted:  Sat 21 Apr 2012 01:25:10 AM UTC
   
 
Category:  feature add Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  tomk Open/Closed:  Closed
Component Version:  simulavr

Sat 21 Apr 2012 01:25:10 AM UTC, original submission:  

This patch fixes two problems:

    - SystemClock::Step didn't honour Stop, so if Stop was called internally from a device (because an exit symbol was encountered), a loop with Step  would never terminate. This was a problem in the existing example code, e.g. examples/python/ex_utils.py#doRun

 - SystemClock::Endless and others unconditionally wrote to stdout. This is undesirable when simulavr is used as a library. The output was moved to cmd/main.c. This way, the simulavr binary gives the same diagnostic messages, but the library itself is silent.
   
 Also, Step, Run, adn RunTimeRange return the number of steps to improve usability of these methods from a library.

Lars Immisch <larsimmisch>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tomk (Updated the item)
  • -email is unavailable- added by larsimmisch (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-10-30 tomk CategoryNone feature add
        StatusNone Done
        Assigned toNone tomk
        Open/ClosedOpen Closed
    2012-04-21 larsimmisch Attached File- Added 0006-Make-Step-stoppable-print-less-when-used-as-a-librar.patch, #25701

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code