Commit graph

615 commits

Author SHA1 Message Date
Mark Pizzolato
344e24dcbb SCP: Tolerate sim_instr() return when last debug is missing a newline 2019-01-19 19:14:14 -08:00
Mark Pizzolato
a989770656 SCP: Add "HELP DEVICE devnam"
This allows for device help to be displayed for devices which may have
names that are ambiguous with respect to commands.  For example
if a device named CON exists, HELP CON will display info about the
CONTINUE command rather than the device.  HELP DEVICE CON will
now display that device's HELP info.
2019-01-08 07:25:22 -08:00
Mark Pizzolato
9f2d96b3e7 SCP: Allow debugger delivery of SIGINT separate from WRU return to sim> prompt 2018-12-31 09:49:06 -08:00
Mark Pizzolato
0ba63fe7fa SCP: Automatically Save and Restore unit pos variable
Update writing simulator doc to describe proper use of unit pos variable.
2018-12-12 09:34:49 -08:00
Mark Pizzolato
4fc7950afa SCP: Prioritize memory buffer writes over debug output 2018-11-24 06:17:09 -08:00
Mark Pizzolato
712f9c9e3a SCP: Provide detailed error message when rejecting invalid device DEGUG option 2018-11-24 06:03:04 -08:00
Mark Pizzolato
6e65b635e3 ETHER: Accept upper or lower attach transport types (UDP, TAP, VDE, NAT) 2018-10-09 23:23:39 -07:00
Mark Pizzolato
d4de42b353 SCP: Properly synchronize debug output data during duplicate line detection 2018-10-09 19:03:47 -07:00
Mark Pizzolato
5fdc1e6d0f SCP: Add more clock adjustments while idling 2018-10-08 20:55:01 -07:00
Mark Pizzolato
6a3424df86 SCP: Add option to write debug output to an in memory circular buffer 2018-10-08 17:50:00 -07:00
Mark Pizzolato
b38cc8a367 SCP: Allow "STEP -T nnn" to work
Delay scheduling of long duration calibration events until a calibrated timer
is established.
2018-10-05 20:43:43 -07:00
Mark Pizzolato
7984074f5f SCP: Fix potential leak in error path exit (Coverity) 2018-10-05 17:32:57 -07:00
Mark Pizzolato
e994a4aeda SCP: Expose version information in environment variables 2018-10-05 15:27:22 -07:00
Mark Pizzolato
4807fbbf67 SCP: Expose the REGEX type (PCREPOSIX, REGEX, none) in SIM_REGEX_TYPE env var 2018-09-30 12:35:07 -07:00
Mark Pizzolato
195cd439ae SCP: Avoid potential memory leak while cleaning up EXPECT regular expressions 2018-09-30 08:12:15 -07:00
Mark Pizzolato
f86a67310a SCP: Add missing aspects to sim_filepath_parts, move sim_dir_scan to sim_fio 2018-09-29 23:34:14 -07:00
Mark Pizzolato
c640000b54 SCP: Fix DO command so that CALL will work after a CD has been processed 2018-09-28 20:33:32 -07:00
Mark Pizzolato
0e544b71ff SCP: Fix various compiler warnings 2018-09-28 18:05:39 -07:00
Mark Pizzolato
568a80dfb8 SCP: Add parsing of file specs in environment variables and DO command args. 2018-09-28 15:43:01 -07:00
Mark Pizzolato
9a716a7689 SCP: On startup, only exit if initialization file explicitly returns SCPE_EXIT
Fix for problem reported in #625
2018-09-28 09:36:14 -07:00
Mark Pizzolato
928193d463 SCP: Fix EXPECT regular expression match environment variable names
- Use sim_messagef for consistency
2018-09-27 06:24:31 -07:00
Mark Pizzolato
3c7f79f251 SCP: Fix and document optional [count] parameter for EXPECT commands
- Avoid "Goodbye" message when optional status is specified on EXIT command.
- Properly range check [count] specified on EXPECT commands
2018-09-19 14:46:40 -07:00
Mark Pizzolato
d35b8725a3 SCP: Add optional status value to EXIT command 2018-09-18 14:24:14 -07:00
Mark Pizzolato
371e5fe5cc SCP: Remove duplicate SET CONSOLE SPEED help text.
Fix #618
2018-09-13 08:20:22 -07:00
Mark Pizzolato
8bd73b3243 SCP: Fix ELSE command implementation
Reject nested IF & ELSE commands.
2018-08-29 20:39:05 -07:00
Mark Pizzolato
0daa80e03d SCP: Add support for library unit test routines 2018-08-26 18:15:30 -07:00
Mark Pizzolato
b2ff00ab87 SCP: Make debug duplicate message reduction properly the default behavior 2018-08-24 10:08:59 -07:00
Mark Pizzolato
c0f79d8812 SCP: Fix Xcode static analysis identified issues (Peter Schorn) 2018-08-12 03:16:44 -07:00
Mark Pizzolato
6070692581 SCP: Add unit to AIO_VALIDATE context message 2018-08-08 11:51:54 -07:00
Mark Pizzolato
482b6f1be4 SCP: Add ELSE command extension to the IF command processing. 2018-08-06 18:22:46 -07:00
Mark Pizzolato
a62789a505 SCP: Make repeated debug message summarization the default
The -F debug switch can now be used to avoid the repetitive message
summarization.  This will trade off debug log file size vs CPU cost to
summarize the output.
2018-08-06 07:37:04 -07:00
Mark Pizzolato
a8d4fe8846 SCP: Fix potential NULL pointer dereference - Coverity 2018-08-04 08:28:12 -07:00
Mark Pizzolato
b18fa8c045 SCP: Prepare for new sim_card interfaces 2018-07-29 19:51:09 -07:00
Mark Pizzolato
7a08f2368e SCP: Add debug duplicate line output summary support 2018-07-27 13:56:18 -07:00
Mark Pizzolato
9cc726790e SCP: Avoid "Unexpected internal error" for expected conditions 2018-07-27 08:39:23 -07:00
Mark Pizzolato
15fd71b97c SCP: Fix Coverity identified issues 2018-07-17 22:05:05 -07:00
Mark Pizzolato
65e931c1ff SCP: Provide context for unexpected event processing errors 2018-07-17 08:48:11 -07:00
Mark Pizzolato
97bee79faa TIMER: Fix overflow error in sim_idle_ms_sleep() timespec tv_nsec field
Backed out commit 484889ea5a since the overflow of the timespec tv_nsec
field was the real cause of the problem.  No need for an extra mutex.

