simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Simulavr-devel] [patch #7766] Make Step stoppable, print less when used


From: Lars Immisch
Subject: [Simulavr-devel] [patch #7766] Make Step stoppable, print less when used as a library
Date: Sat, 21 Apr 2012 01:25:10 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.5 Safari/534.55.3

URL:
  <http://savannah.nongnu.org/patch/?7766>

                 Summary: Make Step stoppable, print less when used as a
library
                 Project: Simulavr: an AVR simulator
            Submitted by: larsimmisch
            Submitted on: Sat 21 Apr 2012 01:25:10 AM GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: simulavr

    _______________________________________________________

Details:

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.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 21 Apr 2012 01:25:10 AM GMT  Name:
0006-Make-Step-stoppable-print-less-when-used-as-a-librar.patch  Size: 10kB  
By: larsimmisch

<http://savannah.nongnu.org/patch/download.php?file_id=25701>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7766>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]