JPH05250208A - Program reexecution processing system - Google Patents

Program reexecution processing system

Info

Publication number
JPH05250208A
JPH05250208A JP4051025A JP5102592A JPH05250208A JP H05250208 A JPH05250208 A JP H05250208A JP 4051025 A JP4051025 A JP 4051025A JP 5102592 A JP5102592 A JP 5102592A JP H05250208 A JPH05250208 A JP H05250208A
Authority
JP
Japan
Prior art keywords
program
information
file
memory
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
Application number
JP4051025A
Other languages
Japanese (ja)
Inventor
Kenji Nakazato
賢治 仲里
Mika Mazaki
美香 真崎
Koujirou Ogura
康二朗 小倉
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4051025A priority Critical patent/JPH05250208A/en
Publication of JPH05250208A publication Critical patent/JPH05250208A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To attain the instantaneous restart of a program and to improve the debugging efficiency by reading out the memory information and the file information to store them in each storing part and then generating an executing environment necessary for restart of the program. CONSTITUTION:A program 1 is provided together with a storing part 2 which stores the memory information, a storing part 3 which stores the file information, the saved file storing parts 42 and 43, and an execution control part 5. Then the memory and file information are generated wheile the program 1 is carried out with a command given from the part 5. When the program 1 carries out a prescribed address, the part 5 stores both memory and file information in the part 42 and 43 respectively. If a reexecution command is received from an address set in the course of the program 1, the contents of both parts 42 and 43 are read out and the memory and file information are stored in the parts 2 and 3 respectively. Then the execution of the program 1 is restarted in its middle address.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はプログラム再実行処理方
式に関する。プログラムをデバッグする際に、途中のア
ドレスからデバッグを再開させる場合に於いても、必要
な主記憶メモリ及びファイルの所定の内容を再現するた
めに、常にプログラムを最初のアドレスから起動させて
いた。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program re-execution processing system. When the program is debugged, even when the debugging is restarted from the middle address, the program is always started from the first address in order to reproduce the necessary predetermined contents of the main memory and the file.

【0002】所定のアドレスからのデバッグ再開時に、
バグ修正の終わったプログラム部分を最初から再び実行
させることなく即座に目的とするデバッグ再開アドレス
からプログラムを起動させても、プログラムを最初から
起動させ場合と同じデバッグ環境が生成されることが要
請されている。
When resuming debugging from a predetermined address,
It is required that even if the program is started immediately from the target debug restart address without re-executing the bug-corrected program part from the beginning, the same debug environment as when starting the program from the beginning is generated. ing.

【0003】[0003]

【従来の技術】図6に従来のプログラムデバッグの説明
図を示す。図6において、プログラム6は主記憶メモリ
61とファイル装置30をプログラム資源として使用し、プ
ログラム6の実行に伴いメモリ情報25と、ファイル情報
35が生成される。即ち、該プログラム6が実行開始ステ
ップであるステップa1から所定のステップaiまで実
行されると、主記憶メモリ61をリードライトしたことに
よりメモリ情報25が生成され、ファイル装置65をリード
ライトした結果ファイル情報35が生成される。
2. Description of the Related Art FIG. 6 shows an explanatory diagram of conventional program debugging. In FIG. 6, program 6 is a main memory
61 and the file device 30 are used as program resources, and the memory information 25 and the file information as the program 6 is executed
35 is generated. That is, when the program 6 is executed from step a1 which is an execution start step to a predetermined step ai, the memory information 25 is generated by reading and writing the main memory 61, and the result file obtained by reading and writing the file device 65. Information 35 is generated.

【0004】ステップaiの次のステップasからプロ
グラム6を再開させる場合、該プログラム6がステップ
a1からステップaiまで実行して生成したメモリ情報
25とファイル情報35が、プログラム再開のためのプログ
ラム環境として必要となる。
When the program 6 is restarted from step as following step ai, the memory information generated by the program 6 executing steps a1 to ai
25 and file information 35 are required as a program environment for program restart.

【0005】このために従来の方法は、ステップasか
らデバッグを再開する場合でも、、該プログラム6を再
び最初のステップa1からステップaiまで実行させる
ことにより、ステップas以降のデバッグのためのメモ
リ情報25と、ファイル情報35を生成してプログラムデバ
ッグに必要なプログラム環境を再現させている。
Therefore, in the conventional method, even when the debugging is restarted from the step as, the program 6 is executed again from the first step a1 to the step ai so that the memory information for the debugging after the step as is executed. 25 and file information 35 are generated to reproduce the program environment required for program debugging.

