JPH05224981A - Debugger - Google Patents

Debugger

Info

Publication number
JPH05224981A
JPH05224981A JP4027045A JP2704592A JPH05224981A JP H05224981 A JPH05224981 A JP H05224981A JP 4027045 A JP4027045 A JP 4027045A JP 2704592 A JP2704592 A JP 2704592A JP H05224981 A JPH05224981 A JP H05224981A
Authority
JP
Japan
Prior art keywords
command
program
user
debugger
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
Application number
JP4027045A
Other languages
Japanese (ja)
Inventor
Koji Okabe
浩嗣 岡部
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.)
KOBE NIPPON DENKI SOFTWARE KK
NEC Software Kobe Ltd
Original Assignee
KOBE NIPPON DENKI SOFTWARE KK
NEC Software Kobe 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 KOBE NIPPON DENKI SOFTWARE KK, NEC Software Kobe Ltd filed Critical KOBE NIPPON DENKI SOFTWARE KK
Priority to JP4027045A priority Critical patent/JPH05224981A/en
Publication of JPH05224981A publication Critical patent/JPH05224981A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To provide a debugger which can repeat a series of debugging procedures as a single command in a simple way and in many times and can ensure the simple and highly effective debugging tasks. CONSTITUTION:A debugger 1 is provided with a command control means 2 which analyzes various commands inputted by the users end outputs the control information, a command program generating means 3 which receives the control information obtained by analyzing a program production command and received from the means 2 end produces a command showing a debugging procedure as a command program to save this program into a command program data file 7, a command program processing means 4 which receives the control information obtained by analyzing a program execution command and received from the means 2 and analyzes a command program showing a debugging procedure to process this program, and a debugging function executing means 5 which is connected to the means 4 and makes it possible to use an external user program 6 when the command program is carried out.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデバッガに関し、特に既
に生成したコマンドプログラムを1コマンドとして使用
するデバッガに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a debugger, and more particularly to a debugger which uses a command program already generated as one command.

【0002】[0002]

【従来の技術】従来のデバッガは、利用者がデバッガに
対してプログラムの停止位置の設定を行い、ある時点で
プログラムを停止させて、この時点で任意のメモリ内容
を表示させたり、一部のレジスタやすべてのレジスタの
内容を表示させ、作成したプログラムがどのような動き
をしているかをトレースし、誤りの箇所を限定していく
ようにしている。これらのデバッグ作業は、機能単位の
コマンドをデバッガに対話的に逐一与えることにより実
行している。
2. Description of the Related Art In a conventional debugger, a user sets a program stop position in the debugger, stops the program at a certain point, and displays arbitrary memory contents at this point, or The contents of the registers and all the registers are displayed, the behavior of the created program is traced, and the location of the error is limited. These debugging operations are performed by interactively giving commands to the debugger in units of functions.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のデバッ
ガは、利用者が単一機能単位のコマンドを順に与えるこ
とでのみデバッグ作業を行っていたため、例えば、ある
停止位置でプログラムの実行を止めてメモリの内容を表
示するという作業を繰り返したい場合や、メモリの内容
が特定の値になった時にレジスタの内容を表示したい場
合等では、利用者が必要なコマンドを逐次入力し、デバ
ッグ作業を進めメモリを表示させたり、レジスタの内容
を確認をしたりしなければならなかった。これは、プロ
グラムのデバッグのために同じことをもう一度行いたい
場合も同様であった。さらに、利用者が作成したプログ
ラムを修正した後に、このプログラムが正しく動作して
いるかの確認を行うため、デバッガに対して以前と同じ
処理を行いたい場合にも、利用者は、同じ手順でデバッ
グコマンドの入力を繰り返す必要があった。すなわちデ
バッガに対して以前と同じ一連の指示を繰り返す必要が
ある場合には、以前と全く同じ指示を再度繰り返して入
力しなければならず、二度手間になりデバッグ作業を時
間のかかるものとしてしまうという問題点がある。
In the above-mentioned conventional debugger, since the user performs the debugging work only by sequentially giving the commands of a single function unit, for example, the execution of the program is stopped at a certain stop position. If you want to repeat the work of displaying the contents of the memory, or if you want to display the contents of the register when the contents of the memory reach a specific value, you can enter the necessary commands one after another and proceed with the debugging work. I had to display the memory and check the contents of the registers. This was true even if I wanted to do the same thing again to debug the program. In addition, after modifying the program created by the user, to confirm whether this program is operating correctly, even if the user wants to perform the same processing as before for the debugger, the user should follow the same procedure to debug. I had to repeat typing commands. In other words, if it is necessary to repeat the same series of instructions to the debugger as before, you have to repeat the exact same instructions as before and input them again, which will be troublesome twice and debugging will take time. There is a problem.

