patchSimulavr: an AVR simulator - Patches: patch #6776, No segfault on access to not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #6776: No segfault on access to not implemented I/O registers

Submitter:  Onno Kortmann <onnokort>
Submitted:  Wed 11 Mar 2009 10:57:32 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  simulavrxx

Mon 23 Mar 2009 08:42:54 PM UTC, comment #1: 

Applied and a bit beyond to print a message in this case and on access to reserved locations.  Message can be disabled.

Joel Sherrill <joelsherrill>
Group administrator
Wed 11 Mar 2009 10:57:32 PM UTC, original submission:  

If there is a subclass of AVRDevice which has not filled in all I/O registers, any access to an invalid register may cause a segfault.

Segfaults do not give much information and should generally be avoided, so this patch makes simulavr handle all access to not-implemented I/O as invalid I/O and makes it therefore more robust.

Onno Kortmann <onnokort>
Group Member

 

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

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by joelsherrill (Posted a comment)
  • -email is unavailable- added by joerg_wunsch (Updated the item)
  • -email is unavailable- added by onnokort (Submitted the item)
  •  

    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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-03-23 joelsherrill Open/ClosedOpen Closed
    2009-03-22 joerg_wunsch Component VersionNone simulavrxx
    2009-03-11 onnokort Attached File- Added no-segfault-on-missing-io.patch, #17651

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code