【0006】[0006]

【発明が解決しようとする課題】以上のようにプログラ
ムを途中のステップから再開させる場合は、再開の都
度、プログラムを最初のステップから起動して、必要な
プログラム環境を生成する必要があった。このためにプ
ログラム規模が増加してくると、プログラム環境を生成
するまでの時間が多くなり、デバッグ効率を落とすとい
った問題があった。
When the program is restarted from a step in the middle as described above, it is necessary to start the program from the first step each time it is restarted to generate a necessary program environment. For this reason, when the program scale increases, there is a problem in that it takes more time to generate the program environment and the debugging efficiency is reduced.

【0007】本発明は、所定のステップよりプログラム
を再開する場合、プログラムを最初のステップから走行
させることなく即座にプログラムを再開可能とし、プロ
グラムのデバッグ効率を向上させることを目的とする。
An object of the present invention is to improve the debugging efficiency of a program by allowing the program to be restarted immediately without running the program from the first step when the program is restarted from a predetermined step.

【0008】[0008]

【課題を解決するための手段】図1は本発明の原理ブロ
ック図である。プログラム1と、メモリ情報を格納する
格納部2と、ファイル情報を格納する格納部3と、退避
ファイル格納部42,43 と、実行管理部5とを有し、実行
管理部5からの指令に基づき実行されるプログラム実行
過程でメモリ情報とファイル情報を生成し、実行管理部
5は、プログラム1が所定のアドレスを実行すると、メ
モリ情報及びファイル情報を退避ファイル格納部42,43
へそれぞれ格納し、該プログラム1の途中のアドレスか
らの再実行指令があると、退避ファイル格納部42,43 の
内容を読出してメモリ情報及びファイル情報をそれぞれ
前記格納部2,3 へ生成し、該プログラム1を前記途中の
アドレスから実行を再開させる。
FIG. 1 is a block diagram showing the principle of the present invention. It has a program 1, a storage unit 2 for storing memory information, a storage unit 3 for storing file information, save file storage units 42, 43, and an execution management unit 5, and receives a command from the execution management unit 5. Memory information and file information are generated in the process of executing the program based on the program. When the program 1 executes a predetermined address, the execution management unit 5 saves the memory information and the file information in the save file storage units 42 and 43.
When there is a re-execution command from an address in the middle of the program 1, the contents of the save file storage units 42 and 43 are read to generate memory information and file information in the storage units 2 and 3, respectively. Execution of the program 1 is restarted from the midway address.

【0009】[0009]

【作用】実行管理部5は、プログラム1を起動し、該プ
ログラム1が所定のアドレスを実行すると、該プログラ
ム1が格納部42,43 へ生成したメモリ情報及びファイル
情報3をそれぞれ退避ファイル42,43 へ退避し、該プロ
グラム1の途中のアドレスからの再実行指令があると、
退避ファイル格納部42,43 へ退避したメモリ情報2とフ
ァイル情報3を読出して、それぞれ前記格納部2,3 へ生
成し、該プログラム1の再開に必要な実行環境を生成す
ることにより、プログラムを最初のステップから前記途
中のアドレスまで走行させることなくデバッグの再開が
可能となり、デバッグ効率の向上が期待出来る。
When the program 1 starts the program 1 and the program 1 executes a predetermined address, the execution management unit 5 saves the memory information and the file information 3 generated in the storage units 42, 43 by the save file 42, respectively. Save to 43, and if there is a re-execution command from an address in the middle of the program 1,
By reading the memory information 2 and the file information 3 saved in the save file storage units 42, 43 and generating them in the storage units 2, 3 respectively, and by generating the execution environment necessary for restarting the program 1, the program can be executed. Debugging can be restarted without traveling from the first step to the address on the way, and improvement in debugging efficiency can be expected.

【0010】[0010]

【実施例】図2に実施例のシステム構成図を示す。図2
に示すシステムは、実行管理部5と、アプリケーション
プログラム(以下APLと略称する)10と、格納部2を
有するメモリ領域15と、再開情報部22とを有する計算機
処理装置20と、ディスプレイ装置(画面表示部と操作指
令等の入力部を有する)21と、格納部3を有するファイ
ル装置30と、退避ファイル格納部42,43 を有する外部記
憶装置4とから構成される。
EXAMPLE FIG. 2 shows a system configuration diagram of an example. Figure 2
The system shown in FIG. 1 includes an execution management unit 5, an application program (hereinafter abbreviated as APL) 10, a memory area 15 having a storage unit 2, a computer processor 20 having a restart information unit 22, and a display device (screen). 21) (which has a display unit and an input unit for operation commands, etc.), a file device 30 which has a storage unit 3, and an external storage device 4 which has save file storage units 42 and 43.