【0004】本発明の目的は、一連のデバッグ手順を1
コマンドとして簡単にしかも何度も繰り返し行うことを
可能とし、デバッグ作業を単純で効率の良いものにする
デバッガを提供することにある。
The object of the present invention is to provide a series of debug procedures
It is to provide a debugger that can be easily and repeatedly executed as a command and that makes debugging work simple and efficient.

【0005】[0005]

【課題を解決するための手段】本発明のデバッガは、利
用者と対話的に情報を交換しプログラムデバッグを行う
デバッガにおいて、前記利用者の入力する各種コマンド
を解析し制御情報を出力するコマンド制御手段と、前記
利用者の入力するプログラム作成コマンドを解析した前
記コマンド制御手段からの制御情報を受けデバッグ手順
を示すコマンドをコマンドプログラムとして生成するコ
マンドプログラム生成手段と、前記利用者の入力するプ
ログラム実行コマンドを解析した前記コマンド制御手段
からの制御情報を受け前記デバッグ手順を示すコマンド
プログラムを解析し処理実行するコマンドプログラム処
理手段と、前記コマンドプログラム処理手段に接続しコ
マンドプログラムの実行の際外部に設けた利用者プログ
ラムの利用を可能とする機能を持つデバッグ機能実行手
段とを有する構成である。
DISCLOSURE OF THE INVENTION A debugger of the present invention is a command control for analyzing various commands input by the user and outputting control information in the debugger for interactively exchanging information with the user for program debugging. Means, command program generating means for receiving a control information from the command control means that analyzes a program creating command input by the user, and generating a command indicating a debugging procedure as a command program, and executing a program input by the user Command program processing means for receiving control information from the command control means that has analyzed the command and analyzing and processing the command program indicating the debug procedure, and externally provided when executing the command program connected to the command program processing means Available user programs A structure having a debugging function executing means having a function of.

【0006】本発明のデバッガは、デバッグ機能実行手
段が利用者の入力するデバックコマンドを解析したコマ
ンド制御手段から直接に制御情報を受け、外部に設けた
利用者プログラムを使用してデバッグを実行する機能を
有してもよい。
In the debugger of the present invention, the debug function executing means directly receives the control information from the command control means which analyzes the debug command input by the user, and executes the debugging by using the user program provided outside. It may have a function.

【0007】本発明のデバッガは、コマンドプログラム
生成手段が生成したコマンドプログラムを退避するため
外部に設けられたコマンドプログラムデータファイルと
接続してもよい。
The debugger of the present invention may be connected to an external command program data file for saving the command program generated by the command program generating means.

【0008】[0008]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0009】図1は本発明の一実施例のブロック図であ
る。
FIG. 1 is a block diagram of an embodiment of the present invention.

