Commit graph

229 commits

Author SHA1 Message Date
Peter Schorn
0f6bcb9682 SIMH: Fix spelling errors in comments and strings 2024-07-11 12:29:53 +02:00
B. Scott Michel
a275c71170 SCP: Reduce compiler warnings on LP64 platforms
(Note: Reducing compiler warnings across all, but primarily LP64
platforms, is a long term objective.)

Reduce compiler warnings on LP64 platforms (macOS, Windows) and 32-bit
builds (Win32). Prefer 'size_t' for pointer arithmetic, array indexing
and extents; 'int' hasn't been used for these purposes for many years
and across many ANSI standards. N.B. that conversions from int or int32
to size_t cause the compiler to zero-extend the value, which is
inefficient.

Refactor printf() format modifiers into sim_printf_fmts.h. Add the
SIZE_T_FMT modifier for better portability, especially on LP64 platforms
where size_t is unsigned long and sizeof(size_t) > sizeof(int).

3B2: Fix known size_t printf() format.
2024-02-01 12:51:32 -05:00
Bob Supnik
4562408a5f Common code: various bugfixes; Mac "Classic" and OS/2 support has been removed 2023-01-31 14:49:35 -05:00
Richard Cornwell
144d8a10cb SCP: On Windows fixed writing to Console when Console is file. 2022-10-24 18:37:03 -04:00
Mark Pizzolato
d3f1ee0998 CONSOLE: Set console input WAIT time to reflect console speed 2022-04-05 08:37:03 -07:00
Mark Pizzolato
35503f4765 TMXR: Add Access Control List (ACL) support for incoming network connections 2022-02-04 07:59:08 -08:00
Mark Pizzolato
b0dcd191bb SCP: Add missing console receive debug for telnet connect console 2022-01-15 19:32:55 -08:00
Mark Pizzolato
186fa30f37 SCP: Assure that remote console sessions continue after multiple reboots 2021-01-07 17:11:03 -08:00
Mark Pizzolato
852c0bc1bc SCP: Avoid seeking on attached sequential devices on non seekable files
As reported on #982
2020-12-14 18:48:14 -08:00
Mark Pizzolato
ddcc280a17 CONSOLE: Add binary mode option when opening the LOG file. 2020-11-01 09:47:22 -08:00
Mark Pizzolato
a02b87625c CONSOLE: Add REGister reflecting console character output count 2020-11-01 09:41:40 -08:00
Mark Pizzolato
9c1f4beae3 SCP: Migrate to use SCP internal timer base reference 2020-10-29 13:06:36 -07:00
Mark Pizzolato
31606161ce SCP: Avoid potential compiler warnings
Essentially all are non-functional problems but silencing them is a good idea
2020-10-09 05:09:41 -07:00
Mark Pizzolato
8fbec2d2aa REMOTE_CONSOLE: Properly support HELP
As reported in #931
2020-09-27 10:48:53 -07:00
Mark Pizzolato
0045601823 PDP11, PDP8: Allow console input to configure parity and KSR mode 2020-07-24 19:05:04 -07:00
Mark Pizzolato
d1f41d9c1f CONSOLE: Support auto WRU detection when sim_video is used 2020-06-12 06:25:04 -07:00
Mark Pizzolato
65778c7664 REMOTE_CONSOLE: Make STEP behavior consistent in master mode
As discussed in #866
2020-06-06 08:40:49 -07:00
Mark Pizzolato
e1a6a997eb REMOTE_CONSOLE: Avoid rate limiting output to remote console sessions
As discussed in #865
2020-06-02 12:06:18 -07:00
Mark Pizzolato
03a6d69c8d SCP: Assure that STEP is only allowed in MASTER mode remote console connections
The STEP command was inadvertently allowed to be parsed in non-master
mode connections, but it didn't actually work.  It has now been removed
from the generic remote console command table.

This was illuminated as of the discussion in #854
2020-05-25 09:55:24 -07:00
Mark Pizzolato
50ad9fbb82 SCP: Fix the allowed_remote_cmds to also list STEP before SAMPLEOUT
As discussed in #854
2020-05-22 15:54:38 -07:00
Mark Pizzolato
5ec4b3f2f4 SCP: Fix remote console command table ordering to have STEP near the beginning
This allowed user entered S to match the SAMPLEOUT command instead
of STEP.  That then identified a bug in the intended socket output
processing to attempt to be written to the undefined debug file.

As discussed in #854
2020-05-22 10:12:11 -07:00
Mark Pizzolato
4757632f9e SCP: Enable line wrapping at EOL on Windows console (Peter Schorn)
Simulators running directly in a Windows console session, that don't
have the console traffic redirected to a telnet session via
   SET CONSOLE TELNET=nnn