【0011】APL10は実行管理部5によって起動さ
れ、プログラム実行過程で生成するメモリ情報はメモリ
領域15の格納部2へ格納し、プログラム実行過程で生成
するファイル情報はファイル装置30の格納部3に格納す
る。
The APL 10 is activated by the execution management unit 5, stores the memory information generated in the program execution process in the storage unit 2 of the memory area 15, and stores the file information generated in the program execution process in the storage unit 3 of the file device 30. Store.

【0012】実行管理部(5)は、APL10が所定のア
ドレスを実行すると、格納部2の内容及び格納部3の内
容をそれぞれ退避ファイル格納部(42,43 )へ退避させ
る。APL10がプログラムの開始アドレスからプログラ
ムステップを実行していく過程での格納部2に生成され
るメモリ情報(Ci)並びに格納部3に生成されるファ
イル情報(Fi)を、図3のプログラムの実行とメモリ
情報及びファイル情報に示す。
When the APL 10 executes a predetermined address, the execution management unit (5) saves the contents of the storage unit 2 and the contents of the storage unit 3 to the save file storage units (42, 43), respectively. Executing the program of FIG. 3 with the memory information (Ci) generated in the storage unit 2 and the file information (Fi) generated in the storage unit 3 in the process of the APL 10 executing the program step from the start address of the program. And memory information and file information.

【0013】図3において、APL10がプログラム開始
ステップS1から順次ステップを実行し、ステップSi
を実行したときのメモリ情報並びにファイル情報が、そ
れぞれCi,Fiで示されている。
In FIG. 3, the APL 10 sequentially executes steps from the program start step S1 to step Si.
The memory information and the file information when executing is indicated by Ci and Fi, respectively.

【0014】次に、APL10のステップSi迄のプログ
ラムデバッグが完了し、再度該プログラムAPL10の実
行を、ステップSiの次のステップ(ステップSx)か
ら再開させる場合の説明を、図4のプログラムの再開準
備手順、図5のプログラムの再開の説明図を参照しなが
ら行う。
Next, a description will be given of the case where the program debugging up to the step Si of the APL10 is completed and the execution of the program APL10 is restarted from the step (step Sx) next to the step Si. This is performed with reference to the preparation procedure and the explanatory diagram of the restart of the program in FIG.

【0015】図4に於いて、オペレータは処理ステップ
80でデバッグを再開するアドレス情報(mi)をパラメ
タとするプログラム再開コマンドを、ディスプレイ装置
21のキー入力部(図示せず)から入力する。処理ステッ
プ81で実行管理部5は、アドレス情報(mi)を読込
み、該アドレス情報(mi)に対応して格納されている
APL10のプログラム(ステップSi)に割込みフラグ
を設定する。該該割込みフラグは、ステップSiのプロ
グラムが実行されると、実行管理部5に対し割込みが発
生するように設定される。
In FIG. 4, the operator takes the processing steps.
The program restart command with the address information (mi) for restarting debugging at 80 as a parameter is displayed on the display device.
Input from 21 key input section (not shown). In process step 81, the execution management unit 5 reads the address information (mi) and sets an interrupt flag in the program (step Si) of the APL10 stored in correspondence with the address information (mi). The interrupt flag is set so that an interrupt is issued to the execution management unit 5 when the program of step Si is executed.

【0016】実行管理部5は処理ステップ82で、プログ
ラム開始か否かの応答入力をオペレータから待つ。オペ
レータがディスプレイ装置21からプログラム開始の指令
を入力すると処理ステップ83で、実行管理部5はAPL
10を実行開始アドレスから起動し、APL10からの所定
の割込みを監視する。
In step 82, the execution management unit 5 waits for the operator to input a response indicating whether or not the program has started. When the operator inputs a program start command from the display device 21, in step 83, the execution management unit 5 sets the APL
10 is started from the execution start address, and a predetermined interrupt from APL10 is monitored.

