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 authentification level.

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

Submitted by:  Lars Immisch <larsimmisch>
Submitted on:  Sat 21 Apr 2012 01:25:10 AM UTC  
 
Category: feature addPriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: Thomas K. <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>

 

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 30 Oct 2014 05:15:05 PM UTCtomkCategoryNone=>feature add
      StatusNone=>Done
      Assigned toNone=>tomk
      Open/ClosedOpen=>Closed
    Sat 21 Apr 2012 01:25:10 AM UTClarsimmischAttached File-=>Added 0006-Make-Step-stoppable-print-less-when-used-as-a-librar.patch, #25701

    Back to the top


    Powered by Savane 3.1-cleanup