JPH034336A - Program debug processor - Google Patents

Program debug processor

Info

Publication number
JPH034336A
JPH034336A JP1138794A JP13879489A JPH034336A JP H034336 A JPH034336 A JP H034336A JP 1138794 A JP1138794 A JP 1138794A JP 13879489 A JP13879489 A JP 13879489A JP H034336 A JPH034336 A JP H034336A
Authority
JP
Japan
Prior art keywords
debug
debug command
input
language
command
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
JP1138794A
Other languages
Japanese (ja)
Inventor
Kuniko Nishioka
西岡 邦子
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP1138794A priority Critical patent/JPH034336A/en
Publication of JPH034336A publication Critical patent/JPH034336A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To prevent a working efficiency from lowering due to the input leakage of a debug command and an input miss by executing the input of the debug command described with a debug command language in the debug processing of a user program. CONSTITUTION:When an activation for executing the debug of the user program by using a debug command described with the debug command language by the user is executed, the user inputs the debug command from terminal equip ment 8. Whether a debut command name inputted from the equipment 8 is equal to the name of the debug command group stored in a debug command language storage file 7 or not is decided, and when they are not equal, the inputted debug command is executed. When the inputted debug command name is equal to the name of the debug command group stored in the file 7, the debug command group is read in from the file 7, a debug command analyzing part 5 analyzes the logic of the debug command language, it is converted to an executable debug command group, and a debug 2 performs the execution.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理システムのプログラムデバッグ処理に
利用する。本発明は複数回にわたり定型的に行うデバッ
グ作業、あるいは大量のデバッグコマンドの入力を必要
とするようなデバッグ作業に対するプログラムデバッグ
処理に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention is utilized for program debugging processing of an information processing system. The present invention relates to program debugging processing for debugging work that is routinely performed multiple times or debugging work that requires the input of a large number of debugging commands.

〔概要〕〔overview〕

本発明は情報処理システムのプログラムデバッグ処理装
置において、 デバッグコマンド言語で記述されたデバッグコマンドを
格納しておき、デバッグコマンドが入力されたときに格
納されたデバッグコマンドを読み込み、論理を解析して
実行可能なデバッグコマンド群に変換し実行することに
より、 オペレーションミスによる効率の低下を防ぎ、作業の効
率を向上させるようにしたものである。
The present invention stores debug commands written in a debug command language in a program debug processing device for an information processing system, reads the stored debug commands when the debug commands are input, analyzes the logic, and executes the debug commands. By converting and executing a set of possible debugging commands, it prevents a drop in efficiency due to operational errors and improves work efficiency.

〔従来の技術〕[Conventional technology]

従来のプログラムデバッグ処理におけるデバッグコマン
ドの入力手順は、デバッグコマンド入力契機に対し利用
者がデバッガの定める構文のデバッグコマンドを端末装
置から投入していた。
In a conventional program debugging process, a debug command input procedure is such that a user inputs a debug command with a syntax defined by a debugger from a terminal device in response to a debug command input opportunity.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のプログラムデバッグ処理におけるデバッ
グコマンドの入力手順では、−度のデバッグ作業に同じ
内容のデバッグコマンドを複数回にわたり入力する場合
でも、入力契機に対し毎回デバッグコマンドを手入力し
なければならないため、デバッグコマンドの入力漏れ、
入力誤りなどのオペレーションに伴う入力ミスが発生す
る可能性があり、毎回同一のデバッグ作業が行えない場
合があった。
In the above-mentioned conventional debugging command input procedure in program debugging, even if the same debugging command is input multiple times for multiple debugging tasks, the debugging command must be manually input each time the input trigger occurs. , omitted debug command input,
There is a possibility that input errors may occur during operations, such as input errors, and it may not be possible to perform the same debugging task each time.

