Configurable Os argument checker
- Size
- 30K (30,991 bytes)
- Added
- 2026-11-20 02:43
- Downloads
- 2
- Long Description
- OsGrind is a configurable/scriptable debugging tool to validate arguments of operating system calls against requirements specified in the Autodocs. In case the parameters are invalid, the tool creates debugging ouptut, including registers, stack retrace, hunk and segment information and generates a disassembly around the return path. OsGrind has similar goals than PatchWork by Richard Körber, but it does not have the checks built-in. Instead, all validation tests are configured through an external file which is compiled at run time to executable code. ---------------------------------------------------------------------- New in release 40.4: - OsGrind now also prints symbol/offset and source file/line number information if SegTracker v47 is available and has been started with the "LoadSymbols" parameter to extract such information from the loaded binary. ---------------------------------------------------------------------- New in release 40.3: - If the mmu.library is present and loaded, OsGrind now checks the address of the stack lines before it attempts to print them. This avoids MuForce hits in case the stack area of the traced process is protected by MuGuardianAngel, and OsGrind would then attempt to read beyond the end of the allocated stack area. ---------------------------------------------------------------------- New in release 40.2: - The AREGCHECK option missed to check register A2. - All calls through the dos.library check now whether A6 is loaded with DOSBase and create a warning if not so. While forgetting to load A6 with DOSBase was permissible in Kick 1.3 and before due to the BCPL nature of dos, it is expected this will be phased out in the future. - All calls through the public dos.library GlobVec create now a warning. Again, this was permissible in Kick 1.3 and before, though it is expected that BCPL legacy will be phased out. ---------------------------------------------------------------------- Release 40.1: First official (non-preview) release - The assembly syntax parser also attempted to contents of macros instead of skipping them, causing some confusion. - The assembly syntax parser did not recognize the ' operator. - The ##check block parser got confused on terminating blank spaces. In net effect, this caused parsing errors on <dos/dos.i>. - OsGrind is now also prepared to patch functions that are used within the SetFunction() function itself. - The OsGrind.config file was extended to also check for the validity of the mode/type arguments of Open() and Lock(). - There was a bad bit check in AllocNamedObject() that was fixed in the default OsGrind.config. ---------------------------------------------------------------------- Release 40.0: This is an internal beta release. ---------------------------------------------------------------------- Installation: - Copy OsGrind to whereever you like, possibly C: - Copy OsGrind.config to ENVARC: The config file assumes that the following assigns are made: FD: shall point to the directory containing the library definition files, such as exec_lib.fd or dos_lib.fd. INCLUDE: shall point to the directory containing the operating system include files, preferably the V44 (Os 3.9) or later includes. It is recommended to install the following additional components: - SegTracker: If SegTracker is available and run upfront this tool, OsGrind will print hunk and offset information of the stack trace back. - disassembler.library (from the MuForce package): If present, OsGrind may be instructed to generate a disassembly around the faulty call path. - Sashimi: By default, OsGrind will report its debug output to the serial port, 9600 baud, 8 bit, no parity. With Sashimi, debug output can be redirected to a console. Optionally, with Os 3.2 or above, the system logger of the boot menu can be used to this end as well. - MuForce: To capture additional problems, installing this tool is recommended as well