【0010】本発明のデバッガ1は、利用者の入力する
各種コマンドを解析し制御情報を出力するコマンド制御
手段2と、利用者の入力するプログラム作成コマンドを
解析したコマンド制御手段2からの制御情報を受けデバ
ッグ手順を示すコマンドをコマンドプログラムとして生
成するコマンドプログラム生成手段3と、利用者の入力
するプログラム実行コマンドを解析したコマンド制御手
段2からの制御情報を受けデバッグ手順を示すコマンド
プログラムを解析し処理実行するコマンドプログラム処
理手段4と、コマンドプログラム処理手段4に接続しコ
マンドプログラムの実行の際外部に設けた利用者プログ
ラム6の利用を可能とする機能を持つデバッグ機能実行
手段5とを有し、さらに、コマンドプログラム生成手段
3が、生成したコマンドプログラムを退避するため、外
部に設けられたコマンドプログラムデータファイル7と
接続している。
The debugger 1 of the present invention includes command control means 2 for analyzing various commands input by the user and outputting control information, and control information from the command control means 2 for analyzing the program creation command input by the user. Command command generating means 3 for generating a command indicating a debugging procedure as a command program and command control means 2 for analyzing a program execution command input by a user, and analyzing a command program indicating a debugging procedure. It has a command program processing means 4 for executing processing, and a debug function executing means 5 connected to the command program processing means 4 and having a function for enabling the use of a user program 6 provided outside when executing the command program Furthermore, the command program generating means 3 generates the For saving the command program, and is connected to the command program data file 7 provided outside.

【0011】図2はコマンド生成手段の機能を示すブロ
ック図である。
FIG. 2 is a block diagram showing the function of the command generating means.

【0012】利用者がデバッグ手段に対して行いたい一
連のデバッグ手順を一つにまとめたコマンドプログラム
を作成するには、コマンド制御手段2に対してプログラ
ム作成コマンドを入力し、コマンドプログラム生成手段
3に制御を移す。コマンドプログラム生成手段2には、
図示するようにコマンドプログラムに対する編集手段8
と、待避手段9と、入力手段10とが存在する。利用者
は、編集手段8により一連のデバッグ手順を一つにまと
めたコマンドプログラムを作成することができる。ま
た、作成したコマンドプログラムを退避手段9および入
力手段10によりコマンドプログラムファイル7とし
て、外部媒体に残して置くことや、または、そこから読
み込んで、再度コマンドプログラムとすることもでき
る。
In order to create a command program in which a series of debugging procedures that the user wants to perform for the debugging means is entered, a program creation command is input to the command control means 2 and the command program creation means 3 is entered. Transfer control to. The command program generating means 2 includes
Editing means 8 for the command program as shown
There are a saving means 9 and an input means 10. The user can create a command program in which a series of debugging procedures are put together by the editing means 8. Further, the created command program can be left in the external medium as the command program file 7 by the saving means 9 and the input means 10, or can be read from the external medium and used as the command program again.

【0013】次にコマンドプログラムの実行動作につい
て説明する。
Next, the operation of executing the command program will be described.

【0014】このようにして作成したコマンドプログラ
ムを実行するには、コマンド制御手段2に対してプログ
ラム実行コマンドを入力し、コマンドプログラム処理手
段4に制御を移す。
To execute the command program created in this way, a program execution command is input to the command control means 2 and control is transferred to the command program processing means 4.

【0015】図3はコマンドプログラム処理手段の動作
の流れ図である。
FIG. 3 is a flow chart of the operation of the command program processing means.

【0016】起動されると、まず、指定されたコマンド
プログラムを読み込んで、構文解析を行い、不正なコマ
ンドプログラムがないか走査する(ステップ101)。
次に解析したコマンドプログラムを実際に実行するため
にコマンドプログラムを各ステップごとに内部コードに
変換する(ステップ102)。又、この変換のステップ
は走査ステップ101と同時に行うようにしてもよい。
なお、内部コードへの変換は、実行時の処理の簡略化お
よび効率化のために行う。次に、内部コードを順番に取
り出し(ステップ103)、終了条件を満たすか否かを
判別し(ステップ104)満たせばプログラム実行手段
は終了する。満たしていなければ取り出した内部コード
を解析し(ステップ105)、この内部コードがデバッ
グコマンドの実行か否かを判別し(ステップ106)、
実行ならばデバッグ機能実行手段へ制御を移行し(ステ
ップ107)、実行でなければ内部コードにより条件判
断,分岐,代入等の内部コード処理を行い(ステップ1
08)、再度、ステップ103に戻り処理を継続する。
When it is started, first, the specified command program is read, syntax analysis is performed, and scanning is performed for an illegal command program (step 101).
Next, in order to actually execute the analyzed command program, the command program is converted into an internal code at each step (step 102). Further, this conversion step may be performed simultaneously with the scanning step 101.
The conversion to the internal code is performed in order to simplify the processing at the time of execution and improve efficiency. Next, the internal codes are sequentially taken out (step 103), and it is judged whether or not the end condition is satisfied (step 104). If the end condition is satisfied, the program executing means is ended. If not satisfied, the internal code taken out is analyzed (step 105), and it is determined whether this internal code is the execution of the debug command (step 106).
If it is executed, the control is transferred to the debug function executing means (step 107), and if it is not executed, internal code processing such as condition judgment, branching and substitution is performed by the internal code (step 1).
08), the process returns to step 103 again to continue the process.