また従来の技術ではデバッグコマンド入力手順の論理の
定義は利用者自身で行う以外に方法がないため、データ
の値により実行するデバッグコマンドの内容が異なるよ
うな利用者プログラムの動作にデバッグ作業が依存され
る場合、利用者はデバッグコマンドの入力契機発生のた
びに入力するデバッグコマンドの内容を判断しなければ
ならなかった。
In addition, with conventional technology, there is no way to define the logic of the debug command input procedure other than by the user himself/herself, so the debugging work depends on the behavior of the user program, where the content of the debug command to be executed differs depending on the data value. In this case, the user had to judge the content of the debug command to be input each time an opportunity to input a debug command occurred.

本発明はこのような問題を解決するもので、デバッグコ
マンド言語によりデバッグコマンド入力の論理の定義を
可能にしてプログラムデバッグ処理が実行できる装置を
提供することを目的とする。
SUMMARY OF THE INVENTION The present invention is intended to solve these problems, and aims to provide an apparatus that can execute program debug processing by making it possible to define the logic of debug command input using a debug command language.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、主制御部と、端末装置およびこの主制御部に
接続され、前記端末装置に対しデバッグコマンドの実行
結果の出力、および前記端末装置から入力されたデバッ
グコマンドの読み込みを行う端末装置入出力部と、前記
端末装置から入力されたデバッグコマンドを実行するデ
バッガとを備えたプログラムデバッグ処理装置において
、デバッグコマンド入力作業の論理の定義を行うデバッ
グコマンド言語、およびデバッグコマンド言語で記述す
ることにより入力手順の論理の定義が行われるデバッグ
コマンド群を格納するデバッグコマンド言語格納ファイ
ルを設け、このデバッグコマンド言語格納ファイルから
デバッグコマンド言語で記述されたデバッグコマンド群
を読み込むデバッグコマンド言語入出力部と、読み込ま
れたデバッグコマンド言語の論理を解析し実行可能なデ
バッグコマンド群に変換するデバッグコマンド言語解析
部とを備えたことを特徴とする。
The present invention includes a main control unit, a terminal device, and a terminal device input that is connected to the main control unit and outputs execution results of debug commands to the terminal device and reads debug commands input from the terminal device. In a program debugging processing device that includes an output unit and a debugger that executes debugging commands input from the terminal device, a debugging command language that defines the logic of debugging command input work, and writing in the debugging command language. a debug command language input/output unit that provides a debug command language storage file that stores a debug command group for which logic of an input procedure is defined, and reads a debug command group written in the debug command language from the debug command language storage file; The present invention is characterized by comprising a debug command language analysis section that analyzes the logic of the loaded debug command language and converts it into a group of executable debug commands.

〔作用〕[Effect]

デバッグコマンド入力作業の論理の定義を行うデバッグ
コマンド言語、およびデバッグコマンド言語で記述する
ことにより入力手順の論理の定義が行われたデバッグコ
マンド群を格納しているデバッグコマンド言語格納ファ
イルからデバッグコマンド言語人出力部がデバッグコマ
ンド言語で記述されたデバッグコマンド群を読み込み、
デバッグコマンド言語解析部が読み込まれたデバッグコ
マンド言語の論理を解析して実行可能なデバッグコマン
ド群に変換し、入力されたデバッグコマンドを実行する
From the debug command language storage file that stores the debug command language that defines the logic of debug command input work and the debug command group that defines the logic of the input procedure by writing in the debug command language. The human output section reads a group of debug commands written in the debug command language,
The debug command language analysis unit analyzes the logic of the loaded debug command language, converts it into an executable debug command group, and executes the input debug commands.

これにより、デバッグコマンドの入力漏れ、入力誤りな
どのオペレーションミスによるデバッグ作業の効率の低
下を防ぎ、利用者に依存していたデバッグコマンド入力
作業の処理時間を短縮することができる。
This prevents deterioration in the efficiency of debugging work due to operational errors such as omissions in inputting debugging commands or input errors, and reduces the processing time for debugging command inputting work that is dependent on the user.