【0017】起動されたAPL10が、割込みフラグの設
定されたステップSiのプログラムを実行すると、実行
管理部5に対しプログラム割込みが発生する。割込みを
検知した実行管理部5は処理ステップ84で、格納部2の
内容(メモリ情報Ci)を読出し、外部記憶装置4の退
避ファイル格納部42へ退避する。同様に格納部3の内容
(ファイル情報Fi)をファイル装置30から読出し、外
部記憶装置4の退避ファイル格納部43へ退避する。
When the activated APL 10 executes the program of step Si in which the interrupt flag is set, a program interrupt is issued to the execution management unit 5. In step 84, the execution management unit 5 that has detected the interruption reads the contents (memory information Ci) of the storage unit 2 and saves it in the save file storage unit 42 of the external storage device 4. Similarly, the content (file information Fi) of the storage unit 3 is read from the file device 30 and saved in the save file storage unit 43 of the external storage device 4.

【0018】処理ステップ85で実行管理部5は、ステッ
プSiの次のステップ(ステップSx)のアドレス情報
(アドレスmx),退避ファイル格納部42,43 のファイ
ル名を再開情報部22へ登録する。処理ステップ86でプロ
グラム再開の準備完了のメッセージをディスプレイ装置
21に表示する。
In process step 85, the execution management unit 5 registers in the restart information unit 22 the address information (address mx) of the next step (Step Sx) after the step Si and the file names of the save file storage units 42 and 43. A message indicating that the program is ready for restart is displayed at processing step 86.
Display on 21.

【0019】次に再開の準備が出来たAPL10を起動さ
せる場合、図5の処理ステップ91でオペレータは、ディ
スプレイ装置21から該APL10の再開コマンドを入力す
る。再開コマンドが入力されると処理ステップ92で実行
管理部5は、再開情報部22の登録情報の有無をチェック
する。
Next, when activating the APL 10 which is ready to be restarted, the operator inputs a restart command for the APL 10 from the display device 21 in processing step 91 of FIG. When the restart command is input, the execution management unit 5 checks the presence / absence of registration information in the restart information unit 22 in processing step 92.

【0020】再開情報部22に登録情報が格納されていな
ければ、処理ステップ95で、APL10をプログラム開始
ステップS1から起動する。再開情報部22に登録情報が
格納されておれば、処理ステップ93で実行管理部5は、
外部記憶装置4から退避ファイル格納部42の内容を読出
してメモリ領域15の格納部2へ書き込み(メモリ情報C
iの復元)、退避ファイル格納部43の内容を読出してフ
ァイル装置30の格納部3へ書き込む(ファイル情報Fi
の復元)。
If the registration information is not stored in the restart information section 22, the APL 10 is started from the program starting step S1 in the processing step 95. If the registration information is stored in the restart information section 22, the execution management section 5
The contents of the save file storage unit 42 are read from the external storage device 4 and written to the storage unit 2 of the memory area 15 (memory information C
i), the contents of the saved file storage unit 43 are read and written in the storage unit 3 of the file device 30 (file information Fi
Restoration).

【0021】以上でプログラム再開の環境が整い、処理
ステップ94で実行管理部5は、APL10をステップSx
から起動する。
With the above processing, the environment for resuming the program is completed, and the execution management unit 5 executes APL10 in step Sx in processing step 94.
Start from.

【0022】[0022]

【発明の効果】実行管理部5は、プログラム1を所定の
アドレスから実行を再開させる場合に必要なメモリ情報
とファイル情報を、外部記憶装置4の退避ファイル格納
部42,43 から読出し、それぞれを格納部2,3に復元す
ることにより、プログラム1を最初から走行させること
なく、デバッグ再開アドレスからのデバッグが可能とな
る。
The execution management unit 5 reads the memory information and file information necessary for restarting the execution of the program 1 from a predetermined address from the save file storage units 42, 43 of the external storage device 4, and retrieves each of them. By restoring to the storage units 2 and 3, it is possible to debug from the debug restart address without running the program 1 from the beginning.

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

【図1】 本発明の原理ブロック図FIG. 1 is a block diagram of the principle of the present invention.

【図2】 実施例のシステム構成図FIG. 2 is a system configuration diagram of an embodiment.

【図3】 プログラムの実行とメモリ情報及びファイル
情報
[Fig. 3] Program execution and memory information and file information

【図4】 プログラムの再開準備手順[Figure 4] Program restart preparation procedure

【図5】 プログラムの再開の説明図[Figure 5] Illustration of program restart

【図6】 従来のプログラムデバッグの説明図FIG. 6 is an explanatory diagram of conventional program debugging.

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