【0017】以上のように、コマンドプログラム処理手
段4が一連のデバッグコマンドを解析し実行することで
利用者からは、1デバッグコマンド(プログラム)が実
行されているように見える。もちろん同一のコマンドプ
ログラムに対しては、毎回コマンドプログラムデータフ
ァイル7を読み込みに行かずに、既にメモリ中に存在す
れば、それを実行するようにすることも可能である。
As described above, the command program processing means 4 analyzes and executes a series of debug commands, so that it appears to the user that one debug command (program) is being executed. Of course, for the same command program, it is also possible to execute the command program data file 7 if it already exists in the memory without reading the command program data file 7 each time.

【0018】また、利用者はデバッグコマンドにより、
コマンド制御部2から直接にデバッグ機能実行手段5を
利用することも可能である。
The user can use the debug command to
It is also possible to use the debug function executing means 5 directly from the command control unit 2.

【0019】[0019]

【発明の効果】以上説明したように、本発明は、利用者
の入力する各種コマンドを解析し制御情報を出力するコ
マンド制御手段と、利用者の入力するプログラム作成コ
マンドを解析したコマンド制御手段からの制御情報を受
けデバッグ手順を示すコマンドをコマンドプログラムと
して生成するコマンドプログラム生成手段と、利用者の
入力するプログラム実行コマンドを解析したコマンド制
御手段からの制御情報を受けデバッグ手順を示すコマン
ドプログラムを解析し処理実行するコマンドプログラム
処理手段と、コマンドプログラム処理手段に接続しコマ
ンドプログラムの実行の際外部に設けた利用者プログラ
ムの利用を可能とする機能を持つデバッグ機能実行手段
とを有することにより、一連のデバッグ手順を1コマン
ドとして簡単にしかも何度も繰り返し行うことを可能と
し、デバッグ作業を単純で効率の良いものにすることが
可能となるという効果が有る。
As described above, the present invention comprises the command control means for analyzing various commands input by the user and outputting the control information, and the command control means for analyzing the program creation command input by the user. Command program generating means for receiving a command indicating a debugging procedure as a command program by receiving control information of the above and command command analyzing means for analyzing a program execution command input by the user and analyzing a command program indicating a debugging procedure By having a command program processing means for executing the processing and a debug function executing means connected to the command program processing means and capable of using a user program provided outside when executing the command program. Simplifies the debugging procedure of Also make it possible to carry out repeated many times, the effect is there that it becomes possible to the good things simple and efficient debugging work.

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

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】コマンド生成手段の機能を示すブロック図であ
る。
FIG. 2 is a block diagram showing a function of a command generating means.

【図3】コマンドプログラム処理手段の動作の流れ図で
ある。
FIG. 3 is a flowchart of the operation of command program processing means.

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