〔実施例〕〔Example〕

次に、本発明実施例を図面に基づいて説明する。 Next, embodiments of the present invention will be described based on the drawings.

第1図は本発明実施例の構成を示すブロック図、第2図
は本発明実施例の動作の流れを示すフローチャート、第
3図は本発明実施例のデバッグコマンド言語によるデバ
ッグコマンド入力手順の論理の例を示す図である。
Fig. 1 is a block diagram showing the configuration of the embodiment of the present invention, Fig. 2 is a flowchart showing the flow of operation of the embodiment of the invention, and Fig. 3 is the logic of the debug command input procedure using the debug command language of the embodiment of the invention. It is a figure showing an example.

本発明実施例は、主制御部3と、端末装置8およびこの
主制御部3に接続され、端末装置8に対しデバッグコマ
ンドの実行結果の出力、および端末装置8から入力され
たデバッグコマンドの読み込みを行う端末装置入出力部
4と、端末装置8から入力されたデバッグコマンドを実
行するデバッガ2とを備え、さらに本発明の特徴として
、デバッグコマンド入力作業の論理の定義を行うデバッ
グコマンド言語、およびデバッグコマンド言語で記述す
ることにより入力手順の論理の定義が行われるデバッグ
コマンド群を格納するデバッグコマンド言語格納ファイ
ル7を設け、このデバッグコマンド言語格納ファイル7
からデバッグコマンド言語で記述されたデバッグコマン
ド群を読み込むデバッグコマンド言語入出力部6と、読
み込まれたデバッグコマンド言語の論理を解析し実行可
能なデバッグコマンド群に変換するデバッグコマンド言
語解析部5とを備える。
In the embodiment of the present invention, a main control unit 3 is connected to a terminal device 8 and this main control unit 3, and outputs the execution results of debug commands to the terminal device 8 and reads debug commands input from the terminal device 8. The present invention includes a terminal device input/output unit 4 that performs input/output operations, and a debugger 2 that executes debug commands input from the terminal device 8. Further, as a feature of the present invention, a debug command language that defines the logic of debug command input work, and A debug command language storage file 7 is provided that stores a group of debug commands that define the logic of an input procedure by being written in a debug command language.
A debug command language input/output unit 6 reads a debug command group written in a debug command language from a debug command language, and a debug command language analysis unit 5 analyzes the logic of the read debug command language and converts it into an executable debug command group. Be prepared.

デバッグコマンド言語格納ファイル7にはデバッグコマ
ンド言語により記述されたデバッ・グコマンド群が利用
者の指定した任意の名前で格納されている。
The debug command language storage file 7 stores a group of debug commands written in the debug command language under any name specified by the user.

利用者プログラムのデバッグ時に、端末装置8から利用
者がデバッグコマンドを投入すると、端末装置入出力部
4が入力されたデバッグコマンドを読み込み、制御を主
制御部3にわたす。
When a user inputs a debug command from the terminal device 8 when debugging a user program, the terminal device input/output section 4 reads the input debug command and passes control to the main control section 3.

主制御部3は端末装置8に入力されたデバッグコマンド
名と、デバッグコマンド言語格納ファイル7内に格納さ
れているデバッグコマンド群の名前とを比較し、等しく
ないときにはその制御がデバッガ2にわたりデバッグコ
マンドが実行される。7また端末装置8から入力された
デバッグコマンド名がデバッグコマンド原語格納ファイ
ル7内に格納されているデバッグコマンド群の名前と等
しければデバッグコマンド言語入出力部6に制御がわた
り端末装置8から入力されたデバッグコマンド名をキー
にしてデバッグコマンド群を読み込む。
The main control unit 3 compares the debug command name input to the terminal device 8 and the name of the debug command group stored in the debug command language storage file 7, and if they are not equal, the control is transferred to the debugger 2 and the debug command is is executed. 7 If the debug command name input from the terminal device 8 is equal to the name of a debug command group stored in the debug command original language storage file 7, control is passed to the debug command language input/output unit 6 and the debug command name input from the terminal device 8 is Loads a group of debug commands using the debug command name as a key.

