Commit graph

510 commits

Author SHA1 Message Date
Mark Pizzolato
2cd2f8c1d3 SCP: Use explicit filename compare when built without HAVE_GLOB & HAVE_FNMATCH 2018-01-07 16:54:39 -08:00
Mark Pizzolato
0fc41cb3bd SCP: Properly cancel very long event waits
usecs_remaining must be zero to be sure that canceling is complete.
2018-01-07 13:58:28 -08:00
Mark Pizzolato
39c5217740 SCP: Properly reset the event queue prior to run/boot
Need to call sim_cancel to remove entries from the event queue since
canceling some events may involve other components.
2018-01-07 13:56:16 -08:00
Mark Pizzolato
eea15bfe4e SCP: Add DEBUG command to allow Debug enabling/disabling via Remote Console
This exposes the functionality of SET DEBUG and SET <dev> DEBUG without using
a general SET command which the remote console facility avoids.
2018-01-07 12:47:42 -08:00
Mark Pizzolato
154320bf71 SCP: Add support for BREAK/EXPECT/UNTIL/IF action steps in remote console 2018-01-07 12:09:35 -08:00
Mark Pizzolato
80c1c9e0fd SCP: Silence Coverity warning 2018-01-05 05:53:44 -08:00
Mark Pizzolato
833927d349 SCP: Cleanup compiler warnings 2018-01-04 17:06:58 -08:00
Mark Pizzolato
fbcf72abfc SCP: Allow commands to be enclosed in quotes.
This is useful when commands containing semi-colons are used in the
action steps of BREAK, EXPECT, UNTIL, IF commands.
2018-01-04 07:12:43 -08:00
Mark Pizzolato
9086b269b2 SCP: Allow semicolons within quoted strings while parsing action strings 2018-01-04 07:06:52 -08:00
Mark Pizzolato
72d4622ddf SCP: Add ECHOF command which takes a quoted string as an argument 2018-01-04 07:06:51 -08:00
Mark Pizzolato
9b1f44f787 SCP: Remove optional write_callback in the REGister structure
The REG structure exists to serve SCP's various activities.  It is
does not exist to provide capabilities to a VM.
2017-12-09 02:54:10 -08:00
Mark Pizzolato
a4a6a1d409 SCP: Fix regression which disabled limit check when parsing unsigned integers
This affected unit and tmxr line checks when there was only one unit or line.
2017-12-05 12:23:31 -08:00
Mark Pizzolato
133cf727d5 SCP: Move test for unit disabled to also cover devices with attach routines 2017-12-05 12:17:23 -08:00
Mark Pizzolato
0293d7f4af SCP: Enrich EXPECT and SEND help and document information 2017-11-29 16:49:20 -08:00
Mark Pizzolato
7246e74004 SCP: Add a SIM_OSTYPE built-in environment variable. 2017-11-20 15:23:19 -08:00
Mark Pizzolato
61679ed8f0 SCP: Add optional write_callback to REGister structure called only on DEPOSIT
Add necessary macros to populate this field and cleanup all the
existing macros to be simpler.
2017-11-19 08:18:02 -08:00
Mark Pizzolato
9bb1cfd9f9 SCP: Add useful info for HELP SET CONSOLE options 2017-11-14 18:47:44 -08:00
Mark Pizzolato
733ac0d982 SCP: Make SLEEP command interruptable with SIGINT 2017-11-07 13:34:53 -08:00
Mark Pizzolato
097172f8a3 doc: Add missing commands descriptions 2017-11-03 09:36:11 -07:00
Mark Pizzolato
4ca544f60a SCP: Add SLEEP command 2017-11-03 08:51:19 -07:00
Mark Pizzolato
9134b8e5d3 SCP: Add SIM_BIN_PATH environment variable as the simulator's argv[0] 2017-10-24 12:21:52 -07:00
Mark Pizzolato
35bfe17f75 SCP: Allow QUIET mode to be set in a default simulator command file 2017-10-23 16:24:26 -07:00
Mark Pizzolato
b80402e59c SCP: Fix display of context command when reporting processing DQ in QUIET mode 2017-10-23 14:14:00 -07:00
Mark Pizzolato
09f69f13b5 SCP: Fix command context reporting when errors occur in QUIET mode 2017-10-22 18:44:14 -07:00
Mark Pizzolato
3d1f092573 SCP: Provide command context for messages emitted during ATTACH and DETACH
Context and non error messages will be suppressed in quiet mode or when -Q
switch is explicitly supplied on command line
2017-10-22 08:33:21 -07:00
Mark Pizzolato
5b248cf7f4 SCP: Fix Coverity identified warning and migrate away from strncpy to strlcpy 2017-10-19 20:04:08 -07:00
Mark Pizzolato
6d1e873087 SCP: Allow HALTAFTER= to be specified for RUN/GO UNTIL commands 2017-10-19 12:30:24 -07:00
Mark Pizzolato
932d16da53 SCP: Rework SEND and EXPECT commands to provide default and temporary arguments
- EXPECT HALTAFTER=nnn
     --> sets "nnn" as the global/default value

 - EXPECT "some string"
     --> uses the "nnn" global/default value

 - EXPECT HALTAFTER=ttt "some string"
     --> uses the "ttt" temporary value for this EXPECT only