As reported in #595
2018-07-15 10:11:14 -07:00
Mark Pizzolato
5d7dc4d676 SCP: Fix uninitialized variable reference 2018-07-15 07:18:59 -07:00
Mark Pizzolato
82ea9c59ca SCP: Add substring and string substitution to environment variable expansion 2018-07-14 18:29:26 -07:00
Mark Pizzolato
2c55ad0cfa SCP: Let sim_messagef() be well behaved when stat is SCPE_OK 2018-07-13 18:05:30 -07:00
Mark Pizzolato
484889ea5a TIMER: Changed sim_idle_ms_sleep() to use a mutex which is unique to idling
It seems that the prior use of sim_asynch_lock RECURSIVE mutex could
cause a pthread_cond_timedwait() failure with EINVAL returned.
As discussed in #595
2018-07-11 11:59:05 -07:00
Mark Pizzolato
d593cdb98b SCP: Add prompt prior to fatal exit allowing error messages reading
As discussed in #594
2018-07-08 14:55:55 -07:00
Mark Pizzolato
58ccb38d7b SCP: Add ability to ECHOF output to TMXR lines 2018-07-06 17:57:05 -07:00
Mark Pizzolato
d3da865e9b TMXR: Fix MUX transmit scheduling when buffer is empty
Also:
- Enhance SHOW MUX to support "SHOW MUX <dev>"
- Fix potential null pointer dereference with unusual ATTACH combinations
- Allow BPS factor to change without specifying an explicit speed.
2018-06-23 11:30:02 -07:00
Mark Pizzolato
c9dae318df SCP: Avoid need for TMXR devices to have dummy DEVICE examine and deposit values 2018-06-19 23:58:22 -07:00
Mark Pizzolato
3b8442ce71 SCP: Set UNIT_IDLE in the step unit so idline can happen during "STEP -t nnn" 2018-06-19 23:41:09 -07:00
Mark Pizzolato
6b7798781d TIMER: Allow recording of elapsed time when asynch events arrive while idling
As discussed in #578
2018-06-14 12:40:22 -07:00
Mark Pizzolato
d39864669a SCP: Fix potential null pointer dereference in debug expression 2018-06-14 01:36:05 -07:00
Mark Pizzolato
3973963b0c SCP: Make expression evaluation consistent 2018-06-13 00:36:22 -07:00