JPH06242993A - Exception message generation system for information processor - Google Patents

Exception message generation system for information processor

Info

Publication number
JPH06242993A
JPH06242993A JP5051401A JP5140193A JPH06242993A JP H06242993 A JPH06242993 A JP H06242993A JP 5051401 A JP5051401 A JP 5051401A JP 5140193 A JP5140193 A JP 5140193A JP H06242993 A JPH06242993 A JP H06242993A
Authority
JP
Japan
Prior art keywords
exception
information
flag
message
entry
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5051401A
Other languages
Japanese (ja)
Inventor
Koichi Matsumoto
浩一 松本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP5051401A priority Critical patent/JPH06242993A/en
Publication of JPH06242993A publication Critical patent/JPH06242993A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the performance by reducing the throughput of an exception processing means when an exception message for the exception is generated if an exception is generated during program execution. CONSTITUTION:An exception check means 1 once detecting the exception reports the ID number of the exception to the exception processing means 2. The exception processing means 2 retrieves a table 3 according to the ID number and reads out the contents of the corresponding entry. A flag indicating where exception information required for the message generation of the exception is present is previously set in the entry, so the exception information are taken out of places 4-7 by checking the flag to generate the exception message.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は情報処理装置の例外メッ
セージ生成システムに関し、特にプログラム実行中に検
出された例外の例外メッセージを生成するに必要な情報
を当該例外の種類に応じて情報処理装置の各部から取出
すよう構成された情報処理装置における例外処理方式に
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an exception message generation system for an information processing apparatus, and in particular, information necessary for generating an exception message of an exception detected during program execution, according to the type of the exception. The present invention relates to an exception processing method in an information processing device configured to be taken out from each unit of the above.

【0002】[0002]

【従来の技術】情報処理装置の機能として、実行される
ソフトウェアの命令が不正な動作を行うかどうかを常に
チェックし、またソフトウェアの命令実行中に機能的に
組込まれた特定の事象が発生したかどうかをチェック
し、それ等の発生がチェックされた場合には、例外とし
てソフトウェアへ報告する機能がある。一般的に、この
機能は、ハードウェアやファームウェアにより例外が検
出されると、例外処理手段が起動されて例外処理が行わ
れることにより実現されるようになっいる。例外を検出
した例外処理手段は、情報処理装置の機能仕様に従っ
て、ソフトウァアへ報告するための例外メッセージを作
成する。この例外メッセージは、例外の種類や例外の原
因となった要素等を含む情報である。
2. Description of the Related Art As a function of an information processing apparatus, it is constantly checked whether or not an instruction of software to be executed performs an illegal operation, and a specific event functionally incorporated occurs during execution of the instruction of software. It has a function to check whether or not they occur and to report them as exceptions to the software if they occur. Generally, this function is realized by activating exception handling means and performing exception handling when an exception is detected by hardware or firmware. The exception processing unit that has detected the exception creates an exception message for reporting to the software according to the functional specifications of the information processing device. This exception message is information including the type of exception and the element that caused the exception.

【0003】この例外メッセージを作成するには、例外
メッセージを構成する情報(例外情報と呼ぶ)を必要と
する場合があるが、従来においては、例外チェック時に
動作するファームウェア等によりこれ等の情報を用意し
てから、例外のチェックを行う方法と、例外の検出後に
例外処理手段が例外の種類を判断し、その例外メッセー
ジに必要な例外情報は何か、どこにあるのか等を解析
し、それ等の情報を収集して例外メッセージを作成する
方法とがある。
In order to create this exception message, there is a case where information that constitutes the exception message (referred to as exception information) is required. Conventionally, such information is provided by firmware or the like that operates at the time of exception check. After preparing, the method of checking the exception and the exception handling means after detecting the exception determine the kind of exception, analyze what is the exception information necessary for the exception message, where it is, etc. There is a method of collecting the information of and creating an exception message.

【0004】[0004]

【発明が解決しようとする課題】上述した従来の例外情
報の取出し方法のうち前者の方法,すなわち例外チェッ
ク時に動作しているファーム等により例外メッセージ作
成に必要な情報を用意する方法では、例外が検出されて
例外処理手段に制御が移行する前にこの方法が実行され
なければならないので、例外チェック前に例外情報を用
意する処理が必要となる。そのために、例外が検出され
る/されないにかかわらずその処理を実行しなくてはな
らず、よってファームウェアの通常処理が影響を受け、
性能低下を招来するという欠点がある。
In the former method of extracting the exception information described above, that is, in the method of preparing the information necessary for creating the exception message by the firmware or the like operating at the time of the exception check, the exception is generated. Since this method must be executed before the control is detected and the control is transferred to the exception processing means, a process of preparing exception information before the exception check is required. Therefore, the processing must be executed regardless of whether or not the exception is detected, and thus the normal processing of the firmware is affected,
There is a drawback in that performance is degraded.

【0005】また、従来の例外情報の取出し方法のうち
後者の方法,すなわち検出された例外の例外情報がどこ
にあるのかを例外処理手段によって解析する方法では、
例外の種類毎に個別の処理を行う必要があり、よって例
外の種類が多くなると例外処理が複雑になるという欠点
がある。
In the latter of the conventional methods of extracting exception information, that is, in the method of analyzing where the exception information of the detected exception is, by the exception processing means,
It is necessary to perform individual processing for each type of exception, so there is a drawback that exception processing becomes complicated when the number of types of exception increases.

【0006】そこで、本発明はこの様な従来のものの欠
点を解消すべくなされたものであって、その目的とする
ところは、例外チェック時に動作しているファームウェ
アや例外処理手段が例外情報を用意するといった処理を
無くし、ファームウェアや例外処理手段の処理を簡単化
して性能向上を図った情報処理装置の例外メッセージ生
成システムを提供することにある。
Therefore, the present invention has been made in order to solve the above-mentioned drawbacks of the conventional ones, and the purpose thereof is that the firmware operating at the time of exception check and the exception processing means prepare the exception information. It is an object of the present invention to provide an exception message generation system for an information processing apparatus, which eliminates the processing such as the above and simplifies the processing of the firmware and the exception processing means to improve the performance.

【0007】[0007]

【課題を解決するための手段】本発明による情報処理装
置の例外メッセージ生成システムは、プログラムの実行
中における例外の発生を検出し発生した例外を識別する
ための例外識別情報を生成する例外チェック手段と、前
記プログラムの実行中に発生し得る全ての例外に夫々対
応するエントリを有し、各エントリには対応する例外の
例外情報を取出すための箇所を示すフラグが予め格納さ
れたテーブルと、前記例外チェック手段により生成され
た例外識別情報をキーとして前記テーブルを索引しこの
索引されたエントリのフラグを参照してこのフラグが示
す箇所から例外情報を導出して例外メッセージを生成す
る例外処理手段とを含むことを特徴とする。
An exception message generation system for an information processing apparatus according to the present invention is an exception check means for detecting exception occurrence during program execution and generating exception identification information for identifying the exception. And a table having entries respectively corresponding to all exceptions that may occur during the execution of the program, each entry having a flag pre-stored with a flag indicating a location for extracting exception information of the corresponding exception, Exception processing means for indexing the table using the exception identification information generated by the exception checking means as a key, referring to the flag of the indexed entry, deriving the exception information from the position indicated by this flag, and generating an exception message. It is characterized by including.

【0008】[0008]

【実施例】次に、本発明の実施例について図面を用いて
説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0009】図1は本発明の実施例のシステムブロック
図であり、図2は図1に示した例外テーブル3のエント
リ内容を説明する図である。これ等両図を参照すると、
例外チェック手段1は、ソフトウェアであるプログラム
が順次実行されている間、例外が発生しているかどうか
をハードウェアまたはファームウェアにより常にチェッ
クしており、その例外チェック方法は周知であってその
周知方法が用いられる。
FIG. 1 is a system block diagram of an embodiment of the present invention, and FIG. 2 is a diagram for explaining the entry contents of the exception table 3 shown in FIG. Referring to these two figures,
The exception checking means 1 always checks by hardware or firmware whether or not an exception has occurred during the sequential execution of software programs. The exception checking method is well known, and the well known method is Used.

