Commit b4b52fa1 authored by Timothy E Baldwin's avatar Timothy E Baldwin Committed by ROOL

Fix *Dump on (apparently) empty files.

Special case for empty files was crashing, fix by removing
which also supports files which report a size of zero but
actually contain data such as Unix device nodes and
Linux procfs.

Error where start outside file adjusted to permit a start
exactly at the end of a file to permit (apparently) empty
files with no output. Doing likewise for non-empty files
is consistent.

Also fix closing file in case of error reading GS format
from CMOS.

Version 6.32. Tagged as 'Kernel-6_32'
parent 5f7b9b37
......@@ -9,12 +9,12 @@
GBLS Module_ApplicationDate
GBLS Module_HelpVersion
GBLS Module_ComponentName
Module_MajorVersion SETS "6.31"
Module_Version SETA 631
Module_MajorVersion SETS "6.32"
Module_Version SETA 632
Module_MinorVersion SETS ""
Module_Date SETS "18 Jan 2020"
Module_ApplicationDate SETS "18-Jan-20"
Module_Date SETS "19 Jan 2020"
Module_ApplicationDate SETS "19-Jan-20"
Module_ComponentName SETS "Kernel"
Module_FullVersion SETS "6.31"
Module_HelpVersion SETS "6.31 (18 Jan 2020)"
Module_FullVersion SETS "6.32"
Module_HelpVersion SETS "6.32 (19 Jan 2020)"
END
/* (6.31)
/* (6.32)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 6.31
#define Module_MajorVersion_CMHG 6.32
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 18 Jan 2020
#define Module_Date_CMHG 19 Jan 2020
#define Module_MajorVersion "6.31"
#define Module_Version 631
#define Module_MajorVersion "6.32"
#define Module_Version 632
#define Module_MinorVersion ""
#define Module_Date "18 Jan 2020"
#define Module_Date "19 Jan 2020"
#define Module_ApplicationDate "18-Jan-20"
#define Module_ApplicationDate "19-Jan-20"
#define Module_ComponentName "Kernel"
#define Module_FullVersion "6.31"
#define Module_HelpVersion "6.31 (18 Jan 2020)"
#define Module_LibraryVersionInfo "6:31"
#define Module_FullVersion "6.32"
#define Module_HelpVersion "6.32 (19 Jan 2020)"
#define Module_LibraryVersionInfo "6:32"
......@@ -1033,14 +1033,12 @@ Dump_Code Entry "$UtilRegs"
MOVEQ r6, #0
MOVEQ r4, #-1
CMP r4, #0 ; Zero length ?
BEQ UtilityExitCloseR1 ; Nothing to do then ! VClear
MOV r5, r9 ; Standard place for handle below
; Default display at load addr of file (r2) unless special
BL ReadGSFormat ; Only interested in some bits
MOVVS r1, r5
BVS UtilityExitCloseR1
AND r10, r1, #forcetbsrange + allowtbschar
......@@ -1062,8 +1060,8 @@ Dump_Code Entry "$UtilRegs"
10 Swap r2, r3 ; r2 := start, r3 := disp start
CMP r2, r4 ; Is ptr > ext ? VClear
MOVHS r1, r5
BLHS SetErrorOutsideFile
MOVHI r1, r5
BLHI SetErrorOutsideFile
MOVVC r0, #OSArgs_SetPTR
MOVVC r1, r5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment