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/ _______________________________________________ Simulavr-devel mailing list Simulavr-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/simulavr-devel