and:

 - SEND AFTER=nnn
     --> sets "nnn" as the global/default value

 - SEND "some string"
     --> uses the "nnn" global/default value

 - SEND AFTER=ttt "some string"
     --> uses the "ttt" temporary value for this SEND only

(and similarly for the SEND DELAY value).
2017-10-16 13:10:10 -07:00
Mark Pizzolato
247bd8d534 SCP: Avoid potential double freeing of memory during RESTORE operations
Fix problem reported in #484
2017-10-10 17:36:36 -07:00
Mark Pizzolato
c8a420ad48 SCP: Change command argument processing of %% and \% to be consistent.
%% now inserts a bare % and \\ only means something when parsing a quoted
string argument (used by EXPECT and SEND commands).

Additionally, EXPECT and BREAK commands have action steps which will now
expand arguments as each of the actions are executed rather than when the
EXPECT or BREAK command is defined.
2017-09-16 17:05:26 -07:00
Mark Pizzolato
2574100ec5 SCP: Fix EXPECT processing to avoid comparing against old data 2017-09-13 17:02:16 -07:00
Mark Pizzolato
415b2ef1bc SCP: Fix register examine broken by prior Coverity fix. 2017-09-12 10:59:55 -07:00
Mark Pizzolato
4b16e43e3e SCP: Removing Coverity Array vs Singleton warnings 2017-09-09 14:00:08 -07:00
Mark Pizzolato
964195dd78 SCP: Fix potential infinite recursion for internal ctype routines 2017-09-04 18:04:57 -07:00
Mark Pizzolato
7af33b90b6 SCP: Fix internal ctype routines make consistent with standard routines. 2017-09-03 16:46:34 -07:00
Mark Pizzolato
0579ef7d51 SCP: Allow EXPECT HALTAFTER=n without an expect string to behave as documented 2017-09-03 13:23:50 -07:00
Mark Pizzolato
23f4c90a6d SCP: Generalized numeric switch processing 2017-09-03 09:19:20 -07:00
Mark Pizzolato
ea898b24bd SCP: Add SET <dev> BINARY as an alternate radix option for all devices 2017-08-31 17:45:10 -07:00
Mark Pizzolato
ebf9489b59 SCP: Fixed Coverity issue for sim_debug arguments 2017-08-28 10:19:29 -07:00
Mark Pizzolato
245818d348 SCP: Added extended radix options (-2, -8, -10 and -16) for EXAMINE and DEPOSIT 2017-08-25 15:48:11 -07:00
Mark Pizzolato
e106d05550 SCP: Add support to dynamically load libreadline7 2017-08-14 19:15:12 -07:00
Mark Pizzolato
e39965a9f6 SCP: Add support for unsigned int parsing (t_value) without a range limit 2017-07-31 22:11:44 -07:00
Mark Pizzolato
b15f753adc SCP: Add support for operation when stdin isn't a tty
Also enhanced error messages for startup errors.
2017-07-31 22:10:15 -07:00
Mark Pizzolato
9c930092a4 SCP: Add insertion symbol UTIME for Unix time (seconds since 1/1/1970) 2017-06-26 11:52:07 -07:00
Mark Pizzolato
c8ab527f4c SCP: Add event debugging support for CPU device
Simulators which don't have detailed debugging available on their default
device (usually CPU), automatically have the event debugging options
available.  Simulators which have CPU device debugging will have to add
the SIM_DBG_EVENT, SIM_DBG_ACTIVATE and SIM_DBG_AIO_QUEUE to
their debug option list to provide this detailed debugging.
2017-06-24 18:36:24 -07:00
Mark Pizzolato
1ad8752693 SCP: Added HELP DO VARIABLE_INSERTION 2017-06-23 17:44:50 -07:00
Mark Pizzolato
d9e7afc92f SCP: Fix Coverity flagged issues 2017-06-13 04:32:18 -07:00
Mark Pizzolato
c470d1e5e2 SCP: Allow the presence of DEVICE DEBTAB array to imply the DEV_DEBUG flag 2017-06-07 18:56:06 -07:00
Mark Pizzolato
c389573c91 SCP: Avoid output to log during DEPOSIT command 2017-06-05 02:41:39 -07:00
Mark Pizzolato
df627b0cb1 SCP: Cleanup output produced by SHOW CONSOLE command 2017-05-27 20:25:50 -07:00