1 デバッガ 2 コマンド制御手段 3 コマンドプログラム生成手段 4 コマンドプログラム処理手段 5 デバッグ機能実行手段 6 利用者プログラム 7 コマンドプログラムデータファイル 8 編集手段 9 待避手段 10 入力手段 1 Debugger 2 Command Control Means 3 Command Program Generation Means 4 Command Program Processing Means 5 Debug Function Execution Means 6 User Programs 7 Command Program Data Files 8 Editing Means 9 Saving Means 10 Input Means

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 利用者と対話的に情報を交換しプログラ
ムデバッグを行うデバッガにおいて、前記利用者の入力
する各種コマンドを解析し制御情報を出力するコマンド
制御手段と、前記利用者の入力するプログラム作成コマ
ンドを解析した前記コマンド制御手段からの制御情報を
受けデバッグ手順を示すコマンドをコマンドプログラム
として生成するコマンドプログラム生成手段と、前記利
用者の入力するプログラム実行コマンドを解析した前記
コマンド制御手段からの制御情報を受け前記デバッグ手
順を示すコマンドプログラムを解析し処理実行するコマ
ンドプログラム処理手段と、前記コマンドプログラム処
理手段に接続しコマンドプログラムの実行の際外部に設
けた利用者プログラムの利用を可能とする機能を持つデ
バッグ機能実行手段とを有することを特徴とするデバッ
ガ。
1. In a debugger for interactively exchanging information with a user to debug a program, command control means for analyzing various commands input by the user and outputting control information, and a program input by the user A command program generating means for receiving a control command from the command control means that analyzes the created command and generating a command indicating a debug procedure as a command program; and a command program generating means for analyzing the program execution command input by the user. A command program processing means for receiving control information and analyzing and executing a command program showing the debug procedure, and a user program provided outside when connecting to the command program processing means to enable execution of the command program. Debug function execution means with functions And a debugger.
【請求項2】 デバッグ機能実行手段が利用者の入力す
るデバックコマンドを解析したコマンド制御手段から直
接に制御情報を受け、外部に設けた利用者プログラムを
使用してデバッグを実行する機能を有することを特徴と
する請求項1記載のデバッガ。
2. The debug function executing means has a function of directly receiving control information from a command control means that analyzes a debug command input by a user and executing debugging by using an external user program. The debugger according to claim 1, wherein:
【請求項3】 コマンドプログラム生成手段が生成した
コマンドプログラムを退避するため外部に設けられたコ
マンドプログラムデータファイルと接続することを特徴
とする請求項1記載のデバッガ。
3. The debugger according to claim 1, wherein the debugger is connected to an externally provided command program data file for saving the command program generated by the command program generating means.
JP4027045A 1992-02-14 1992-02-14 Debugger Withdrawn JPH05224981A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4027045A JPH05224981A (en) 1992-02-14 1992-02-14 Debugger

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4027045A JPH05224981A (en) 1992-02-14 1992-02-14 Debugger

Publications (1)

Publication Number Publication Date
JPH05224981A true JPH05224981A (en) 1993-09-03

Family

ID=12210107

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4027045A Withdrawn JPH05224981A (en) 1992-02-14 1992-02-14 Debugger

Country Status (1)

Country Link
JP (1) JPH05224981A (en)

Similar Documents

Publication Publication Date Title
JP4909877B2 (en) Debugging apparatus and debugging method
CA2143145C (en) Determining dynamic properties of programs
JPH09259153A (en) Device and method for generating batch execution control program
JPH05224981A (en) Debugger
JP2003162426A (en) Computer system with cooperative debug circuit for multiple cpu and debug method
JPH0916382A (en) Program development supporting system
JPH0272407A (en) Ladder program converter
JPH07295612A (en) High-level language sequence instruction program generation part and general sequencer
JPH03179535A (en) Debug supporting device
Stepney A tale of two proofs
JPS59183441A (en) Debug processing system of extended language
JPH05204698A (en) Debugger processing system
JP3114884B2 (en) Fuzzy inference processing compilation system
JPH05346858A (en) Program editing method
JP3105546B2 (en) Assembler symbol debug information processing method
JPH02101550A (en) File-form conversion system without format
JPH0546434A (en) Program debugging system
JPH05108372A (en) System for outputting compiler optimization processing content
JPH0778096A (en) Program test system
JPH05127945A (en) Program execution situation analysis system
JPH10214193A (en) Data processor and data processing method
JPH03260828A (en) Information processor
JPH06295241A (en) Program performance evaluation system
JPH11102302A (en) Testing tool for confirming hardware operation
JP2003140891A (en) Device and method for developing application, and computer program therefor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990518