【0010】この例外チェック手段1の例外チェックに
おいては、例外処理を行い易い様に例外の種類毎にそれ
を特定して識別するための例外識別情報(ID番号)を
予め付与しておくものである。例えば、ある例外はA,
別の例外はB,更に別の例外はCという様に、発生の可
能性のある全ての例外について夫々種類毎にA,B,
C,……,ZのID番号を予め付与しておくのである。
例外チェック手段1は例外発生を検出したら、この発生
識別のID番号を生成するようになっている。
In the exception check of the exception check means 1, exception identification information (ID number) for identifying and identifying each exception is given in advance so that exception processing can be performed easily. is there. For example, one exception is A,
Another exception is B, and yet another exception is C. For all possible exceptions, A, B, and
The ID numbers of C, ..., Z are given in advance.
When the exception checking means 1 detects an exception occurrence, it generates an ID number for identifying this occurrence.

【0011】例外処理手段2は例外チェック手段1から
の例外のID番号を受けると、このID番号により例外
テーブル3を検索し、このテーブル3の対応エントリ内
容を読出して、例外メッセージの作成に必要な例外情報
の収集を行う。
When the exception processing means 2 receives the exception ID number from the exception checking means 1, the exception table 3 is searched by this ID number, the corresponding entry contents of this table 3 are read, and it is necessary to create an exception message. Collect exceptional exception information.

【0012】例外テーブル3は発生し得るであろう例外
の全てに対応したエントリを有しており、このエントリ
は各例外のID番号A,B,C,……,Zをキーとして
検索可能となっている。この1エントリ31の内容が図
2に示されている。
The exception table 3 has entries corresponding to all possible exceptions, and this entry can be searched using the ID numbers A, B, C, ..., Z of each exception as keys. Has become. The contents of this one entry 31 are shown in FIG.

【0013】エントリ31は図2に示す如く、例外情報
の存在箇所を示すフラグF1〜Fnと、例外処理等に必
要なその他の情報Iとからなる。尚、このその他の情報
Iは本発明とは無関係であるので、説明は省略する。フ
ラグF1に“1”がセットされていれば、レジスタ4に
例外情報が存在することを示し、フラグF2に“1”が
セットされていれば、メモリ5内に例外情報が存在する
ことを示し、フラグF3に“1”がセットされていれ
ば、レジスタ6に例外情報が存在することを示すもので
ある。
As shown in FIG. 2, the entry 31 is composed of flags F1 to Fn indicating the location of the exception information and other information I necessary for exception processing and the like. Since the other information I is irrelevant to the present invention, its explanation is omitted. When the flag F1 is set to "1", it indicates that the exception information exists in the register 4, and when the flag F2 is set to "1", it indicates that the exception information exists in the memory 5. If the flag F3 is set to "1", it indicates that the exception information exists in the register 6.

【0014】従って、各例外毎のその例外メッセージに
必要な例外情報の存在箇所は、予めプログラム作成時に
判っているために、テーブル3内の各エントリのフラグ
F1〜Fnのうち当該フラグ(単数若しくは複数フラ
グ)に“1”をセットすることにより、予め登録されて
いるものとする。
Therefore, since the location of the exception information required for the exception message for each exception is known in advance when the program is created, the relevant flag (single or single) among the flags F1 to Fn of each entry in the table 3 is determined. By setting "1" in a plurality of flags), it is assumed to be registered in advance.

【0015】この様な構成において、その動作を説明す
る。あるプログラムのある命令実行中に、例外チェック
手段1がID番号Cの例外が生じたことを検出したとす
る。例外チェック手段1はこの検出に応答して例外処理
手段2へその旨を報告すると共に、その例外のID番号
をも生成して例外処理手段2へ送出する。
The operation of such a structure will be described. It is assumed that the exception checking means 1 detects that an exception with the ID number C has occurred while executing a certain instruction of a certain program. In response to this detection, the exception checking means 1 reports the fact to the exception processing means 2 and also generates the ID number of the exception and sends it to the exception processing means 2.