1,6はプログラム、 10はアプリケーションプログラム(APL) 、 15はメモリ領域、 2,3は格納部、 20は計算機処理装置、 21はディスプレイ装置 22は再開処理部、 25はメモリ情報、 30はファイル装置、 35はファイル情報、 4は外部記憶装置、 42,43 は退避ファイル格納部、 5は実行管理部を示し、 61は主記憶メモリ、 80〜86,91〜95は処理ステップを表す。 1, 6 is a program, 10 is an application program (APL), 15 is a memory area, 2 and 3 are storage units, 20 is a computer processing device, 21 is a display device, 22 is a restart processing unit, 25 is memory information, and 30 is a file. A device, 35 is file information, 4 is an external storage device, 42 and 43 are saved file storage units, 5 is an execution management unit, 61 is a main memory, and 80 to 86 and 91 to 95 represent processing steps.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 プログラム(1)と、メモリ情報を格納
する格納部(2)と、ファイル情報を格納する格納部
(3)と、退避ファイル格納部(42,43 )と、実行管理
部(5)とを有し、 実行管理部(5)からの指令に基づき実行されるプログ
ラム実行過程でメモリ情報とファイル情報を生成し、 実行管理部(5)は、プログラム(1)が所定のアドレ
スを実行すると、メモリ情報及びファイル情報を退避フ
ァイル格納部(42,43 )へそれぞれ格納し、 該プログラム(1)の途中のアドレスからの再実行指令
があると、退避ファイル格納部(42,43 )の内容を読出
してメモリ情報及びファイル情報をそれぞれ前記格納部
(2,3)へ生成し、 該プログラム(1)を前記途中のアドレスから実行を再
開させることを特徴とするプログラム再実行処理方式。
1. A program (1), a storage unit (2) for storing memory information, a storage unit (3) for storing file information, a save file storage unit (42, 43), and an execution management unit ( 5), which generates memory information and file information in a program execution process executed based on a command from the execution management unit (5), and the execution management unit (5) sets the program (1) at a predetermined address. When the command is executed, the memory information and the file information are respectively stored in the save file storage unit (42, 43), and when there is a re-execution command from an address in the middle of the program (1), the save file storage unit (42, 43) ), The memory information and the file information are respectively generated in the storage units (2, 3), and the execution of the program (1) is restarted from the midway address. .
JP4051025A 1992-03-10 1992-03-10 Program reexecution processing system Pending JPH05250208A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4051025A JPH05250208A (en) 1992-03-10 1992-03-10 Program reexecution processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4051025A JPH05250208A (en) 1992-03-10 1992-03-10 Program reexecution processing system

Publications (1)

Publication Number Publication Date
JPH05250208A true JPH05250208A (en) 1993-09-28

Family

ID=12875269

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4051025A Pending JPH05250208A (en) 1992-03-10 1992-03-10 Program reexecution processing system

Country Status (1)

Country Link
JP (1) JPH05250208A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58201152A (en) * 1982-05-19 1983-11-22 Hitachi Ltd Automatic information acquition system
JPH03225533A (en) * 1990-01-31 1991-10-04 Fujitsu Ltd Copy-on-write reverse execution check system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58201152A (en) * 1982-05-19 1983-11-22 Hitachi Ltd Automatic information acquition system
JPH03225533A (en) * 1990-01-31 1991-10-04 Fujitsu Ltd Copy-on-write reverse execution check system

Similar Documents

Publication Publication Date Title
JPH05250208A (en) Program reexecution processing system
JP3339708B2 (en) Event recording method
JP2663895B2 (en) CPU simulator
JPH01205343A (en) System for resuming interruption of process in electronic computer system
JPH07200350A (en) Software debugger
JPS5835648A (en) Program execution controlling system
JP2001166966A (en) Method for managing execution environment of program to be tested in debugger
JPS63228341A (en) Program syntax checking system
JPH0561717A (en) Program debugging device
JPH0231241A (en) Adverse restoring system for program
JPH0816431A (en) Debugging process system for user program
JPH0651857A (en) Method for outputting voice and image
JPH0468446A (en) Debugging supporting device
JPS6214240A (en) Program inspecting system
JPH11272516A (en) Dump output control system
JPH08272653A (en) Freeze processing system
JPH05324416A (en) System error history saving system
JPH06214828A (en) Interactive debug controller
JPS62196742A (en) Data collecting system for memory resident module
JPS63201740A (en) Data editing system for service processor
JPH0497461A (en) Memory test system
JPS63173139A (en) Auxiliary system for debug of program
JPH06103107A (en) Program tracing method
JPH0772874B2 (en) Interrupt receiving device
JPH0222738A (en) Reexecution job name display system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19980421