now behave similarly to the default behavior experienced on
non-windows hosts where the terminal session usually defaults to
wrapping at EOL.  Users who want more specific control of this behavior
can run their console via a telnet session with a terminal emulator that
lets them explicitly set these features in the emulator.

This change reintroduces this behavior which got lost when windows
support for ANSI (VT100) escape sequences were added to the console
sessions.
2020-05-16 03:57:36 -07:00
Mark Pizzolato
df63d4ff9f SCP: Reject undefined device with TESTLIB command
Also remove some otherwise unused variables (assignments but never used).
2020-05-05 12:57:43 -07:00
Mark Pizzolato
0170b7c6ab SCP: Convert more SHOW and debug output to use sim_vm_interval_units 2020-03-08 11:43:30 -07:00
Mark Pizzolato
b18912cda8 SCP: Silence GCC optimizer warnings about unused function results 2019-12-30 15:33:51 -08:00
Mark Pizzolato
7642d29f2c CONSOLE: Fix argument passing in SHOW CONSOLE
There are no extended arguments while parsing SHOW CONSOLE commands.
SHOW CONSOLE is a special parsing case somewhat equivalent to of SHOW
DEVICE for a device display.  No SHOW CONSOLE commands take value arguments.

Adopted from Dave Bryan's changes in V3.11
2019-12-28 10:45:03 -08:00
Mark Pizzolato
73a41c4bc7 SCP: Auto detect WRU being entered for simulators without a console device 2019-12-11 12:25:18 -08:00
Mark Pizzolato
6f5d8d3ed0 SCP: Honor -Q switch when enabling and disabling logging, suppress log date 2019-07-07 01:12:35 -07:00
Mark Pizzolato
4e0450cff9 SCP: Add support to uniquely identify SIGTERM in do procedures
As discussed in #681
2019-04-18 20:03:17 -07:00
Mark Pizzolato
fa77969c57 All: Fix various Coverity complaints 2019-04-03 09:32:54 -07:00
Mark Pizzolato
3d13218263 SCP: Add ability to set debug display switches on the fly 2019-03-26 14:04:09 -07:00
Mark Pizzolato
b59ad75217 SCP: Properly allow all debug option switches (EBCDIC and RAD50 text) 2019-03-26 01:39:13 -07:00
Mark Pizzolato
4b82a90c43 SCP: Assure that file buffers get flushed during frontpanel API halts
As reported in #668
2019-03-09 06:50:02 -08:00
Mark Pizzolato
880c8a89b7 PDP11, PDP18b, PDP8, VAX750, SCP: Silence Coverity identified complaints 2019-02-20 08:32:37 -08:00
Mark Pizzolato
183a8aab60 SCP: Change Unix debugger SIGINT command to SET CONSOLE DBGINT=n 2019-01-22 20:16:04 -08:00
Mark Pizzolato
cb9876ce65 SCP: Cleanup gcc compiler flagged potential issues
Compiler warnings about undeclared case fall throughs, and potential
buffer overruns,
2019-01-21 16:43:17 -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
3b8fc9d314 SCP: Avoid debug output noise when starting and stopping instruction execution 2018-11-08 21:36:33 -08:00
Mark Pizzolato
f8a18df1c4 SCP: Cleanup compiler warnings 2018-10-10 00:03:37 -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
b6b457a84d SCP: Fix Coverity identified issues 2018-09-28 20:47:54 -07:00
Mark Pizzolato
c49eea7a50 SCP: Use sim_messagef in console command output for consistency 2018-09-19 17:58:28 -07:00
Mark Pizzolato
6f2538380a SCP: Change use of O_NDELAY to O_NONBLOCK for Posix compatibility 2018-09-02 20:07:53 -07:00
Mark Pizzolato
7f9e60de58 SCP: Use O_NDELAY when putting fd 0 into non blocking mode on Linux 2018-09-02 07:30:02 -07:00
Mark Pizzolato
4ae55f57da SCP: Explicitly put fd 0 into non blocking mode when running simulation on Linux
This change is not actually necessary on Linux, but a bug in Windows
Subsystem for Linux (WSL) doesn't honor tcsetattr() with ICANON disabled
and VMIN and VTIME set to 0 should return immediately when no input data
is available, but it doesn't.  Setting the fd to non blocking produces
equivalent behavior.
2018-08-27 19:34:08 -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
7a08f2368e SCP: Add debug duplicate line output summary support 2018-07-27 13:56:18 -07:00
Mark Pizzolato
0a7c9de1e1 TMXR: Change rx and tx delta values to be usecs including the speed factor 2018-06-13 04:51:34 -07:00
Mark Pizzolato
ce390bbae4 TMXR: Make transmitted data consider the configured line speed factor
As discussed in #566
2018-05-18 13:25:30 -07:00
Mark Pizzolato
39802c465a makefile: Support mode Android versions when termux is used 2018-05-09 10:39:10 -07:00