JPH04369048A - Program correcting system in debugging - Google Patents
Program correcting system in debuggingInfo
- Publication number
- JPH04369048A JPH04369048A JP3145912A JP14591291A JPH04369048A JP H04369048 A JPH04369048 A JP H04369048A JP 3145912 A JP3145912 A JP 3145912A JP 14591291 A JP14591291 A JP 14591291A JP H04369048 A JPH04369048 A JP H04369048A
- Authority
- JP
- Japan
- Prior art keywords
- program
- data
- modification
- correction
- debugging
- 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.)
- Withdrawn
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【0001】0001
【産業上の利用分野】本発明はプログラムのデバッグ作
業効率の向上を図ったデバッグ時におけるプログラム修
正方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program modification method during debugging, which improves the efficiency of program debugging.
【0002】0002
【従来の技術】プログラムのデバッグ作業は、従来、図
10に示すように、ディスク装置1から対象プログラム
2を、主記憶装置3にローディングしたのち、プログラ
ムを実行し、この実行中にデバッグ補助ツール4を用い
てオペレータがキーボード5を操作することにより、プ
ログラム内のデータミスM1 や論理ミスM2 (この
論理ミスM2 は分岐処理してプログラムの外に出して
修正作業を行っている)を、主記憶装置3上で修正する
方式が一般的であった。2. Description of the Related Art Conventionally, program debugging work has been carried out by loading a target program 2 from a disk device 1 into a main storage device 3, and then executing the program, as shown in FIG. 4, the operator operates the keyboard 5 to correct data errors M1 and logic errors M2 in the program (this logic error M2 is taken out of the program through branch processing and corrected). A method of making corrections on the storage device 3 has been common.
【0003】0003
【発明が解決しようとする課題】しかしながら、上記し
たプログラムの修正方式では、プログラムは主記憶装置
3上だけでしか修正が加えられないため、修正量が少な
い場合はともかく、修正量が多いと、修正にかなりの時
間と労力を費やすことになり、それに加え修正作業の人
為的ミスも伴うことになる。さらにデバッグ作業を一旦
停止した後、プログラムの再開始が必要となった場合は
、再度、プログラムを主記憶装置3上にローディングす
るが、この再ローディング時に修正箇所が元に戻ってし
まうため、オペレータは同じ修正操作を繰り返えして再
修正を行わなければならない。そして、最後にはデバッ
グを断念し、デバッグ時に集めた情報をもとにプログラ
ムソースを修正しなければならない状態となる。この修
正作業時にも、人為的な修正ミスという障害が発生し得
、これにより、プログラムのデバッグには、相応の経験
がないと、かなりの時間と労力を要し、効率の良いデバ
ッグができないという問題があった。However, in the program modification method described above, the program can only be modified in the main storage device 3, so even if the amount of modification is small, if the amount of modification is large, A considerable amount of time and effort will be spent on corrections, and in addition, human errors will also be involved in the correction work. Furthermore, if the program needs to be restarted after debugging has been temporarily stopped, the program will be loaded onto the main storage device 3 again, but since the modified parts will be returned to the original when reloading, the operator must be re-corrected by repeating the same correction operation. In the end, you have to give up on debugging and modify the program source based on the information gathered during debugging. Even during this modification process, obstacles may occur due to human modification errors, and as a result, debugging programs requires a considerable amount of time and effort, and debugging cannot be done efficiently unless you have the appropriate experience. There was a problem.
【0004】本発明は、デバッグ時に修正を施した部分
の修正データを記憶しておき、次回の修正時に、この記
憶した修正データを読み出して修正を行うようにし、デ
バッグ作業における時間と労力を大幅に削減し、デバッ
グ効率の向上を図ったデバッグ時におけるプログラム修
正方式を実現することを目的としている。[0004] According to the present invention, the modified data of the part modified during debugging is stored, and the stored modified data is read out and modified the next time the modification is performed, thereby greatly reducing the time and effort in debugging work. The purpose of this study is to realize a program modification method during debugging that reduces the number of errors and improves debugging efficiency.
【0005】[0005]
【課題を解決するための手段】図1は本発明の原理を説
明するための構成図である。同図において、10はデバ
ッグ対象となるプログラム11を格納した記憶部で例え
ばディスク装置が用いられる。12は主記憶装置、13
はデバッグ補助ツールであり、このデバッグ補助ツール
13には、プログラムの修正作業の制御を行う修正制御
部14、修正に関する管理情報を登録する修正情報テー
ブル15、修正データを登録する修正データ登録部16
が付加されている。この修正データ登録部16としては
、例えばディスク装置などが用いられ、修正データは所
定のファイル161 に記憶されるようになっている。[Means for Solving the Problems] FIG. 1 is a block diagram for explaining the principle of the present invention. In the figure, reference numeral 10 denotes a storage unit that stores a program 11 to be debugged, and uses a disk device, for example. 12 is the main storage device, 13
is a debugging auxiliary tool, and this debugging auxiliary tool 13 includes a modification control unit 14 that controls program modification work, a modification information table 15 that registers management information regarding modification, and a modification data registration unit 16 that registers modification data.
is added. For example, a disk device is used as the modified data registration unit 16, and the modified data is stored in a predetermined file 161.
【0006】また図中、17はオペレータがデータを入
力するためのデータ入力部であり、例えばキーボードが
用いれらる。Further, in the figure, numeral 17 is a data input section for an operator to input data, and a keyboard is used, for example.
【0007】[0007]
【作用】このような構成において、デバッグ作業は次の
ようにして行われる。その処理手順を図2のフローチャ
ートを参照しながら説明する。[Operation] In such a configuration, debugging work is performed as follows. The processing procedure will be explained with reference to the flowchart of FIG.
【0008】まず、ディスク装置10からデバッグ対象
プログラム11を主記憶装置12にローディングし、そ
のプログラムを実行してデバッグを行う(処理S1)。
そして、プログラム実行中にそのプログラムにデータミ
スM1 や論理ミスM2 などがあることがわかって、
これらのミス箇所M1 ,M2 を修正する必要が生じ
た場合、オペレータはデータ入力部17から修正内容を
記憶させるための操作として修正記憶開始指示を入力す
る。この修正記憶開始指示が入力されると(処理S2)
、記憶フラグがオン(処理S3)し、この記憶フラグが
オンしている間に(処理S4)、ミス箇所M1 ,M2
を修正するためのデータを入力する。このデータがデ
バッグ補助ツール13に与えられると、それを修正制御
部14に通知し、これにより修正制御部14は修正情報
テーブル15に修正履歴など修正データを検索するため
に必要な修正に関する管理情報を書き込む(処理S5)
とともに、修正データ登録部16の所定のファイル16
1 に、この修正情報テーブル15に書き込まれた管理
情報に対応した修正データを書き込む(処理S6)。First, the program to be debugged 11 is loaded from the disk device 10 into the main storage device 12, and the program is executed to perform debugging (processing S1). Then, while executing the program, it is discovered that the program has a data error M1 or a logic error M2, etc.
When it becomes necessary to correct these mistakes M1 and M2, the operator inputs a correction storage start instruction from the data input section 17 as an operation for storing the correction contents. When this correction storage start instruction is input (processing S2)
, the storage flag is turned on (processing S3), and while this storage flag is on (processing S4), the error locations M1 and M2 are
Enter data to correct. When this data is given to the debugging auxiliary tool 13, it is notified to the modification control unit 14, which causes the modification control unit 14 to store management information regarding modifications necessary for searching modification data, such as modification history, in the modification information table 15. (processing S5)
In addition, a predetermined file 16 of the modified data registration unit 16
1, correction data corresponding to the management information written in this correction information table 15 is written (processing S6).
【0009】一方、データ入力部17から入力された修
正データは、デバッグ補助ツール13によりデバッグ中
のプログラムの修正部分(データミスM1 、論理ミス
M2 )にも与えられ、その部分の修正を行う(処理S
7)。このようにして、プログラムの修正が全て終了す
ると、オペレータは修正記憶終了の指示をデータ入力部
17から入力する。そして、オペレータは修正したプロ
グラムの動作を確認するためにプログラムを実行させる
。On the other hand, the correction data inputted from the data input unit 17 is also given to the correction part (data miss M1, logic mistake M2) of the program being debugged by the debugging auxiliary tool 13, and the correction data for that part is carried out ( Processing S
7). When all the program modifications are completed in this way, the operator inputs an instruction to end the modification storage from the data input section 17. Then, the operator executes the modified program to check its operation.
【0010】その後、デバッグ作業を一旦停止し、プロ
グラムの再開始などの要因により、プログラムの再ロー
ディングを行う必要が生じた場合に、オペレータは再び
ディスク装置10よりプログラム11を主記憶装置12
にローディングする。[0010] Thereafter, when the debugging operation is temporarily stopped and it becomes necessary to reload the program due to factors such as restarting the program, the operator reloads the program 11 from the disk device 10 into the main storage device 12.
Load into.
【0011】そして、オペレータは先に修正データ登録
部16に記憶させた修正データを読み出すための読み出
し指示をデータ入力部17から入力する。この読み出し
指示をデバッグ補助ツール13が受けて、修正制御部1
4に通知し、これにより、修正制御部14は修正情報テ
ーブル15を検索し、指定の修正データを修正データ登
録部16から読み出す。修正データ登録部16から読み
出された修正データは、デバッグ補助ツール13に与え
られ、プログラムの修正作業が行われる。[0011]The operator then inputs a read instruction from the data input unit 17 to read out the modified data previously stored in the modified data registration unit 16. The debugging auxiliary tool 13 receives this read instruction, and the correction control unit 1
As a result, the modification control section 14 searches the modification information table 15 and reads out the specified modification data from the modification data registration section 16. The correction data read from the correction data registration section 16 is given to the debugging auxiliary tool 13, and the program is corrected.
【0012】このように、プログラムのデバッグ作業時
において、プログラムの修正を行う場合、最初の修正操
作時に修正管理情報および修正データをオペレータの指
示により修正情報テーブル15、修正データ登録部16
に記憶させておくようにしたので、プログラムの再開始
などの要因によりプログラムの再ローディングを行う必
要が生じた場合でも、オペレータは修正データの読み出
し指示を与えるだけで、修正データ登録部16から修正
データを読み出すことができ、デバッグ作業を効率良く
しかも確実に行うことができる。As described above, when a program is modified during program debugging, the modification management information and modification data are stored in the modification information table 15 and modification data registration section 16 according to the operator's instructions during the first modification operation.
Therefore, even if it becomes necessary to reload the program due to factors such as restarting the program, the operator can simply issue an instruction to read the modified data and the modified data can be retrieved from the modified data registration section 16. Data can be read and debugging can be performed efficiently and reliably.
【0013】[0013]
【実施例】次に上記したような本発明の原理をもとに実
施例を説明する。図3は第1の実施例の構成図であり、
図1と同一部分には同一符号を付す。この第1の実施例
では、図1で示した修正制御部14に修正データ退避復
元部20を設け、オペレータからの修正データの退避指
示を受けると、修正データ登録部16に書き込まれてい
る修正データを保管及び携帯便利な記憶媒体として、例
えばフロッピィディスク21に退避させるようになって
いる。これを図4のフローチャートを参照しながら説明
する。この図4のフローチャートにおいて、処理S1〜
処理S8までの一連の処理手順は前記本発明の原理で説
明したものであり、ここでは記憶開始指示か否かの判断
処理(処理S2)が「NO」で、記憶終了指示入力か否
かの判断処理(処理S9)が「NO」の判断の後に、こ
の第の2実施例の処理手順が続く。すなわち、プログラ
ムの修正データが書き込まれた修正データ登録部16を
、破損保護、保管、他方での使用などの必要が生じた場
合、オペレータは修正データ登録部16に格納されてい
る修正データの退避指示を、データ入力部17から入力
する。デバッグ補助ツール13はこの退避指示入力が出
されることにより(処理S10)、それを修正制御部1
4に通知し、これにより、修正情報ファイル退避復元部
20を制御して、修正情報テーブル15から退避させる
修正データに関する管理情報を、フロッピィディスク2
1に退避させ(処理S11)たのち、それに対応する修
正データを修正データ登録部16から取り出して、フロ
ッピィディスク21に退避(書き込み)させる(処理S
12)。Embodiments Next, embodiments will be described based on the principle of the present invention as described above. FIG. 3 is a configuration diagram of the first embodiment,
The same parts as in FIG. 1 are given the same reference numerals. In this first embodiment, a modified data saving and restoring section 20 is provided in the modification control section 14 shown in FIG. For example, the data is saved on a floppy disk 21 as a convenient storage and portable storage medium. This will be explained with reference to the flowchart of FIG. In the flowchart of FIG. 4, processes S1 to
The series of processing steps up to processing S8 are those explained in the principle of the present invention, and here, the judgment processing (processing S2) as to whether or not a storage start instruction is input is "NO", and the judgment processing as to whether or not a storage end instruction is input is determined. After the determination process (process S9) is "NO", the process procedure of this second embodiment continues. That is, when it becomes necessary to protect the modified data registration section 16 in which the modified data of the program is written, to protect it from damage, to store it, or to use it for another purpose, the operator saves the modified data stored in the modified data registration section 16. Instructions are input from the data input section 17. When this evacuation instruction input is issued (processing S10), the debugging auxiliary tool 13 corrects the evacuation instruction to the correction control unit 1.
4, thereby controlling the modification information file saving and restoring unit 20 to save the management information regarding the modification data to be saved from the modification information table 15 to the floppy disk 2.
1 (processing S11), and then extracting the corresponding modified data from the modified data registration unit 16 and saving (writing) it to the floppy disk 21 (processing S11).
12).
【0014】このように修正データ登録部16に書き込
まれている修正データをフロッピィディスク21に退避
させることにより、保管性に優れ、またその修正データ
を他のシステムに利用することも可能となる。図5は、
このフロッピィディスク21に格納された修正データを
他のシステムで利用する場合を示すもので、この場合、
オペレータはデータ入力部31から復元指示を入力する
と(図4の処理S13)、これをデバッグ補助ツール3
2が受けて、修正制御部33に通知し、修正データ退避
復元部34を制御して、フロッピィディスク21から管
理情報を復元し、修正情報テーブル35に登録し(処理
S14)、次に修正データを復元して修正データ登録部
36の所定ファイル361 に書き込む(処理S15)
。
そして、この書き込まれた修正データによりプログラム
37のミス箇所M1 の修正を行う(処理S16)。な
お、図5において、38は主記憶装置、39はデバッグ
対象のプログラム37を格納しているディスク装置であ
る。By saving the modified data written in the modified data registration section 16 to the floppy disk 21 in this manner, storage efficiency is excellent and the modified data can also be used in other systems. Figure 5 shows
This shows a case where the modified data stored on the floppy disk 21 is used in another system.
When the operator inputs a restoration instruction from the data input unit 31 (process S13 in FIG. 4), the operator inputs the restoration instruction to the debugging auxiliary tool 3.
2 receives it, notifies the modification control section 33, controls the modified data saving and restoring section 34, restores the management information from the floppy disk 21, registers it in the modification information table 35 (processing S14), and then updates the modified data. is restored and written to the predetermined file 361 of the modified data registration unit 36 (processing S15)
. Then, the error location M1 in the program 37 is corrected using the written correction data (processing S16). In FIG. 5, 38 is a main storage device, and 39 is a disk device that stores the program 37 to be debugged.
【0015】このように、他のシステムに上記フロッピ
ィディスク21を使用し、オペレータが復元指示を入力
するだけで、プログラムに同じ修正を加えることができ
る。次に図6により第2の実施例を説明する。この第2
の実施例では、修正内容を全てデバッグ時にプログラム
の中に埋め込み、これによりデバッグ作業を行っている
ときに、プログラムの実行順序や論理の混乱を解消する
ことを目的としている。すなわち、プログラム中の論理
ミスの場合、プログラムの中で修正しきれない状態のと
きは分岐処理によりそれを外に出している。図6におい
て、斜線を施した論理ミスM2 の部分は本来図示Aの
部分にあるデータであり、それを分岐処理して外に出し
て修正したものを示している。この第2の実施例は、修
正制御部14に修正内容補正部41を設け、具体的には
修正データ登録部16に登録された修正データをもとに
、上記修正内容補正部41により修正した部分をプログ
ラムの元の部分(図示矢印Aの部分)に戻すような補正
を行う。これを図7のフローチャートを参照して説明す
る。図7のフローチャートにおいて、処理S1〜処理S
8までの一連の処理手順は本発明の原理で説明したもの
であり、ここでは、記憶終了指示入力か否かの判断(処
理S9)が「NO」である場合の後、つまり、処理S2
1の「補正指示入力か否か」の判断以降について説明す
る。[0015] In this way, the same modifications can be made to programs by using the floppy disk 21 in other systems and simply by having the operator input a restoration instruction. Next, a second embodiment will be explained with reference to FIG. This second
The purpose of this embodiment is to embed all corrections into the program during debugging, thereby eliminating confusion in the program execution order and logic during debugging. That is, in the case of a logical error in a program, if it cannot be corrected within the program, it is taken out by branch processing. In FIG. 6, the hatched portion of logic error M2 is the data originally located in the portion A in the figure, and is shown as having been corrected by branching and exporting it. In this second embodiment, a correction content correction unit 41 is provided in the correction control unit 14, and specifically, based on the correction data registered in the correction data registration unit 16, the correction content correction unit 41 makes corrections. A correction is made to return the part to the original part of the program (the part indicated by arrow A in the figure). This will be explained with reference to the flowchart in FIG. In the flowchart of FIG. 7, processing S1 to processing S
The series of processing steps up to step 8 have been explained in terms of the principles of the present invention, and here, after the judgment (processing S9) as to whether or not the storage end instruction has been input is "NO", that is, processing S2
The steps after the first determination of “whether or not a correction instruction is input” will be explained.
【0016】オペレータから補正指示が出されると(処
理S21)、修正データ内に分岐(Jmp)命令がある
か否かを検索する(処理S22)。そして、分岐を発見
する(処理S23)ことにより、修正データが論理ミス
であることがわかり、その論理の修正データの大きさを
求める(処理S24)。これは論理ミスの変更データを
プログラムに挿入するための領域を求めるために、その
大きさを算出するものである。When the operator issues a correction instruction (processing S21), a search is made to see if there is a branch (Jmp) instruction in the corrected data (processing S22). Then, by discovering a branch (processing S23), it is found that the corrected data is a logical error, and the size of the corrected data for that logic is determined (processing S24). This is to calculate the size of the area for inserting the change data of the logical error into the program.
【0017】次に主記憶装置12上のプログラムに修正
データの挿入領域を確保し(処理S25)、その領域に
修正データを書き込み(処理S26)、そのあと分岐(
Jmp)命令と復帰(RTS)命令を消去する(処理S
27)。Next, an area for inserting the modified data is secured in the program on the main storage device 12 (processing S25), the modified data is written in that area (processing S26), and then branching is performed (processing S25).
Jmp) instruction and return (RTS) instruction (processing S
27).
【0018】このような処理手順を行うことにより、修
正した部分のデータはプログラム内部の元の部分(図示
矢印Aの部分)に挿入され、これにより、余分な分岐処
理などが削除され、デバッグ領域の節約となり、デバッ
グ効率の向上を図ることができる。By performing such a processing procedure, the data of the modified part is inserted into the original part (the part indicated by arrow A in the figure) inside the program, and as a result, redundant branch processing etc. are deleted and the debug area is It is possible to save money and improve debugging efficiency.
【0019】次に図8により第3の実施例を説明する。
この第3の実施例では、修正制御部14にプログラムソ
ース生成部51を設け、プログラムソースの修正を行う
必要が生じたとき、デバッグ時に使用した修正データを
もとに、プログラムソースを生成し、プログラムソース
の修正を行うものである。具体的には図8において、デ
バッグ時に修正した修正データ(ファイル161 に格
納されているデータ)を全て使用してプログラムソース
生成部51にてプログラムソースを生成し、このプログ
ラムソースを修正データ登録部16の所定のファイル1
62 に格納し、このプログラムソースを別のディスク
装置52に格納されている本プログラム53に反映させ
るようにしてたものである。Next, a third embodiment will be explained with reference to FIG. In this third embodiment, a program source generation section 51 is provided in the modification control section 14, and when it becomes necessary to modify the program source, the program source is generated based on the modification data used during debugging. This is for modifying the program source. Specifically, in FIG. 8, the program source generation unit 51 generates a program source using all the modified data (data stored in the file 161) modified during debugging, and the program source is sent to the modified data registration unit. 16 predetermined files 1
62, and this program source is reflected in the main program 53 stored in another disk device 52.
【0020】上記ディスク装置52に格納されている本
プログラム53は、ディスク装置10に格納されている
プログラム11がすでに実行形式(コンパイラされたの
ちリンクされたもの)のプログラムであるのに対し、コ
ンパイラされる以前のプログラムである。このプログラ
ム53に修正データをもとに生成されたプログラムソー
スを反映させたのち、実行形式のプログラムとするもの
である。The present program 53 stored in the disk device 52 is a program that is already in an executable format (compiled and linked), whereas the program 11 stored in the disk device 10 is already in an executable format (compiled and linked). This is the program before it was released. After reflecting the program source generated based on the modified data on this program 53, it is made into an executable program.
【0021】以下、この第3の実施例の処理手順を図9
のフローチャートを参照して説明する。図9のフローチ
ャートにおいて、処理S1〜処理S8までの一連の処理
手順は前記したように本発明の原理で説明したものであ
り、ここでは、記憶終了指示入力かの判断(処理S9)
が「NO」の場合の後、つまり、処理S31の「ソース
生成指示か否か」の判断処理以降について説明する。The processing procedure of this third embodiment will be explained below with reference to FIG.
This will be explained with reference to the flowchart. In the flowchart of FIG. 9, the series of processing steps from processing S1 to processing S8 are explained in accordance with the principle of the present invention as described above, and here, the determination of whether a storage end instruction is input (processing S9)
A description will be given of the process after the case where "NO" is determined, that is, the process after the process S31 for determining whether or not it is a source generation instruction.
【0022】まず、オペレータがプログラムソースの生
成指示をデータ入力部17から入力すると(処理S31
)、修正データ登録部16に登録されている修正データ
をもとに、ソース生成部51にてプログラムソースを生
成し(処理S32)、これを修正データ登録部16の所
定のファイル162 に格納する(処理S33)。そし
て、このファイルに格納されたプログラムソースをディ
スク装置52に格納されている本プログラム53に反映
させ(処理S34)、本プログラム55のプログラムソ
ースの修正を行う。この修正された本プログラムソース
をコンパイラしたのちリンクして実行形式のプログラム
とすれば、この実行形式のプログラムは、すでに修正さ
れたプログラムとして使用でき、プログラムの修正作業
の効率化を図ることができる。First, when the operator inputs a program source generation instruction from the data input section 17 (processing S31
), the source generation unit 51 generates a program source based on the modified data registered in the modified data registration unit 16 (processing S32), and stores this in a predetermined file 162 of the modified data registration unit 16. (Processing S33). Then, the program source stored in this file is reflected in the main program 53 stored in the disk device 52 (processing S34), and the program source of the main program 55 is corrected. If this modified program source is compiled and then linked to create an executable program, this executable program can be used as an already modified program, making it possible to improve the efficiency of program modification work. .
【0023】なお、上記各実施例において、デバッグ対
象のプログラムを格納するディスク装置10と修正デー
タを格納する修正データ登録部16あるいは、第3の実
施例において本プログラムを格納しているディスク装置
52などは、説明の便宜上、別々なものとして説明して
いるが、これは、共通のディスクであっても良いことは
勿論である。ただし共通のディスク装置を用いる場合は
、どのファイルに何のプログラムあるいは何のデータが
格納されているかの対応付けを適確に行う必要がある。
また、ディスク装置でなく、他の記憶装置を使用しても
良いことは勿論である。In each of the above embodiments, the disk device 10 that stores the program to be debugged and the modified data registration section 16 that stores the modified data, or the disk device 52 that stores the program in the third embodiment. For convenience of explanation, these are explained as separate disks, but it goes without saying that they may be a common disk. However, if a common disk device is used, it is necessary to accurately associate which program or data is stored in which file. Furthermore, it goes without saying that other storage devices may be used instead of disk devices.
【0024】[0024]
【発明の効果】本発明によれば、デバッグ時にプログラ
ムのデータミスや論理ミスなどを修正した修正データを
記憶させる機能を持たせることにより、プログラムの修
正操作は最初の1回目に行うだけで済み、2回目以降は
オペレータが修正指示を行うだけで、修正内容を読み出
して自動的に修正操作を行うことができ、プログラムの
修正作業を簡素化することができ、効率を大幅に向上さ
せることができる。また、修正したデータをフロッピィ
ディスクなどに退避させる機能を持たせることにより、
修正データの保管に便利なものとなるとともに、他のシ
ステムでの利用など汎用性に優れたものとすることがで
きる。また、修正した部分をプログラム内に挿入する補
正機能を持たせることにより、余分な分岐処理などを削
除することができる。さらに修正内容をもとにプログラ
ムソースを生成する機能を持たせることにより、この生
成したプログラムソースを本プログラムに反映させるこ
とにより、プログラムソースの修正作業の効率を大幅に
向上させることができる。[Effects of the Invention] According to the present invention, by providing a function to store corrected data that corrects data errors and logical errors in a program during debugging, program correction operations only need to be performed the first time. From the second time onward, the operator only needs to issue correction instructions, and the correction contents can be read out and corrected automatically. This simplifies program correction work and greatly improves efficiency. can. In addition, by providing a function to save modified data to a floppy disk, etc.,
It is convenient for storing modified data and can be used in other systems, making it highly versatile. Additionally, by providing a correction function that inserts the corrected part into the program, unnecessary branch processing and the like can be deleted. Furthermore, by providing a function to generate program sources based on the modified contents, and by reflecting the generated program sources in this program, it is possible to greatly improve the efficiency of program source modification work.
【0025】このように、本発明はデバッグ作業におけ
る時間、労力を大幅に軽減でき、デバッグ効率の向上に
大きく寄与することができるものである。As described above, the present invention can significantly reduce the time and labor required for debugging work, and can greatly contribute to improving debugging efficiency.
【図1】本発明の原理を説明するための構成図である。FIG. 1 is a configuration diagram for explaining the principle of the present invention.
【図2】本発明の原理の処理手順を示すフローチャート
である。FIG. 2 is a flowchart showing a processing procedure according to the principle of the present invention.
【図3】本発明の第1の実施例の構成図である。FIG. 3 is a configuration diagram of a first embodiment of the present invention.
【図4】第1の実施例の処理手順を示すフローチャート
である。FIG. 4 is a flowchart showing the processing procedure of the first embodiment.
【図5】第1の実施例においてフロッピィディスクを他
のシステムに使用する場合の構成図である。FIG. 5 is a configuration diagram when a floppy disk is used in another system in the first embodiment.
【図6】本発明の第2の実施例の構成図である。FIG. 6 is a configuration diagram of a second embodiment of the present invention.
【図7】第2の実施例の処理手順を示すフローチャート
である。FIG. 7 is a flowchart showing the processing procedure of the second embodiment.
【図8】本発明の第3の実施例の構成図である。FIG. 8 is a configuration diagram of a third embodiment of the present invention.
【図9】第3の実施例の処理手順を示すフローチャート
である。FIG. 9 is a flowchart showing the processing procedure of the third embodiment.
【図10】従来のデバッグ方式を示す構成図である。FIG. 10 is a configuration diagram showing a conventional debugging method.
11 デバッグ対象プログラム12
主記憶装置
13 デバッグ補助ツール
14 修正制御部
15 修正情報テーブル
16 修正データ登録部
17 データ入力部11 Program to be debugged 12
Main storage device 13 Debugging auxiliary tool 14 Modification control section 15 Modification information table 16 Modification data registration section 17 Data input section
Claims (4)
ルにてデバッグ作業を行い、プログラムの修正を行うデ
バッグ時におけるプログラム修正方式において、プログ
ラムの修正作業を制御する修正制御部(14)と修正に
関する管理情報を登録する修正情報テーブル(15)と
修正データを登録する修正データ登録部(16)とを上
記デバッグ補助ツール(13)に付加して設け、デバッ
グ作業時にオペレータの指示により修正に関する管理情
報を修正情報テーブル(15)に登録するとともに修正
データを修正データ登録部(16)に登録し、これらの
登録データを用いて次回以降のプログラムの修正を行う
ようにしことを特徴とするデバッグ時におけるプログラ
ム修正方式。Claim 1: In a program modification method during debugging in which debugging is performed using a debugging auxiliary tool during program execution and the program is modified, a modification control unit (14) that controls program modification and management information regarding modification are provided. A correction information table (15) for registering correction data and a correction data registration section (16) for registering correction data are provided in addition to the debugging auxiliary tool (13), and management information regarding corrections can be corrected according to instructions from an operator during debugging work. Program correction during debugging characterized by registering correction data in an information table (15) and registering correction data in a correction data registration section (16), and using these registered data to correct the program from the next time onwards. method.
ル退避復元部(20)を設け、必要に応じてオペレータ
の指示により、上記修正情報テーブル(15)からの修
正に関する管理情報と修正データ登録部(16)からの
修正データを、それぞれ保管及び携帯可能な記憶媒体(
21)に退避させるとともにこの記憶媒体(21)に退
避させた内容を読み出して復元可能としたことを特徴と
する請求項1記載のデバッグ時におけるプログラム修正
方式。2. The modification control section (14) is provided with a modification file saving and restoring section (20), which registers management information and modification data regarding modification from the modification information table (15) according to an operator's instructions as necessary. The revised data from section (16) is stored on a storage and portable storage medium (
21. The method for modifying a program during debugging according to claim 1, wherein the contents are saved in a storage medium (21) and the contents saved in the storage medium (21) can be read and restored.
ムの修正内容を補正する修正内容補正部(41)を設け
、オペレータの指示により修正を施した部分のデータ量
を求め、もとのプログラム内に上記データ量に対応した
領域を確保し、この領域に修正を施した部分のデータを
書き込むようにしたことを特徴とする請求項1記載のデ
バッグ時におけるプログラム修正方式。3. The correction control unit (14) is provided with a correction content correction unit (41) that corrects the correction content of the program, and calculates the data amount of the part that has been corrected according to an operator's instruction, and restores the original program. 2. The method for modifying a program during debugging according to claim 1, wherein an area corresponding to said amount of data is secured within said area, and data of a modified portion is written in this area.
ムソース生成部(51)を設け、オペレータの指示によ
り上記修正データ登録部(16)に登録されている修正
データをもとにプログラムソースを生成し、この生成し
たプログラムソースを本プログラムソースに反映させて
本プログラムソースの修正を行うことを特徴とする請求
項1記載のデバッグ時におけるプログラム修正方式。4. The modification control section (14) is provided with a program source generation section (51), which generates a program source based on the modification data registered in the modification data registration section (16) according to instructions from an operator. 2. The method for modifying a program during debugging according to claim 1, wherein the generated program source is reflected in the program source to modify the program source.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3145912A JPH04369048A (en) | 1991-06-18 | 1991-06-18 | Program correcting system in debugging |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3145912A JPH04369048A (en) | 1991-06-18 | 1991-06-18 | Program correcting system in debugging |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04369048A true JPH04369048A (en) | 1992-12-21 |
Family
ID=15395950
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3145912A Withdrawn JPH04369048A (en) | 1991-06-18 | 1991-06-18 | Program correcting system in debugging |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04369048A (en) |
-
1991
- 1991-06-18 JP JP3145912A patent/JPH04369048A/en not_active Withdrawn
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20030122871A1 (en) | System and method for flexible software linking | |
| US6502176B1 (en) | Computer system and methods for loading and modifying a control program without stopping the computer system using reserve areas | |
| US8468290B2 (en) | Method and program for file information write processing | |
| JPH04369048A (en) | Program correcting system in debugging | |
| JP3844051B2 (en) | controller | |
| JP3461185B2 (en) | Method and apparatus for registering source code line number to load module | |
| JP2017224012A (en) | Information processing device, dynamic link program and program resumption method | |
| JPH0546378A (en) | Correction processing method for program | |
| JPS61147336A (en) | Generation management system of load module | |
| CN113391829B (en) | A Debugging Method for Coping with High-Frequency Iterative Data | |
| JPH01201728A (en) | Program correcting system | |
| JP2500770B2 (en) | Program modification method | |
| US20070169086A1 (en) | System and method for updating in-system program | |
| JPH04313120A (en) | File updating system for designation of program patch | |
| JPH1021067A (en) | How to dynamically modify programs | |
| JPS60126732A (en) | Realizing system of insert batch | |
| US7131118B2 (en) | Write-through caching a JAVA® local variable within a register of a register bank | |
| JP2937636B2 (en) | Logic simulator method | |
| JP2887488B2 (en) | Multi-process processing equipment | |
| JPH07129396A (en) | Method for patching read-only storage device | |
| JPH0452825A (en) | Updating processing method for system definition information | |
| JPH07152541A (en) | System uninterrupted program switching method | |
| JPH05334070A (en) | Operating system modification method | |
| JPH03282636A (en) | Data storing method for execution of test package | |
| JPH01158535A (en) | Part adding system for object program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19980903 |