読み込まれたデバッグコマンド言語の論理をデバッグコ
マンド言語解析部5が解析し実行可能なデバッグコマン
ド群に変換し゛、デバッガ2に制御がわたりデバッグコ
マンドが実行される。
The debug command language analysis unit 5 analyzes the logic of the read debug command language and converts it into a group of executable debug commands, and control is passed to the debugger 2 to execute the debug commands.

次に第2図を参照してデバッグコマンド言語によりデバ
ッグコマンド入力の論理の定義を可能にするプログラム
デバッグ処理装置lのデバッグコマンド入力時および実
行時の動作の流れについて説明する。
Next, with reference to FIG. 2, a description will be given of the flow of operations of the program debug processing device 1, which allows the logic of debug command input to be defined using the debug command language, at the time of debug command input and execution.

利用者がデバッグコマンド言語によって記述されたデバ
ッグコマンド群を用いて利用者プログラムのデバッグを
行うための起動が行われると、利用者は端末装置8から
デバッグコマンドを入力する(Al)。
When the user starts debugging a user program using a group of debug commands written in a debug command language, the user inputs a debug command from the terminal device 8 (Al).

端末装置8から入力されたデバッグコマンド名がデバッ
グコマンド言語格納ファイル7内に格納されているデバ
ッグコマンド群の名前と等しいかどうかを判断しくA2
)、等しくなければ端末装置8から入力されたデバッグ
コマンドが実行される(A5)。
A2 to determine whether the debug command name input from the terminal device 8 is equal to the name of the debug command group stored in the debug command language storage file 7.
), if they are not equal, the debug command input from the terminal device 8 is executed (A5).

また端末装置8から入力されたデバッグコマンド名がデ
バッグコマンド言語格納ファイル7内に格納されている
デバッグコマンド群の名前と等しい場合には端末入力さ
れたデバッグコマンド名をキーにしてデバッグコマンド
言語格納ファイル7からデバッグコマンド群を読み込み
(A3)。デバッグコマンド解析部5がデバッグコマン
ド言語の論理を解析し実行可能なデバッグコマンド群に
変換しくA4)、デバッガ2がデバッグコマンドを実行
する(A5)。デバッグコマンド実行後デバッグ終了コ
マンドが入力されたか否かを判断し、入力されていなけ
ればデバッグコマンド入力(A1)に戻り、入力されて
いれば終了する。
In addition, if the debug command name input from the terminal device 8 is equal to the name of a debug command group stored in the debug command language storage file 7, the debug command language storage file is created using the debug command name input from the terminal as a key. Load the debug command group from 7 (A3). The debug command analysis unit 5 analyzes the logic of the debug command language and converts it into a group of executable debug commands (A4), and the debugger 2 executes the debug commands (A5). After executing the debug command, it is determined whether or not a debug end command has been input. If it has not been input, the process returns to debug command input (A1), and if it has been input, the process ends.

次に第3図を参照してデバッグコマンド言語によるデバ
ッグコマンド入力手順の論理の記述方法について説明す
る。
Next, a method for describing the logic of a debug command input procedure using the debug command language will be described with reference to FIG.

デバッグコマンド言語で記述されたデバッグコマンド入
力手順の論理には分岐命令、ループ命令などを含む論理
の組み込みも可能なため、ある変数の値により入力する
デバッグコマンドの内容を変えたり、または同じ内容の
デバッグコマンドを複数回にわたり入力するといった論
理の制御が可能となる。
It is possible to incorporate logic including branch instructions, loop instructions, etc. into the logic of the debug command input procedure written in the debug command language, so you can change the contents of the input debug command depending on the value of a certain variable, or change the contents of the input debug command depending on the value of a certain variable. It becomes possible to control logic by inputting debug commands multiple times.

