JPH01201739A - Program execution trace controller - Google Patents
Program execution trace controllerInfo
- Publication number
- JPH01201739A JPH01201739A JP63025621A JP2562188A JPH01201739A JP H01201739 A JPH01201739 A JP H01201739A JP 63025621 A JP63025621 A JP 63025621A JP 2562188 A JP2562188 A JP 2562188A JP H01201739 A JPH01201739 A JP H01201739A
- Authority
- JP
- Japan
- Prior art keywords
- trace data
- program
- trace
- program execution
- execution
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔発明の目的〕
(産業上の利用分野)
本発明は、プラグラム実行中に異常が発生したとき、そ
の原因追求のためのトレースデータを得るプログラム実
行トレース制御装置に関するものである。[Detailed Description of the Invention] [Objective of the Invention] (Industrial Application Field) The present invention relates to a program execution trace control device that obtains trace data to investigate the cause of an abnormality when it occurs during program execution. It is.
(従来の技術)
一般に計算機システムにおいては、プログラムの1命令
ずつを解読し、この命令に従った処理を順次実行する。(Prior Art) Generally, in a computer system, each instruction of a program is decoded one by one, and processes according to these instructions are sequentially executed.
プログラム走行に異常が発生すると、プログラムは異常
終了するが、この場合は異常終了の原因を明確にする必
要がある。If an abnormality occurs during program execution, the program will terminate abnormally, but in this case, it is necessary to clarify the cause of the abnormal termination.
従来は、プログラムが異常終了したとき、異常終了した
時点での情報および異常終了のコードなどが分るだけで
あり、異常終了の原因あるいはその経過を判断すること
が困難であり、人間の知識や経験に頼ったり、オフライ
ンのデバッガを用いる必要があるなど、原因追求のため
に多大の労力と時間を要していた。Conventionally, when a program terminates abnormally, only the information at the time of the abnormal termination and the abnormal termination code are known, making it difficult to determine the cause of the abnormal termination or its progress, and it is difficult to determine the cause of the abnormal termination or its progress. It took a lot of effort and time to find the cause, such as relying on experience or using an offline debugger.
(発明が解決しようとする課題)
本発明は、プログラムが異常終了するまでに走ったプロ
グラムの実行内容をトレースデータとして最新のものか
らサイクリックに保存しておくことによって、異常終了
に至るまでの経過を記録として取出し、これによって異
常終了の原因追求を容易にするプログラム実行トレース
制御装置を提供することを目的としている。(Problem to be Solved by the Invention) The present invention cyclically saves the execution contents of the program that ran until the program terminated abnormally as trace data, starting from the latest one. It is an object of the present invention to provide a program execution trace control device that records the progress of the program and thereby facilitates the investigation of the cause of abnormal termination.
(課題を解決するための手段と作用)
本発明はトレース指定されたプログラムの実行内容をト
レースデータとして順次主メモリ上に記憶させるトレー
スデータ作成装置と、プログラム実行中の異常を検出し
たとき上記主メモリ上のトレースデータを外部記憶装置
に転送するトレースデータ転送装置と、オペレータから
の要求に応じて上記外部記憶装置上のトレースデータを
プリントアウトする印字出力装置を備え、プログラムが
異常終了したとき、上記プリントアウトされたトレース
データを解析することによって、異常原因が容易に判別
できるようにしたプログラム実行トレース制御装置であ
る。(Means and Effects for Solving the Problems) The present invention provides a trace data creation device that sequentially stores the execution contents of a program specified for tracing in a main memory as trace data, and a A trace data transfer device that transfers trace data on the memory to an external storage device, and a print output device that prints out the trace data on the external storage device in response to a request from an operator, and when a program terminates abnormally, This program execution trace control device allows the cause of an abnormality to be easily determined by analyzing the printed trace data.
(実施例) 本発明の一実施例を第1図に示す。(Example) An embodiment of the present invention is shown in FIG.
第1図において、1はプログラムの実行制御を行うと共
に、そのプログラムをトレースするか否かの判定をプロ
グラムトレース指定スイッチaの指定によって行うプロ
グラム実行装置、2はトレース指定されたプログラムの
実行内容をトレースデータとして最新のものからサイク
リックに主メモリのエリアb上に編集するトレースデー
タ作成装置、3は常にプログラムの動作状態を監視し、
何らかの原因でプログラムに異常が発生したときこれを
検出するプログラム異常検出装置、4は上記異常検出信
号に応じて主メモリ上のトレースデータを外部記憶装置
Cに転送するトレースデータ転送装置、5は外部記憶装
置C上のトレースデータをオペレータ操作dに応じて印
字情報eとしてプリントアウトするトレースデータ印字
出力装置である。In FIG. 1, 1 is a program execution device that controls the execution of a program and determines whether or not to trace the program by specifying a program trace designation switch a; 2 is a program execution device that controls the execution of a program specified for tracing; A trace data creation device 3 constantly monitors the operating state of the program, cyclically editing the latest trace data onto area b of the main memory;
A program abnormality detection device detects when an abnormality occurs in a program due to some reason; 4 is a trace data transfer device that transfers trace data on the main memory to an external storage device C in response to the abnormality detection signal; 5 is an external device; This is a trace data print output device that prints out trace data on a storage device C as print information e in response to an operator operation d.
第2図はトレースデータの一例を示すもので、第2図(
A)はプログラムの構成、第2図(B)はその動作フロ
ーチャート、第2図(C)はトレースデータの構成を示
している。Figure 2 shows an example of trace data.
A) shows the structure of the program, FIG. 2(B) shows its operation flowchart, and FIG. 2(C) shows the structure of trace data.
第2図において、ステップ■の条件が“眞”か偽”かに
よってステップに)の処理3またはステップ■の処理4
の何れかの処理が行われ、例えばステップ(3)の条件
が“償”であればステップの。In FIG. 2, depending on whether the condition of step
For example, if the condition of step (3) is "compensation", then one of the processes of step (3) is performed.
■、■、■、■の処理が行われ、第2図(C)に示すよ
うなトレースデータが作成される。The processes ①, ②, ②, and ② are performed, and trace data as shown in FIG. 2(C) is created.
上記トレースデータは新しいステップから順次サイクリ
ックに主メモリのトレースデータエリアb上に保存され
る。The above trace data is cyclically stored in the trace data area b of the main memory in sequence from a new step.
プログラム異常が発生すると、主メモリ上のトレースデ
ータは外部記憶装置Cに転送されると共に、主メモリ上
のトレースデータは削除される。When a program abnormality occurs, the trace data on the main memory is transferred to the external storage device C, and at the same time, the trace data on the main memory is deleted.
外部記憶装置上のトレースデータはオペレータの印字要
求dに応じて印字出力装置5によって印字情報eとして
プリントアウトされる。The trace data on the external storage device is printed out as print information e by the print output device 5 in response to an operator's print request d.
これによってプログラムが異常終了したとき、それまで
の最新の実行ステップの内容を印字出力させて調査でき
るので、異常原因の究明が容易になる。As a result, when a program terminates abnormally, the contents of the most recently executed steps can be printed out and investigated, making it easier to investigate the cause of the abnormality.
以上説明したように本発明によれば、プログラムの実行
内容をトレースデータとして主メモリ上にサイクリック
に記憶し、プログラムが異常終了したとき、このトレー
スデータを外部記憶装置に転送すると共に、これをプリ
ントアウトできるようにしているので、このトレースデ
ータを解析することによってプログラム異常終了時のプ
ログラムの処理経過を把握し、プログラム異常の原因を
容易且つ明確に判別できるので、原因究明のための時間
および労力を大幅に軽減することが可能となる。As explained above, according to the present invention, the execution contents of a program are cyclically stored in the main memory as trace data, and when the program terminates abnormally, this trace data is transferred to an external storage device and is Since it can be printed out, by analyzing this trace data, you can understand the process progress of the program when the program terminates abnormally, and the cause of the program abnormality can be easily and clearly determined. This saves time and money spent investigating the cause. It becomes possible to significantly reduce labor.
第1図は本発明の一実施例を示すシステム構成図、第2
図(A)、(B)、(C)はそれぞれ本発明の詳細な説
明するためのプログラム構成図、動作フローチャート、
およびトレースデータ構成図である。
1 プログラム実行装置
2 トレースデータ作成装置
3 プログラム異常検出装置
4 トレースデータ転送装置
5 トレースデータ印字出力装置
a プログラムトレース指定スイッチ
b 主メモリトレースデータエリア
C外部記憶装置
d オペレータ操作
e 印字情報
代理人 弁理士 則 近 憲 佑
同 山 下 −
第1図
(A)
(C)
第2図Fig. 1 is a system configuration diagram showing one embodiment of the present invention;
Figures (A), (B), and (C) are a program configuration diagram, an operation flowchart, and an operation flowchart for explaining the present invention in detail, respectively.
and a trace data configuration diagram. 1 Program execution device 2 Trace data creation device 3 Program abnormality detection device 4 Trace data transfer device 5 Trace data print output device a Program trace designation switch b Main memory trace data area C external storage device d Operator operation e Print information agent Patent attorney Noriyuki Chika Yudo Yamashita - Figure 1 (A) (C) Figure 2
Claims (1)
ータとして順次主メモリ上に記憶させるトレースデータ
作成装置と、プログラム実行中の異常を検出したとき上
記主メモリ上のトレースデータを外部記憶装置に転送す
るトレースデータ転送装置と、オペレータからの要求に
応じて上記外部記憶装置上のトレースデータをプリント
アウトする印字出力装置を備えたことを特徴とするプロ
グラム実行トレース制御装置。A trace data creation device that sequentially stores the execution contents of a trace-specified program on main memory as trace data, and a trace data that transfers the trace data on the main memory to an external storage device when an abnormality is detected during program execution. A program execution trace control device comprising a transfer device and a printout device for printing out trace data on the external storage device in response to a request from an operator.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63025621A JPH01201739A (en) | 1988-02-08 | 1988-02-08 | Program execution trace controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63025621A JPH01201739A (en) | 1988-02-08 | 1988-02-08 | Program execution trace controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH01201739A true JPH01201739A (en) | 1989-08-14 |
Family
ID=12170952
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63025621A Pending JPH01201739A (en) | 1988-02-08 | 1988-02-08 | Program execution trace controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH01201739A (en) |
-
1988
- 1988-02-08 JP JP63025621A patent/JPH01201739A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH01201739A (en) | Program execution trace controller | |
| US5124620A (en) | Control method for robots | |
| JPH028911A (en) | Programmable controller | |
| JPS63118964A (en) | Information processor | |
| JPH04248635A (en) | Probe effect eliminating method for parallel processing debugging | |
| JP3237678B2 (en) | Control device | |
| JP3037012B2 (en) | Database monitoring mechanism | |
| JP2684966B2 (en) | I/O processor debug unit | |
| JPH11119992A (en) | Trace controller for firmware | |
| JP2726998B2 (en) | Computer testing method | |
| JPS62271140A (en) | Programming tool | |
| JPH0281141A (en) | Trace control system | |
| JPH01171960A (en) | Printer apparatus | |
| JPH056315A (en) | Tracing system for input/output control device | |
| JPS60142754A (en) | Programming device | |
| JPH01134639A (en) | Trace stopping control system | |
| JPS62293444A (en) | Self-diagnosing method | |
| JPH04335445A (en) | Terminal fault information collecting system | |
| JPH0341897A (en) | Process data collection device | |
| JPH06139116A (en) | Program trace method | |
| JPS6362773B2 (en) | ||
| JPH07311733A (en) | SCSI controller | |
| JPS62244681A (en) | Printer | |
| JPS5872208A (en) | Data sending system | |
| JPH0325548A (en) | How to set peripheral device control information in a computer system |