【0016】この報告を受けた例外処理手段2は情報処
理装置の制御動作を引継ぎ、例外チェック手段2から送
出されてきたID番号を用いてテーブル3のエントリの
検索を行い、エントリC内容を読出す。このエントリC
には、ID番号Cの例外チェックを作成するに必要な例
外情報の取出しフラグF1〜Fnが、他の情報Iと共に
格納されている。
Upon receipt of this report, the exception processing means 2 takes over the control operation of the information processing apparatus, searches the entry of the table 3 using the ID number sent from the exception checking means 2, and reads the contents of the entry C. put out. This entry C
In the table, the extraction flags F1 to Fn of the exception information necessary to create the exception check of the ID number C are stored together with other information I.

【0017】そこで、例外処理手段3はこの例外情報取
出しフラグF1〜Fnのうち“1”がセットされている
フラグを探し出し、そのセットされているフラグが示す
箇所から必要な例外情報を読出して、例外メッセージの
作成を行うのである。
Therefore, the exception processing means 3 searches for a flag in which "1" is set among the exception information fetch flags F1 to Fn, reads out the necessary exception information from the portion indicated by the set flag, The exception message is created.

【0018】例えば、エントリC内のセットされている
フラグはF1のみであれば、このフラグF1が示すレジ
スタ4に必要な例外情報が存在することが判るので、そ
のレジスタ4の内容を読出し、その読出し情報を用いて
例外メッセージを生成することになるのである。
For example, if the flag set in the entry C is only F1, it is known that the necessary exception information exists in the register 4 indicated by this flag F1, so the contents of the register 4 are read out and the The exception information will be generated using the read information.

【0019】セットされているフラグが複数存在すれ
ば、例外メッセージの作成に必要な情報が2箇所以上に
存在することを表わしているので、各々のフラグが示す
箇所から例外情報を読出して例外メッセージの作成に用
いることになる。
If there are a plurality of flags set, it means that the information necessary for creating the exception message exists in two or more places. Therefore, the exception information is read from the place indicated by each flag and the exception message is read. Will be used to create.

【0020】また、同一種類の例外であっても、状況に
応じて必要とする情報が異なる場所に存在することもあ
る。その場合には、同じ種類の例外でも異なるID番号
を付与しておき、例外情報取出しフラグを別にセットし
ておくことで、夫々に必要な情報を得ることができる。
In addition, even if the exceptions are of the same type, the required information may exist in different places depending on the situation. In this case, different ID numbers are given to the same type of exceptions, and the exception information take-out flag is set separately, so that necessary information can be obtained for each.

【0021】[0021]

【発明の効果】以上述べた如く、本発明によれば、例外
チェック手段により検出された例外に対する例外メッセ
ージを作成する場合、それに必要な情報が情報処理シス
テム内のどこに存在しているかを予め例外テーブルのエ
ントリに登録しておき、例外の発生に応答して、そのテ
ーブルから対応するエントリを読出してこのエントリ内
容に従って必要な情報の収集を行うことができるので、
例外チェック時に動作しているファームウェア等が例外
メッセージを作成するに必要な例外情報を用意する処理
や、例外処理手段が例外を解析してから例外情報を取出
す処理が不要となり、ファームウェアや例外処理手段の
処理が簡素化され性能向上が可能となるという効果があ
る。
As described above, according to the present invention, when an exception message for an exception detected by the exception checking means is created, it is preliminarily determined where in the information processing system the information necessary for the exception message exists. It is possible to register in the entry of the table, read the corresponding entry from the table in response to the occurrence of the exception, and collect the necessary information according to the contents of this entry.
There is no need for the processing that prepares the exception information necessary for the firmware that is operating during exception checking to create the exception message, and the processing that the exception processing means analyzes the exception and then retrieves the exception information. There is an effect that the processing of is simplified and the performance can be improved.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の実施例のシステムブロック図である。FIG. 1 is a system block diagram of an embodiment of the present invention.

【図2】図1の例外テーブルのエントリの内容を説明す
る図である。
FIG. 2 is a diagram for explaining the contents of entries in the exception table of FIG.