第3図に示すデバッグコマンド入力手順の論理により定
義されるデバッグコマンド群はC0M−1の名前で作成
され制御変数として@C0UNTの名前の変数を宣言し
ている。デバッグコマンド群lが実行された後、利用者
プログラム内で使用されている変数DATAIの値が取
得される。値が0であればデバッグコマンド群2、値が
1であればデバッグコマンド群3、また値が0.1以外
であればデバッグコマンド群4が実行される。デバッグ
コマンド群5の実行後デバッグコマンド言語により宣言
されている変数@C0UNTを制御変数としてループが
発生し、デバッグコマンド群6.7がループの回数実行
される。ただしデバッグコマンド群6の実行後利用者プ
ログラム内で使用されている変数DATA2の値が取得
され、値が“XxX”であればLABという名前のラベ
ルで示されるステートメントに制御が移行される。
A debug command group defined by the logic of the debug command input procedure shown in FIG. 3 is created with the name C0M-1, and a variable named @C0UNT is declared as a control variable. After the debug command group l is executed, the value of the variable DATAI used in the user program is obtained. If the value is 0, debug command group 2 is executed, if the value is 1, debug command group 3 is executed, and if the value is other than 0.1, debug command group 4 is executed. After execution of debug command group 5, a loop is generated using the variable @C0UNT declared by the debug command language as a control variable, and debug command group 6.7 is executed the number of times in the loop. However, after the debug command group 6 is executed, the value of the variable DATA2 used in the user program is obtained, and if the value is "XxX", control is transferred to the statement indicated by the label named LAB.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、利用者プログラム
のデバッグ処理においてデバッグコマンド言語で記述さ
れたデバッグコマンドの入力を可能にすることにより、
デバッグコマンドの入力漏れ、入力誤りなどのオペレー
ションミスによるデバッグ作業の効率の低下を防ぎ、デ
バッグ作業の効率を向上させ、またデバッグコマンド言
語によリゾバッグコマンド入力の論理を定義できるよう
にすることにより、利用者に依存していたデバッグコマ
ンド入力作業の処理時間の短縮が可能となりデバッグ作
業の工数を短縮できる効果がある。
As explained above, according to the present invention, by making it possible to input debug commands written in a debug command language during debugging of a user program,
By preventing the deterioration of debugging efficiency due to operational errors such as omissions or input errors in debugging commands, improving the efficiency of debugging, and by making it possible to define the logic of resobug command input using the debugging command language. This has the effect of reducing the processing time for debug command input work, which was dependent on the user, and reducing the number of man-hours required for debugging work.

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

第1図は本発明実施例の構成を示すブロック図。 第2図は本発明実施例の動作の流れを示すフローチャー
ト。 第3図は本発明実施例のデバッグコマンド言語によるデ
バッグコマンド入力手順の論理の例を示す図。 ■・・・プログラムデバッグ処理装置、2・・・デバッ
ガ、3・・・主制御部、4・・・端末装置入出力部、5
・・・デバッグコマンド言語解析部、6・・・デバッグ
コマンド言語入出力部、7・・・デバッグコマンド言語
格納ファイル、8・・・端末装置。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. FIG. 2 is a flowchart showing the operation flow of the embodiment of the present invention. FIG. 3 is a diagram showing an example of the logic of a debug command input procedure using the debug command language according to the embodiment of the present invention. ■...Program debug processing device, 2...Debugger, 3...Main control unit, 4...Terminal device input/output unit, 5
. . . Debug command language analysis section, 6. Debugging command language input/output section, 7. Debugging command language storage file, 8. Terminal device.

Claims (1)

