bugSimulavr: an AVR simulator - Bugs: bug #29767, Simulator does not return value...

 
 

bug #29767: Simulator does not return value written to writeToExit address

Submitter:  None
Submitted:  Tue 04 May 2010 03:56:31 AM UTC
   
 
Category:  Simulation Severity:  3 - Normal
Item Group:  None Status:  Wont Fix
Privacy:  Public Assigned to:  tomk
Originator Email:  * -email is unavailable- Open/Closed:  Closed
Component Version:  * simulavrxx
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 31 May 2010 06:26:48 PM UTC, comment #1: 

Hi,

sorry for the late reaction. Was a little bit to busy last time.

But ... your patch does nothing. ;-) The problem is, that writing to a RWExit register will call exit immediately. So, your code will not arrived at all in this case.

Of course, it's not a good software design to have a exit call somewhere inside subfunctions and maybe it would be a task to realize a proper "shutdown" of the application. But this isn't to make with a few lines of code. Maybe it's a good idea, to change this exit calls to exceptions and to catch then this exceptions in main function. That's the way between all ...

cu, Thomas

Thomas K. <tomk>
Group administrator
Tue 04 May 2010 03:56:31 AM UTC, original submission:  

Hi,

The simulator command-line app (latest of the git repository) does not appear to return the value written to the "writeToExit" address when configured with the "-e" option.

A patch is included, although I can't necessarily say whether or not it is correct or complete.  It just appears to work as expected.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #20416:  writeToExit.patch added by None (496B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tomk (Posted a comment)
  •  

    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.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-05-31 tomk StatusNone Wont Fix
        Assigned toNone tomk
        Open/ClosedOpen Closed
    2010-05-04 None Attached File- Added writeToExit.patch, #20416

    Back to the top

    Powered by Savane 3.13-aa77.
    Corresponding source code