【符号の説明】[Explanation of symbols]

1 例外チェック手段 2 例外処理手段 3 例外テーブル 31 例外テーブルのエントリ F1〜Fn フラグ 1 Exception Checking Means 2 Exception Handling Means 3 Exception Table 31 Exception Table Entries F1 to Fn Flags

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 プログラムの実行中における例外の発生
を検出し発生した例外を識別するための例外識別情報を
生成する例外チェック手段と、前記プログラムの実行中
に発生し得る全ての例外に夫々対応するエントリを有
し、各エントリには対応する例外の例外情報を取出すた
めの箇所を示すフラグが予め格納されたテーブルと、前
記例外チェック手段により生成された例外識別情報をキ
ーとして前記テーブルを索引しこの索引されたエントリ
のフラグを参照してこのフラグが示す箇所から例外情報
を導出して例外メッセージを生成する例外処理手段とを
含むことを特徴とする情報処理装置の例外メッセージ生
成システム。
1. Exception checking means for detecting the occurrence of an exception during execution of a program and generating exception identification information for identifying the exception, and corresponding to all exceptions that may occur during the execution of the program. Table in which each entry has a flag in which a flag indicating a location for extracting the exception information of the corresponding exception is stored in advance, and the table is indexed using the exception identification information generated by the exception checking means as a key. An exception message generating system for an information processing apparatus, comprising: an exception processing unit that refers to the flag of the indexed entry and derives exception information from the position indicated by the flag to generate an exception message.
JP5051401A 1993-02-17 1993-02-17 Exception message generation system for information processor Pending JPH06242993A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5051401A JPH06242993A (en) 1993-02-17 1993-02-17 Exception message generation system for information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5051401A JPH06242993A (en) 1993-02-17 1993-02-17 Exception message generation system for information processor

Publications (1)

Publication Number Publication Date
JPH06242993A true JPH06242993A (en) 1994-09-02

Family

ID=12885925

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5051401A Pending JPH06242993A (en) 1993-02-17 1993-02-17 Exception message generation system for information processor

Country Status (1)

Country Link
JP (1) JPH06242993A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6359647A (en) * 1986-08-30 1988-03-15 Nec Corp Display system for exceptional event information
JPH04266135A (en) * 1991-02-20 1992-09-22 Nec Corp Memory image output system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6359647A (en) * 1986-08-30 1988-03-15 Nec Corp Display system for exceptional event information
JPH04266135A (en) * 1991-02-20 1992-09-22 Nec Corp Memory image output system

Similar Documents

Publication Publication Date Title
WO2019064370A1 (en) Log analysis system, log analysis method, log analysis program, and storage medium
JPH06242993A (en) Exception message generation system for information processor
CN115617564A (en) Processing method and device for kernel exception, electronic equipment and storage medium
US20090133124A1 (en) A method for detecting the operation behavior of the program and a method for detecting and clearing the virus program
JP2560892B2 (en) Error information processing device
JP2752827B2 (en) Debugger processing method
JPH08272624A (en) System and method for process exception recovery
JP2792383B2 (en) Verification method of processing result of batch processing system
JP2004046310A (en) Fault repair program application method, execution device of the same, and processing program of the same
JPH02249041A (en) Log data identification system
JPH0934753A (en) Event discriminating method, event discriminating device and identifier reference device
JPH07134669A (en) Alarm message processing system
JPH09160810A (en) Method for acquiring information of system
JPS59220849A (en) Image comparison control system
JP2002073373A (en) Program verification device to extract checking program to verify peripheral and similar functions based on confirmation and inspection item for modification
JPH05181697A (en) Diagnostic method for information processing system
JPH01118934A (en) Analysis/editing output system for error information
JPH03191437A (en) Data processor
JPH0384633A (en) Program error detecting device
JPH09231095A (en) Diagnostic test circuit
JPS5922147A (en) Checking system of retrial processing
JPH01211129A (en) Information processor
JPH0981381A (en) Object program comparison system
JPH0434627A (en) Log-out information acquisition control system
JPH0573351A (en) Information processor