【特許請求の範囲】 1、主制御部と、 端末装置およびこの主制御部に接続され、前記端末装置
に対しデバッグコマンドの実行結果の出力、および前記
端末装置から入力されたデバッグコマンドの読み込みを
行う端末装置入出力部と、前記端末装置から入力された
デバッグコマンドを実行するデバッガと を備えたプログラムデバッグ処理装置においてデバッグ
コマンド入力作業の論理の定義を行うデバッグコマンド
言語、およびデバッグコマンド言語で記述することによ
り入力手順の論理の定義が行われるデバッグコマンド群
を格納するデバッグコマンド言語格納ファイルを設け、 このデバッグコマンド言語格納ファイルからデバッグコ
マンド言語で記述されたデバッグコマンド群を読み込む
デバッグコマンド言語入出力部と、読み込まれたデバッ
グコマンド言語の論理を解析し実行可能なデバッグコマ
ンド群に変換するデバッグコマンド言語解析部と を備えたことを特徴とするプログラムデバッグ処理装置
[Claims] 1. A main control unit, which is connected to a terminal device and the main control unit, and outputs execution results of debug commands to the terminal device and reads debug commands input from the terminal device. A debug command language that defines the logic of a debug command input operation in a program debug processing device that includes a terminal device input/output unit to perform debug commands and a debugger that executes debug commands input from the terminal device, and a debug command language that defines the logic of debug command input operations. A debug command language storage file is provided to store a group of debug commands that define the logic of the input procedure, and a debug command language input/output function is used to read the debug command group written in the debug command language from this debug command language storage file. What is claimed is: 1. A program debug processing device comprising: a debug command language analysis section that analyzes the logic of a loaded debug command language and converts it into a group of executable debug commands.
JP1138794A 1989-05-31 1989-05-31 Program debug processor Pending JPH034336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1138794A JPH034336A (en) 1989-05-31 1989-05-31 Program debug processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1138794A JPH034336A (en) 1989-05-31 1989-05-31 Program debug processor

Publications (1)

Publication Number Publication Date
JPH034336A true JPH034336A (en) 1991-01-10

Family

ID=15230377

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1138794A Pending JPH034336A (en) 1989-05-31 1989-05-31 Program debug processor

Country Status (1)

Country Link
JP (1) JPH034336A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4957009A (en) * 1988-09-23 1990-09-18 Spectra-Physics, Inc. Pushloop liquid sampling method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4957009A (en) * 1988-09-23 1990-09-18 Spectra-Physics, Inc. Pushloop liquid sampling method

Similar Documents

Publication Publication Date Title
JPS63181033A (en) Automatic program generating system
JPH0721033A (en) Device and method for processing language
JP3380390B2 (en) Debug information display device
CN109522005A (en) Cross-platform GRAPHICAL PROGRAMMING method
JPH07230386A (en) Data processor and method for calling control routine
JPH034336A (en) Program debug processor
JPH10187461A (en) Language processing system
JP4055197B2 (en) Device for analyzing procedures included in the program
JP3039450B2 (en) Stack area switching method and method, and storage medium storing stack area switching program
JPH0193826A (en) System for counting dynamic step of high grade language
JPH03273346A (en) Dynamic call relation analyzing system by symbolic debugger
US7627859B2 (en) Method for configuring non-script language library files to be run as scripts
JPH04333146A (en) Program execution control system for debugging
JPH02253442A (en) Program debugging processor
Tachimoto et al. Automatic testing system based on process programming for telecommunication software
JPH04289927A (en) Extended command generating system for debugger
JPS63259735A (en) Program debug system by program diagram in actual operating environment of program
JPH0619731B2 (en) Program unit test method
JPH03129535A (en) Collecting volume optimizing system for debugging information
JPH0588878A (en) Lisp instruction executing system
JPH04270425A (en) Program debugging device
JPH0695910A (en) Interactive debugging control system for abnormality processing
JPH03271839A (en) Program operation analyzing system
JPH064348A (en) Program debugging system
JPH0488438A (en) One-instruction execution system of debugger for source program in high-level language