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

 
 

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

Submitted by:  None
Submitted on:  Tue 04 May 2010 03:56:31 AM UTC  
 
Category: SimulationSeverity: 3 - Normal
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned to: Thomas K. <tomk>
Originator Email: -unavailable-Open/Closed: Closed
Component Version: simulavrxx

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
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
  • -unavailable- added by tomk (Posted a comment)
  •  

    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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 31 May 2010 06:26:48 PM UTCtomkStatusNone=>Wont Fix
      Assigned toNone=>tomk
      Open/ClosedOpen=>Closed
    Tue 04 May 2010 03:56:31 AM UTCNoneAttached File-=>Added writeToExit.patch, #20416

    Back to the top


    Powered by Savane 3.1-cleanup1