|
From: | Petr Hluzin |
Subject: | [Simulavr-devel] [patch #7084] +Diagnostic when running without a program |
Date: | Sun, 07 Feb 2010 20:08:46 +0000 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 |
URL: <http://savannah.nongnu.org/patch/?7084> Summary: +Diagnostic when running without a program Project: Simulavr: an AVR simulator Submitted by: petrh Submitted on: Sun 07 Feb 2010 09:08:46 PM CET Category: feature add Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Component Version: simulavrxx _______________________________________________________ Details: When user is connected using GDB and he forgot to load an program image (either on command line or by GDB 'load') the simulator exits with message "Simulation terminated! IllegalInstruction at 0x0 executed!" (BTW quite threatening). GDB just notes simulator's abrupt disappearance. This is worse when user does not see the simulator's output - he has no clue why did it die. The output may not be even visible when the simulator is launched by IDE. With this patch a GDB will print "No program to simulate. Use 'load' to upload it." and stop without simulator altering a state. After user/IDE does 'load file.elf' the simulation can continue as usual. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Sun 07 Feb 2010 09:08:46 PM CET Name: no-program-loaded-diagnostics.patch Size: 3kB By: petrh <http://savannah.nongnu.org/patch/download.php?file_id=19643> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/patch/?7084> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |