JPH03260830A - Program debug processing system - Google Patents
Program debug processing systemInfo
- Publication number
- JPH03260830A JPH03260830A JP2060715A JP6071590A JPH03260830A JP H03260830 A JPH03260830 A JP H03260830A JP 2060715 A JP2060715 A JP 2060715A JP 6071590 A JP6071590 A JP 6071590A JP H03260830 A JPH03260830 A JP H03260830A
- Authority
- JP
- Japan
- Prior art keywords
- debug command
- debug
- program
- statement
- converted
- 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
- 238000012545 processing Methods 0.000 title claims description 5
- 238000004458 analytical method Methods 0.000 claims description 15
- 238000006243 chemical reaction Methods 0.000 claims description 14
- 238000003672 processing method Methods 0.000 claims description 13
- 238000012937 correction Methods 0.000 abstract description 2
- 238000000034 method Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 6
- 238000012986 modification Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 241001208007 Procas Species 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 238000010191 image analysis Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000011017 operating method Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は情報処理システムのプログラムデバッグ処理方
式に関し、特に利用者プログラムのデバッグ時において
利用者プログラムのロジックの修正が必要となるデバッ
グ作業に対するプログラムデバッグ処理方式に関する。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a program debugging processing method for an information processing system, and in particular to a program for debugging work that requires modifying the logic of a user program when debugging a user program. Regarding debug processing method.
従来、この種のプログラムデバッグ処理方式では、利用
者プログラムのデバッグ時におけるロジックの修正をリ
ースステートメントイメージを用いて行うことはできな
かった。そのため、利用者プログラムのロジックの修正
を行う場合には、−旦デバッグ作業を終了し、ソースプ
ログラム修正。Conventionally, in this type of program debug processing method, it has not been possible to modify the logic during debugging of a user program using a lease statement image. Therefore, when modifying the logic of a user program, first finish debugging and then modify the source program.
再コンパイル、再リンクおよび再実行の一連の作業を行
うか、あるいはロジックの修正ソースステートメントイ
メージをデバッグコマンドに変換してデバッグコマンド
により利用者プログラムの制御を行わなければならなか
った。It was necessary to perform a series of tasks such as recompiling, relinking, and rerunning the program, or to convert the modified logic source statement image into debug commands and use the debug commands to control the user program.
また、デバッグ作業後のソースプログラム修正時に、デ
バッグ作業中に作成した修正ソースステートメントイメ
ージを利用者は改めて入力し直さなければならなかった
。Furthermore, when modifying a source program after debugging, the user had to re-enter the modified source statement image created during debugging.
上述した従来のプログラムデバッグ処理方式では、ソー
スステートメントイメージによる利用者プログラムのロ
ジックの修正を行う場合、−旦デバッグ作業を終了し、
ソースプログラム修正、再コンパイル、再リンクおよび
再実行の一連の作業を必ず行わなければならないという
欠点がある。In the conventional program debugging processing method described above, when modifying the logic of a user program using a source statement image, the debugging process is finished once,
The disadvantage is that a series of operations such as modifying the source program, recompiling, relinking, and rerunning must be performed.
また、利用者はデバッグ作業中に作成した修正ソースス
テートメントイメージを記録しておき、ソースプログラ
ム修正時には修正ソースステートメントイメージを改め
て入力しなければならなかったので、利用者によるオペ
レーシッンミスや修正ソースステートメントイメージの
記録の誤りによる修正ミスが発生する可能性があり、ソ
ースプログラム修正作業の効率が低下するという欠点が
ある。In addition, users had to record the modified source statement image created during debugging work, and input the modified source statement image again when modifying the source program. There is a possibility that a modification error may occur due to an error in recording the statement image, and this has the disadvantage that the efficiency of source program modification work is reduced.
さらに、利用者プログラムのデバッグ時において利用者
プログラムのロジックの修正を行う場合に、ロジックの
修正ソースステートメントイメージをデバッグコマンド
に変換しなければならないので、利用者は修正ソースス
テートメントイメージとともに変換するデバッグコマン
ドの内容も意識しなければならず、ロジックの修正作業
を集中して行うことができないという欠点がある。Furthermore, when modifying the logic of the user program when debugging the user program, the modified source statement image of the logic must be converted into a debug command, so the user must convert the debug command along with the modified source statement image. The problem is that you have to be aware of the contents of the code, and you cannot concentrate on correcting the logic.
本発明の目的は、上述の点に鑑み、プログラムのデバッ
グ時にプログラムのロジックの修正をソースステートメ
ントイメージの記述により行えるようにしたプログラム
デバッグ処理方式を提供することにある。SUMMARY OF THE INVENTION In view of the above points, an object of the present invention is to provide a program debug processing method that allows modification of program logic by writing a source statement image when debugging a program.
本発明のプログラムデバッグ処理方式は、プログラムの
デバッグ処理を行うデバッガにおいて、デバッグコマン
ドおよび修正ソースステートメントイメージを読み込む
デバッグコマンド入力部と、このデバッグコマンド入力
部により読み込まれたデバッグコマンドを実行するデバ
ッグコマンド実行部と、前記デバッグコマンド入力部に
より読み込まれた修正ソースステートメントイメージを
ステートメントイメージ格納ファイルに格納するステー
トメントイメージ格納部と、前記デバッグコマンド入力
部により読み込まれたプログラムのロジックを修正する
デバッグコマンドに基づいてプログラム内のロジックの
修正が行われる個所にトラップ命令を埋め込むトラップ
埋込み部と、前記デバッグコマンド入力部により読み込
まれた修正ソースステートメントイメージを解析してデ
バッグコマンド群に変換するステートメント解析部と、
このステートメント解析部により変換されたデバッグコ
マンド群が格納される変換デバッグコマンド格納域と、
前記ステートメント解析部により変換されたデバッグコ
マンド群を前記変換デバッグコマンド格納域に格納する
変換デバッグコマンド格納部と、プログラムにおいてト
ラップが発生した時点で前記変換デバッグコマンド格納
部から実行されるデバッグコマンドを読み込む変換デバ
ッグコマンド入力部と、前記各部を制御する主制御部と
を有する。The program debug processing method of the present invention includes, in a debugger that debugs a program, a debug command input section that reads debug commands and modified source statement images, and a debug command execution section that executes the debug commands read by the debug command input section. a statement image storage section for storing a modified source statement image read by the debug command input section in a statement image storage file; and a statement image storage section for storing a modified source statement image read by the debug command input section; a trap embedding unit that embeds a trap instruction in a location where logic in a program is to be modified; a statement analysis unit that analyzes a modified source statement image read by the debug command input unit and converts it into a group of debug commands;
a converted debug command storage area in which a group of debug commands converted by the statement analysis unit are stored;
A converted debug command storage area that stores a group of debug commands converted by the statement analysis unit in the converted debug command storage area, and reads debug commands to be executed from the converted debug command storage area when a trap occurs in the program. It has a conversion debug command input section and a main control section that controls each of the above sections.
本発明のプログラムデバッグ処理方式では、デバッグコ
マンド入力部がデバッグコマンドおよび修正ソースステ
ートメントイメージを読み込み、デバッグコマンド実行
部がデバッグコマンド入力部により読み込まれたデバッ
グコマンドを実行し、ステートメントイメージ格納部が
デバッグコマンド入力部により読み込まれた修正ソース
ステートメントイメージをステートメントイメージ格納
ファイルに格納し、トラップ埋込み部がデバッグコマン
ド入力部により読み込まれたプログラムのロジックを修
正するデバッグコマンドに基づいてプログラム内のロジ
ックの修正が行われる個所にトランプ命令を埋め込み、
ステートメント解析部がデバッグコマンド入力部により
読み込まれた修正ソースステートメントイメージを解析
してデバッグコマンド群に変換し、変換デバッグコマン
ド格納域にステートメント解析部により変換されたデバ
ッグコマンド群が格納され、変換デバッグコマンド格納
部がステートメント解析部により変換されたデバッグコ
マンド群を変換デバッグコマンド格納域に格納し、変換
デバッグコマンド入力部がプログラムにおいてトラップ
が発生した時点で変換デバッグコマンド格納部から実行
されるデバッグコマンドを読み込み、主制御部が各部を
制御する。In the program debug processing method of the present invention, the debug command input section reads debug commands and modified source statement images, the debug command execution section executes the debug commands read by the debug command input section, and the statement image storage section executes the debug commands. The modified source statement image read by the input part is stored in a statement image storage file, and the trap embedding part modifies the logic in the program based on the debug command that modifies the logic of the program read by the debug command input part. Embed the Trump order in the place where it is written,
The statement analysis section analyzes the modified source statement image read by the debug command input section and converts it into a debug command group, and the debug command group converted by the statement analysis section is stored in the converted debug command storage area, and the converted debug command The storage section stores the debug command group converted by the statement analysis section in the converted debug command storage area, and the converted debug command input section reads the debug commands to be executed from the converted debug command storage section when a trap occurs in the program. , a main control section controls each section.
次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.
第1図は、本発明の一実施例に係るプログラムデバッグ
処理方式が適用されたデバッガlの構成を示すブロフク
図である。このデバッガlは、利用者プログラム11の
ロジックの修正をソースステートメントイメージで行う
ことを可能にするものであり、利用者プログラム11内
のロジックの修正が行われる個所にトラップ命令を埋め
込むトラップ埋込み部2と、主制御部3と、利用者によ
り端末装置12から入力されたデバッグコマンドおよび
修正ソースステートメントイメージを読み込むデバッグ
コマンド入力部4と、デバッグコマンド入力部4により
読み込まれたデバッグコマンドおよび変換デバッグコマ
ンド入力部lOにより読み込まれたデバッグコマンドを
実行するデバッグコマンド実行部5と、利用者により入
力された修正ソースステートメントイメージをステート
メントイメージ格納ファイル13に格納するステートメ
ントイメージ格納部6と、デバッグコマンド入力部4に
より読み込まれた修正ソースステートメントイメージを
解析してデバッグコマンド群に変換するステートメント
解析部7と、ステートメント解析部7により変換された
デバッグコマンド群が格納される変換デバッグコマンド
格納域8と、ステートメント解析部7により変換された
デバッグコマンド群を変換デバッグコマンド格納域8に
格納する変換デバッグコマンド格納部9と、利用者プロ
グラム11においてトラップが発生した場合に変換デバ
ッグコマンド格納Jsi8からトランプが発生した時点
で実行されるデバッグコマンドを読み込む変換デバッグ
コマンド入力部lOとを含んで構成されている。なお、
第1図中、符号11はデバッグ対象となる利用者プログ
ラム、12は利用者がデバッグコマンド−および修正ソ
ースステートメントイメージを入力するために使用する
端末装置、13は利用者が入力した修正ソースステート
メントイメージが格納される外部記憶装置であるステー
トメントイメージ格納ファイルをそれぞれ示す。FIG. 1 is a block diagram showing the configuration of a debugger l to which a program debugging processing method according to an embodiment of the present invention is applied. This debugger 1 allows the logic of the user program 11 to be modified using a source statement image, and includes a trap embedding unit 2 that embeds a trap instruction in the location where the logic in the user program 11 is to be modified. , a main control unit 3, a debug command input unit 4 that reads debug commands and modified source statement images input by the user from the terminal device 12, and debug commands and converted debug command input that are read by the debug command input unit 4. The debug command execution unit 5 executes the debug command read by the unit 10, the statement image storage unit 6 stores the modified source statement image input by the user in the statement image storage file 13, and the debug command input unit 4 A statement analysis unit 7 that analyzes the loaded modified source statement image and converts it into a group of debug commands, a converted debug command storage area 8 that stores the group of debug commands converted by the statement analysis unit 7, and a statement analysis unit 7. When a trap occurs in the user program 11, the converted debug command storage section 9 stores the converted debug command group in the converted debug command storage area 8. The conversion debug command input unit IO reads debug commands to be converted. In addition,
In FIG. 1, reference numeral 11 is a user program to be debugged, 12 is a terminal device used by the user to input debug commands and modified source statement images, and 13 is a modified source statement image input by the user. Each statement image storage file is an external storage device in which the statement image is stored.
第2図を参照すると、本実施例のプログラムデバッグ処
理方式の処理は、入力契機付与ステップ21と、修正ソ
ースステートメントイメージ人力ステ・ノブ22と、修
正ソースステートメントイメージ格納ステップ23と、
修正ソースステートメントイメージ解析ステップ24と
、変換デバッグコマンド格納ステップ25と、トラップ
埋込みステップ26とからなる。Referring to FIG. 2, the processing of the program debug processing method of this embodiment includes an input trigger provision step 21, a modified source statement image manual operation knob 22, a modified source statement image storage step 23,
It consists of a modified source statement image analysis step 24, a conversion debug command storage step 25, and a trap embedding step 26.
次に、このように構成された本実施例のプログラムデバ
ッグ処理方式の動作について説明する。Next, the operation of the program debug processing method of this embodiment configured as described above will be explained.
利用者が利用者プログラム11のデバッグ時に利用者プ
ログラム11のロジックの修正を指示するデバッグコマ
ンドを端末装置12に投入すると、利用者プログラム1
1からデバッガ1に制御が移り、デバッグコマンド入力
部4は、端末装置12からデバッグコマンドを読み込み
、主制御部3を介して制御をデバッグコマンド実行部5
に渡す。When the user inputs a debug command to the terminal device 12 to instruct the modification of the logic of the user program 11 when debugging the user program 11, the user program 1
1 to the debugger 1, the debug command input unit 4 reads the debug command from the terminal device 12, and transfers the control via the main control unit 3 to the debug command execution unit 5.
give it to
デバッグコマンド実行部5は、端末装置f12をソース
ステートメントイメージ入力促進状態にし、修正ソース
ステートメントイメージの入力待ち状態となる(ステッ
プ21)。The debug command execution unit 5 puts the terminal device f12 into a source statement image input prompting state and waits for a modified source statement image input (step 21).
利用者が修正ソースステートメントイメージを端末装置
12に入力すると、デバッグコマンド入力部4は、端末
装置12から修正ソースステートメントイメージを読み
込み、主制御部3を介して制御をステートメントイメー
ジ格納部6に渡す(ステップ22)。When the user inputs a modified source statement image into the terminal device 12, the debug command input section 4 reads the modified source statement image from the terminal device 12, and passes control to the statement image storage section 6 via the main control section 3 ( Step 22).
ステートメントイメージ格納部6は、デバッグコマンド
入力部4により読み込まれた修正ソースステートメント
イメージをステートメントイメージ格納ファイル13に
格納する(ステップ23)。The statement image storage unit 6 stores the modified source statement image read by the debug command input unit 4 in the statement image storage file 13 (step 23).
ステートメントイメージ格納ファイル13に格納された
修正ソースステートメントイメージは、利用者プログラ
ム11のソースプログラム修正時には利用者プログラム
11内に直接組み込むことができるソース修正イメージ
のデータである。修正ソースステートメントイメージの
ステートメントイメージ格納ファイル13への格納後、
ステートメントイメージ格納部6は、主制御部3を介し
て制御をステートメント解析部7に渡す。The modified source statement image stored in the statement image storage file 13 is data of a source modified image that can be directly incorporated into the user program 11 when the source program of the user program 11 is modified. After storing the modified source statement image in the statement image storage file 13,
The statement image storage section 6 passes control to the statement analysis section 7 via the main control section 3.
ステートメント解析部7は、デバッグコマンド入力部4
により読み込まれた修正ソースステートメントイメージ
を解析し、デバッグコマンド群に変換する(ステップ2
4)、変換されたデバッグコマンド群は、変換デバッグ
コマンド格納部9により変換デバッグコマンド格納域8
に格納される(ステップ25)。デバッグコマンド群の
変換デバッグコマンド格納域8への格納後、ステートメ
ント解析部7は、主制御部3を介して制御をトラップ埋
込み部2番こ渡ず。The statement analysis section 7 includes the debug command input section 4
Analyzes the modified source statement image read by and converts it into a group of debug commands (Step 2
4) The converted debug command group is stored in the converted debug command storage area 8 by the converted debug command storage section 9.
(step 25). After converting the debug command group and storing it in the debug command storage area 8, the statement analysis section 7 transfers control to the trap embedding section 2 via the main control section 3.
トランプ埋込み部2は、先に投入された利用者プログラ
ム11のロジックの修正を指示するデバッグコマンドに
基づいて利用者プログラムll内のロジックの修正が行
われる個所にトラップ命令を埋め込む(ステップ26)
、この後、制御はデバッガ1から利用者プログラム11
に戻る。The playing card embedding unit 2 embeds a trap instruction at a location in the user program 11 where the logic is to be modified based on the previously input debug command instructing the modification of the logic of the user program 11 (step 26).
, after this, control is transferred from the debugger 1 to the user program 11
Return to
利用者プログラム11においてトランプが発生すると、
制御はデバッガ1に戻り、主制御部3を介して変換デバ
ッグコマンド入力部lOに渡る。When a playing card occurs in user program 11,
Control returns to the debugger 1 and passes through the main control section 3 to the conversion debug command input section IO.
変換デバッグコマンド入力部10は、トラップが発生し
た時点で実行されるデバッグコマンドを変換デバッグコ
マンド格納域8から読み込むと、主制御部3を介して制
御をデバッグコマンド実行部5に渡す。The converted debug command input unit 10 reads a debug command to be executed when a trap occurs from the converted debug command storage area 8, and then passes control to the debug command execution unit 5 via the main control unit 3.
デバッグコマンド実行部5は、変換デバッグコマンド入
力部10により読み込まれたデバッグコマンドを実行し
、実行が終了すると主制御部3を介して制御を変換デバ
ッグコマンド入力部10に戻す。The debug command execution unit 5 executes the debug command read by the converted debug command input unit 10, and returns control to the converted debug command input unit 10 via the main control unit 3 when the execution is completed.
変換デバッグコマンド入力部10がトラップが発生した
時点で実行されるデバッグコマンドのすべてを読み終え
ると、制御はデバッガ1から利用者プログラム11に戻
る。When the conversion debug command input unit 10 finishes reading all the debug commands to be executed at the time a trap occurs, control returns from the debugger 1 to the user program 11.
次に、本実施例のプログラムデバッグ処理方式における
利用者の操作手順および実行結果について、第3図を参
照して具体的に説明する。ここでは、利用者プログラム
11であるPROGAのデバング時に修正ソースステー
トメントイメージ〈a〉および(b)でロジ・7りの修
正を行う場合について説明する。Next, the user's operating procedures and execution results in the program debug processing method of this embodiment will be specifically explained with reference to FIG. Here, a case will be described in which the modified source statement images <a> and (b) are modified in terms of logic when debugging PROGA, which is the user program 11.
利用者は、まずデバッグ対象の利用者プログラム11で
あるPROGAを起動する(手順■)。The user first starts PROGA, which is the user program 11 to be debugged (step 2).
PROGAのデバッグ作業中にPROCAのロジックの
修正を行う必要が生した場合には、利用者は、行番号1
0の後ろ番こソースステートメントを追加することを示
すデバッグコマンド“EDIT lN5ERT”を投
入する(手順■)。続いて、利用者は、修正ソースステ
ートメントイメージ(a)でソースステートメント入力
を行い(手順■)、次にソースステートメント入力の終
了を示す空白を投入する(手順■)。If it becomes necessary to modify the logic of PROCA while debugging PROGA, the user should change line number 1.
Input the debug command "EDIT IN5ERT" indicating that the source statement after number 0 is to be added (step 2). Next, the user inputs a source statement using the modified source statement image (a) (procedure ■), and then inserts a blank indicating the end of source statement input (procedure ■).
次に、利用者は、行番号70のソースステートメントの
内容の変更を示すデバッグコマンド“EDIT CH
ANGE”を投入する(手順■)。Next, the user issues a debug command “EDIT CH” that indicates a change in the contents of the source statement at line number 70.
ANGE” (Step ■).
続いて、利用者は、修正ソースステートメントイメージ
(b)でソースステートメント人力を行い(手順■)、
次にソースステートメント入力の終了を示す空白を投入
する(手順■)。Next, the user manually edits the source statement using the modified source statement image (b) (step ■),
Next, insert a blank space to indicate the end of inputting the source statement (Step ■).
ソースステートメント人力の終了時におけるステートメ
ントイメージ格納ファイル13と変換デバングコマンド
格納域8との内容は、それぞれ(A)および(B)に示
すようになる。The contents of the statement image storage file 13 and the conversion debang command storage area 8 at the time of completion of the manual source statement are as shown in (A) and (B), respectively.
ここで、変換デバングコマンド格納域8に格納されたデ
バッグコマンドの実行内容を説明すると、デバッグコマ
ンド(C)は、行番号10の後ろ、すなわち行番号20
でトラップが発生したときに、変数Iと整数2との乗算
の結果を変数Cに設定し、変数Cの値が128より大き
い場合にはラベル名L3で示されるソースステートメン
トに制御を渡し、変数Cの値が128以下の場合には、
PROGAの処理を続行することを示す、また、デバッ
グコマンド(D)は、行番号70でトラップが発生した
ときに、ラベル名L2で示されるソースステートメント
に制御を渡すことを示す。Here, to explain the execution contents of the debug command stored in the conversion debug command storage area 8, the debug command (C) is executed after line number 10, that is, at line number 20.
When a trap occurs, the result of multiplying variable I by integer 2 is set to variable C, and if the value of variable C is greater than 128, control is passed to the source statement indicated by label name L3, and the variable If the value of C is 128 or less,
The debug command (D), which indicates that PROGA processing is to be continued, also indicates that when a trap occurs at line number 70, control is passed to the source statement indicated by label name L2.
以上説明したように本発明は、プログラムのデバッグ時
においてプログラムのロジックの修正をソースステート
メントイメージの記述で行えるようにしたことにより、
デバッグ作業を一旦終了させてソースプログラム修正、
再コンパイル1再リンクおよび再実行という一連の作業
および修正ソースステートメントイメージのデバッグコ
マンドへの変換作業を行う必要がなくなるため、プログ
ラムのロジックの修正に関する作業工数が大幅に削減さ
れるという効果がある。また、プログラムのロジックの
修正をソースステートメントイメージの入力で行うこと
ができるので、利用者は修正ソースステートメントイメ
ージ以外を意識することなくプログラムのロジックの修
正を行うことができるという効果がある。As explained above, the present invention enables modification of program logic by writing a source statement image when debugging a program.
After finishing the debugging work, modify the source program,
Since there is no need to perform a series of operations such as recompilation 1, relinking and re-execution, and conversion of a modified source statement image into a debug command, there is an effect that the number of man-hours involved in modifying program logic can be significantly reduced. Furthermore, since the program logic can be modified by inputting the source statement image, the user can modify the program logic without being aware of anything other than the modified source statement image.
さらに、デバッグ作業中に利用者により入力された修正
ソースステートメントイメージをソース修正イメージの
データとしてステートメントイメージ格納ファイルに保
存するようにしたことにより、ソースプログラム修正時
に利用者はプログラムのソースプログラム内に修正ソー
スステートメントイメージを容易に組み込むことが可能
となり、ソースプログラム修正時における作業の効率を
向上させる効果がある。また、ソースプログラム修正時
における利用者のオペレーションミスや修正ミスが削減
され、より一層の効率の向上に効果がある。Furthermore, by saving the modified source statement image input by the user during debugging in the statement image storage file as source modified image data, the user can edit the source program in the source program when modifying the source program. It becomes possible to easily incorporate source statement images, which has the effect of improving work efficiency when modifying source programs. In addition, the user's operational errors and correction errors when modifying the source program are reduced, which is effective in further improving efficiency.
第1図は本発明の一実施例に係るプログラムデバッグ処
理方式が適用されたデバフガの構成を示すブロック図、
第2図は本実施例のプログラムデバッグ処理方式の処理
を示す流れ図、
第3図は本実施例のプログラムデバッグ処理方式におけ
る利用者の操作手順および実行結果の具体例を示す図で
ある。
図において、
1・・・デバ・2ガ、
2・・・トラップ埋込み部、
3・・・主制御部、
4・・・デバッグコマンド入力部、
5・・・デバッグコマンド実行部、
6・・・ステートメントイメージ格納部、7・・・ステ
ートメント解析部、
8・・・変換デバッグコマンド格納域、9・・・変換デ
ハングコマンド格納部、10・・変換デバッグコマンド
入力部、11・・利用者プログラム、
12・・端末装置、
13・・ステートメントイメージ格納ファイルである。FIG. 1 is a block diagram showing the configuration of a debuffer to which a program debugging method according to an embodiment of the present invention is applied. FIG. 2 is a flowchart showing the processing of the program debugging method of this embodiment. FIG. 6 is a diagram illustrating a specific example of a user's operation procedure and execution results in the program debug processing method of the present embodiment. In the figure, 1... Debugger 2, 2... Trap embedding section, 3... Main control section, 4... Debug command input section, 5... Debug command execution section, 6... Statement image storage section, 7... Statement analysis section, 8... Conversion debug command storage area, 9... Conversion dehanging command storage section, 10... Conversion debug command input section, 11... User program, 12: Terminal device, 13: Statement image storage file.
Claims (1)
ージを読み込むデバッグコマンド入力部と、 このデバッグコマンド入力部により読み込まれたデバッ
グコマンドを実行するデバッグコマンド実行部と、 前記デバッグコマンド入力部により読み込まれた修正ソ
ースステートメントイメージをステートメントイメージ
格納ファイルに格納するステートメントイメージ格納部
と、 前記デバッグコマンド入力部により読み込まれたプログ
ラムのロジックを修正するデバッグコマンドに基づいて
プログラム内のロジックの修正が行われる個所にトラッ
プ命令を埋め込むトラップ埋込み部と、 前記デバッグコマンド入力部により読み込まれた修正ソ
ースステートメントイメージを解析してデバッグコマン
ド群に変換するステートメント解析部と、 このステートメント解析部により変換されたデバッグコ
マンド群が格納される変換デバッグコマンド格納域と、 前記ステートメント解析部により変換されたデバッグコ
マンド群を前記変換デバッグコマンド格納域に格納する
変換デバッグコマンド格納部と、プログラムにおいてト
ラップが発生した時点で前記変換デバッグコマンド格納
部から実行されるデバッグコマンドを読み込む変換デバ
ッグコマンド入力部と、 前記各部を制御する主制御部と を有することを特徴とするプログラムデバッグ処理方式
。[Scope of Claims] A debugger that performs program debugging processing includes: a debug command input section that reads a debug command and a modified source statement image; a debug command execution section that executes the debug command read by the debug command input section; a statement image storage section that stores a modified source statement image read by the debug command input section in a statement image storage file; and a statement image storage section that stores a modified source statement image read by the debug command input section in a statement image storage file; a trap embedding unit that embeds a trap instruction in a location where logic is to be modified; a statement analysis unit that analyzes the modified source statement image read by the debug command input unit and converts it into a group of debug commands; A converted debug command storage area in which a group of converted debug commands is stored; a converted debug command storage area in which a group of debug commands converted by the statement analysis unit is stored in the converted debug command storage area; A program debug processing method, comprising: a conversion debug command input unit that reads a debug command to be executed from the conversion debug command storage unit when the conversion debug command is executed; and a main control unit that controls each of the units.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2060715A JPH03260830A (en) | 1990-03-12 | 1990-03-12 | Program debug processing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2060715A JPH03260830A (en) | 1990-03-12 | 1990-03-12 | Program debug processing system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03260830A true JPH03260830A (en) | 1991-11-20 |
Family
ID=13150266
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2060715A Pending JPH03260830A (en) | 1990-03-12 | 1990-03-12 | Program debug processing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03260830A (en) |
-
1990
- 1990-03-12 JP JP2060715A patent/JPH03260830A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5307504A (en) | System and method for preserving instruction granularity when translating program code from a computer having a first architecture to a computer having a second reduced architecture during the occurrence of interrupts due to asynchronous events | |
| KR950006619B1 (en) | Improved Error Logging Method and System for Translation Code Execution | |
| JPH0766342B2 (en) | Program test equipment | |
| JPH03260830A (en) | Program debug processing system | |
| JP3461185B2 (en) | Method and apparatus for registering source code line number to load module | |
| JP2004192139A (en) | Debugging device, debugging method, and recording medium | |
| JP2672968B2 (en) | Source list output processing method for debugging | |
| JPH08137717A (en) | Debugging method and device | |
| JPS59183441A (en) | Debug processing system of extended language | |
| JP2629051B2 (en) | File organization information acquisition processing method | |
| JPH01273144A (en) | Software development supporting device | |
| JPH0468446A (en) | Debugging supporting device | |
| JPH04209029A (en) | Parallel process program translation processor | |
| JPH06295241A (en) | Program performance evaluation system | |
| JPH02307129A (en) | Setting/deleting system for snap id output sentence | |
| JP2590083B2 (en) | Source program translation processing method | |
| JPS60178535A (en) | Execution definition type command system for processing | |
| JPS63640A (en) | Execution control system for partial unit of data flow | |
| JPS58169637A (en) | Compile processing system | |
| JPS63217433A (en) | Control system for execution of program | |
| JPS63157240A (en) | Digital control device | |
| JPH03189737A (en) | Program developing device | |
| JPH04328644A (en) | Debug back-up device | |
| JPH0367340A (en) | Simulator | |
| JPH04153741A (en) | Adverse debugging execution system for debugged program |