JPH11161514A - Debugger device, debugging method and storage medium recording debugging program - Google Patents

Debugger device, debugging method and storage medium recording debugging program

Info

Publication number
JPH11161514A
JPH11161514A JP9330438A JP33043897A JPH11161514A JP H11161514 A JPH11161514 A JP H11161514A JP 9330438 A JP9330438 A JP 9330438A JP 33043897 A JP33043897 A JP 33043897A JP H11161514 A JPH11161514 A JP H11161514A
Authority
JP
Japan
Prior art keywords
module
debugging
debug
execution processing
data
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
JP9330438A
Other languages
Japanese (ja)
Inventor
Hikoji Onodera
彦 事 小野寺
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP9330438A priority Critical patent/JPH11161514A/en
Publication of JPH11161514A publication Critical patent/JPH11161514A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a debugger device capable of debugging respective modules without omission even in the case of simultaneously activating the plural modules. SOLUTION: This debugger device is provided with a control part 1, plural debugging execution processing parts 2, a data storage part 3, a data sampling processing part 4 and a display device 5. In this case, when the module during debugging at present instructs the activation of a slave process, the control part 1 selects the debugging execution processing part 2 for debugging the module corresponding to the slave process and sets information required for debugging to the selected debugging execution processing part 2. Also, when the transmission and reception of data are instructed, the control part 1 instructs the module for transmitting and receiving the data to transfer the information relating to transmission/reception data to the data storage part 3 and then, instructs the data sampling processing part 4 to generate the data for screen display. Receiving the instruction, the data sampling processing part 4 generates the data for the screen display.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、複数のモジュール
からなるプログラムのデバッグを行う技術に関し、特
に、C言語等の高級言語で記述されたプログラムのデバ
ッグを対象とする。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for debugging a program including a plurality of modules, and more particularly, to a technique for debugging a program described in a high-level language such as C language.

【0002】[0002]

【従来の技術】C言語などの高級言語で記述されたプロ
グラムに誤りがあるか否かを、ソースコードレベルで検
証するデバッガ装置が広く利用されている。この種のデ
バッガ装置は、プログラムを構成するソースコードを各
行ごとに実行して、その実行結果を画面に表示する機能
を有する。この種のデバッガ装置を利用すれば、ソース
コードを行単位で検証できるため、バグを容易に発見で
き、プログラムの開発期間を短縮することができる。
2. Description of the Related Art A debugger device that verifies at a source code level whether a program described in a high-level language such as the C language has an error is widely used. This type of debugger has a function of executing a source code constituting a program for each line and displaying the execution result on a screen. If this type of debugger device is used, the source code can be verified line by line, so that bugs can be easily found and the program development period can be shortened.

【0003】[0003]

【発明が解決しようとする課題】最近では、CPUの高
速化に伴って、プログラム(ソフトウエア)も複雑高度
化する傾向にあり、プログラムの開発期間も長くなる傾
向にある。プログラムを効率的に開発するには、プログ
ラムを機能単位で複数のモジュールに分け、各モジュー
ルごとに開発を行うのが望ましい。
Recently, with the speeding up of the CPU, programs (software) tend to be complicated and sophisticated, and the development period of the program tends to be long. In order to develop a program efficiently, it is desirable to divide the program into a plurality of modules for each function and develop each module.

【0004】ところが、従来のデバッガ装置は、複数の
モジュールを同時にデバッグすることができず、例え
ば、あるモジュールから子プロセスを起動する場合に
は、その子プロセスのデバッグを行うデバッガ装置を新
たに起動する必要があった。また、異なる複数のモジュ
ール間でデータの送受信を行う場合も、送信側モジュー
ルと受信側モジュールで別個にデバッガ装置を起動しな
ければならなかった。
However, the conventional debugger device cannot debug a plurality of modules at the same time. For example, when a child process is started from a certain module, a debugger device for debugging the child process is newly started. Needed. Also, when data is transmitted / received between a plurality of different modules, the debugger device has to be separately activated in the transmitting module and the receiving module.

【0005】このため、場合によっては、デバッガ装置
を起動している最中に、子プロセスの処理やデータ送受
信が終了してしまうことがあり、子プロセスの処理やデ
ータ送受信が正常に行われたか否かを確認できないおそ
れがあった。
[0005] For this reason, in some cases, processing of the child process and data transmission / reception may end while the debugger device is running, and whether the processing and the data transmission / reception of the child process are performed normally. There was a possibility that it was not possible to confirm whether or not it was.

【0006】本発明は、このような点に鑑みてなされた
ものであり、その目的は、子プロセスの起動やデータの
送受信など、複数のモジュールを同時に起動した場合で
も、各モジュールのデバッグを取りこぼしなく行うこと
ができるデバッガ装置を提供することにある。
The present invention has been made in view of such a point, and an object of the present invention is to eliminate debugging of each module even when a plurality of modules are started simultaneously, such as starting a child process and transmitting / receiving data. It is an object of the present invention to provide a debugger device which can be performed without any error.

【0007】[0007]

【課題を解決するための手段】上述した課題を解決する
ために、請求項1の発明は、複数のモジュールからなる
プログラムのデバッグを行うことが可能なデバッガ装置
であって、モジュール単位でデバッグを行う複数のデバ
ッグ実行処理手段と、一つのモジュールから他のモジュ
ールを起動する場合に、起動元のモジュールをデバッグ
する前記デバッグ実行処理手段とは別のデバッグ実行処
理手段を起動先のモジュールのデバッグ用として割り当
て、かつ、新たに割り当てた前記デバッグ実行処理手段
に対してデバッグに必要な情報を設定するデバッグ制御
手段と、を備えるものである。
According to an aspect of the present invention, there is provided a debugger apparatus capable of debugging a program including a plurality of modules, wherein the debugging is performed on a module basis. A plurality of debug execution processing means for performing, and when starting another module from one module, a debug execution processing means different from the debug execution processing means for debugging an activation source module. And debug control means for setting information necessary for debugging in the newly executed debug execution processing means.

【0008】請求項1の発明を、例えば図1に対応づけ
て説明すると、「複数のデバッグ実行処理手段」はデバ
ッグ実行処理部2に、「デバッグ制御手段」は制御部1
に、それぞれ対応する。
The invention according to claim 1 will be described with reference to FIG. 1, for example. "A plurality of debug execution processing means" are provided in the debug execution processing unit 2, and "debug control means" is provided in the control unit 1
Respectively.

【0009】請求項2の発明を、例えば図1に対応づけ
て説明すると、「デバッグ情報格納手段」はデータ格納
部3に対応する。
The invention of claim 2 will be described with reference to, for example, FIG. 1. "Debug information storage means" corresponds to the data storage unit 3.

【0010】請求項3の発明を、例えば図1に対応づけ
て説明すると、「表示制御手段」は制御部1およびデー
タ採取処理部4に対応する。
[0010] The display control means corresponds to the control unit 1 and the data collection processing unit 4.

【0011】請求項4の発明を、例えば図1に対応づけ
て説明すると、「送受信情報記憶手段」はデータ格納部
3に対応する。
The transmission and reception information storage means corresponds to the data storage unit 3.

【0012】[0012]

【発明の実施の形態】以下、本発明を適用したデバッガ
装置について、図面を参照しながら具体的に説明する。
以下に説明するデバッガ装置は、高級言語で記述された
複数のモジュールからなるプログラムのソースコードデ
バッグを行うものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a debugger device to which the present invention is applied will be specifically described with reference to the drawings.
The debugger device described below debugs a source code of a program including a plurality of modules described in a high-level language.

【0013】図1は本発明に係るデバッガ装置の一実施
形態のブロック図である。図1のデバッガ装置は、制御
部1と、複数のデバッグ実行処理部2と、データ格納部
3と、データ採取処理部4と、表示装置5とを備える。
FIG. 1 is a block diagram of one embodiment of a debugger device according to the present invention. The debugger device of FIG. 1 includes a control unit 1, a plurality of debug execution processing units 2, a data storage unit 3, a data collection processing unit 4, and a display device 5.

【0014】デバッグ実行処理部2はいずれも同じよう
に構成され、制御部1から指示されたプログラムモジュ
ールのソースコードデバッグを行う。デバッグ結果は制
御部1を介して表示装置5に表示される。制御部1の内
部には、図示のように配列部6が設けられ、この配列部
6には、新たに起動されたモジュールの名称(より詳細
には、モジュールのプロセスID)と、そのモジュール
のデバッグを行うデバッグ実行処理部2の名称とが対応
づけて格納される。なお、配列部6は、具体的には、メ
モリやレジスタなどで構成される。
Each of the debug execution units 2 has the same configuration, and performs source code debugging of a program module specified by the control unit 1. The debug result is displayed on the display device 5 via the control unit 1. An array unit 6 is provided inside the control unit 1 as shown in the figure. In the array unit 6, the name of a newly activated module (more specifically, the process ID of the module) and the The name of the debug execution processing unit 2 that performs debugging is stored in association with the name. The array unit 6 is specifically composed of a memory, a register, and the like.

【0015】データ格納部3は、複数のモジュール間で
送受信されるデータ等を格納する。データ採取処理部4
は、データ送受信時の各モジュールのプログラム実行位
置等を表示装置5に表示するためのデータを生成する。
データ採取処理部4で生成されたデータは、制御部1を
介して表示装置5に表示される。
The data storage unit 3 stores data and the like transmitted and received between a plurality of modules. Data collection processing unit 4
Generates data for displaying the program execution position of each module at the time of data transmission / reception on the display device 5.
The data generated by the data collection processing unit 4 is displayed on the display device 5 via the control unit 1.

【0016】図2は図1の制御部1の処理動作を示すフ
ローチャートであり、以下、このフローチャートに基づ
いて、図1の制御部1の処理動作を説明する。まず、制
御部1は、プログラムのメインモジュールのデバッグを
行うデバッグ実行処理部2を選択し、選択したデバッグ
実行処理部2に、デバッグに必要な情報を設定する(ス
テップS1)。このデバッグ実行処理部2は、メインモ
ジュールのソースコードを1行ずつ実行して、行単位で
デバッグを行う。
FIG. 2 is a flowchart showing the processing operation of the control unit 1 of FIG. 1. The processing operation of the control unit 1 of FIG. 1 will be described below based on this flowchart. First, the control unit 1 selects the debug execution processing unit 2 for debugging the main module of the program, and sets information necessary for debugging in the selected debug execution processing unit 2 (step S1). The debug execution processing unit 2 executes the source code of the main module one line at a time, and performs debugging in line units.

【0017】次に、制御部1は、デバッグ実行処理部2
が行ったメインモジュールのデバッグ結果を表示装置5
に表示する制御を行う(ステップS2)。次に、制御部
1は、現在デバッグ中のメインモジュールが子プロセス
の起動を指示したか否かを判定する(ステップS3)。
子プロセスの起動が指示されると、制御部1は、子プロ
セスに対応するモジュールのデバッグを行うデバッグ実
行処理部2を選択し、選択したデバッグ実行処理部2
に、デバッグに必要な情報を設定する(ステップS
4)。同時に、制御部1は、新たに起動した子プロセス
のプロセスIDと、そのモジュールのデバッグを行うデ
バッグ実行処理部2の名称とを、配列部6に格納する。
この配列部6には、新たに子プロセスを起動するたび
に、その子プロセスのプロセスIDと、デバッグ実行処
理部2の名称とが追加して格納される。
Next, the control unit 1 includes a debug execution processing unit 2
Display results of the main module debugging performed by
Is performed (step S2). Next, the control unit 1 determines whether or not the main module currently being debugged has instructed the activation of a child process (step S3).
When the activation of the child process is instructed, the control unit 1 selects the debug execution processing unit 2 for debugging the module corresponding to the child process, and selects the selected debug execution processing unit 2
Information required for debugging (step S
4). At the same time, the control unit 1 stores, in the array unit 6, the process ID of the newly started child process and the name of the debug execution processing unit 2 that debugs the module.
Each time a new child process is started, the array unit 6 additionally stores the process ID of the child process and the name of the debug execution processing unit 2.

【0018】次に、制御部1は、ステップS4で選択し
たデバッグ実行処理部2が行ったデバッグ結果を表示装
置5に表示する(ステップS5)。
Next, the control unit 1 displays on the display device 5 the results of the debugging performed by the debug execution processing unit 2 selected in step S4 (step S5).

【0019】図3はメインモジュールから子プロセスを
起動する場合のデバッガ装置内でのデータの流れを説明
する図である。制御部1は、まず、メインモジュールの
プロセスID「aa」と、メインモジュールのデバッグ
を行うデバッグ実行処理部2の名称「D1」とを対応づ
けて配列部6に格納する。また、デバッグ実行処理部2
は、メインモジュールaaを1行ずつ実行してデバッグ
を行い、デバッグ結果を制御部1に転送する。
FIG. 3 is a diagram for explaining the flow of data in the debugger device when a child process is started from the main module. The control unit 1 first stores the process ID “aa” of the main module and the name “D1” of the debug execution processing unit 2 that debugs the main module in the array unit 6 in association with each other. Also, the debug execution processing unit 2
Executes the main module aa line by line to perform debugging, and transfers the debugging result to the control unit 1.

【0020】新たなモジュールを起動する場合には、制
御部1は、そのモジュールのプロセスID「bb」と、
そのモジュールのデバッグを行うデバッグ実行処理部2
の名称「D2」とを対応づけて配列部6に追加して格納
する。一方、デバッグ実行処理部2は、モジュールbb
を1行ずつ実行してデバッグを行い、デバッグ結果を制
御部1に転送する。
When starting a new module, the control unit 1 sets the process ID “bb” of the module,
Debug execution processing unit 2 that debugs the module
Is added to the array unit 6 and stored in association with the name “D2”. On the other hand, the debug execution processing unit 2
Is executed line by line to perform debugging, and the debugging result is transferred to the control unit 1.

【0021】また、モジュールbbが子プロセスを起動
した場合には、制御部1は、子プロセスに対応するモジ
ュールのプロセスID「cc」と、そのモジュールのデ
バッグを行うデバッグ実行処理部2の名称「D3」とを
対応づけて配列部6に追加して格納する。
When the module bb starts a child process, the control unit 1 sets the process ID "cc" of the module corresponding to the child process and the name "debug execution processing unit 2" for debugging the module. D3 ”is added to the array section 6 and stored.

【0022】このように、制御部1は、新たなプロセス
や子プロセスが起動されるたびに、そのプロセスのプロ
セスIDと、そのプロセスに対応するモジュールのデバ
ッグを行うデバッグ実行処理部2の名称とを、配列部6
に順次追加して格納する。
As described above, every time a new process or child process is started, the control unit 1 sets the process ID of the process and the name of the debug execution processing unit 2 for debugging a module corresponding to the process. To the array section 6
To be stored sequentially.

【0023】また、制御部1は、各デバッグ実行処理部
2から転送されたデバッグ結果を表示装置5に表示す
る。図3に示すように、表示装置5の表示領域W1に
は、メインモジュールのソースコードが、表示領域W2
には、メインモジュールから起動された子プロセスに対
応するモジュールのソースコードが表示される。また、
表示領域W3には、画面に表示する情報の選択ボタン
や、デバッグの開始・停止指示ボタンなどが表示され
る。また、表示領域W4には、メインモジュールの現在
の実行位置における変数値などが表示され、表示領域W
5には、子プロセスに対応するモジュールの現在の実行
位置における変数値などが表示される。
The control unit 1 displays the debug results transferred from each debug execution processing unit 2 on the display device 5. As shown in FIG. 3, the display area W1 of the display device 5 stores the source code of the main module in the display area W2.
Displays the source code of the module corresponding to the child process started from the main module. Also,
In the display area W3, a button for selecting information to be displayed on the screen, a button for instructing start / stop of debugging, and the like are displayed. In the display area W4, a variable value or the like at the current execution position of the main module is displayed.
In 5, a variable value at the current execution position of the module corresponding to the child process is displayed.

【0024】図3では、2つのモジュールのデバッグ結
果を表示しているが、3つ以上のモジュールのデバッグ
結果を同時に表示してもよい。ただし、一画面に表示可
能な情報には限りがあるため、操作者の指示により、表
示する情報を任意に選択できるようにするのが望まし
い。例えば、3つ以上のモジュールが同時に起動してい
る場合には、デバッグ結果を表示させたいモジュールに
対応するデバッグ実行処理部2を配列部6の中から検索
して表示装置5に表示する。
In FIG. 3, the debug results of two modules are displayed, but the debug results of three or more modules may be displayed simultaneously. However, since the information that can be displayed on one screen is limited, it is desirable that the information to be displayed can be arbitrarily selected according to an instruction of the operator. For example, when three or more modules are activated at the same time, the debug execution processing unit 2 corresponding to the module whose debug result is to be displayed is searched from the array unit 6 and displayed on the display device 5.

【0025】図2に戻って、ステップS5の処理が終了
した場合、または、現在デバッグ中のモジュールが子プ
ロセスの起動を指示しなかった場合には、制御部1は、
現在デバッグ中のモジュールが他のモジュールに対して
データの送受信を指示したか否かを判定する(ステップ
S6)。データの送受信が指示された場合には、制御部
1は、データの送受信を行うモジュールに対して、送受
信データに関する情報をデータ格納部3に転送するよう
指示する(ステップS7)。
Returning to FIG. 2, when the processing of step S5 is completed, or when the module currently being debugged does not instruct the activation of the child process, the control unit 1
It is determined whether the module currently being debugged has instructed another module to transmit and receive data (step S6). When data transmission / reception is instructed, the control unit 1 instructs a module that transmits / receives data to transfer information on transmission / reception data to the data storage unit 3 (step S7).

【0026】図4はデータ格納部3に格納される情報の
概要を説明する図である。データ格納部3には、送受信
の区別を示す情報I1と、送受信データI2と、送信デ
ータと受信データが一致するか否かを判別するのに用い
られる送受信キーI3と、データの送受信を行うモジュ
ールが属するプログラム名I4と、データの送受信を行
うモジュールのソースコード名I5と、現在実行中のソ
ースコード行I6とが格納される。データを送信するモ
ジュールとデータを受信するモジュールは、双方とも、
図4のような情報をデータ格納部3に格納する。
FIG. 4 is a diagram for explaining the outline of information stored in the data storage unit 3. The data storage unit 3 includes information I1 indicating transmission / reception distinction, transmission / reception data I2, a transmission / reception key I3 used to determine whether transmission data matches reception data, and a module for transmitting / receiving data. Is stored, a source code name I5 of a module that transmits and receives data, and a currently executed source code line I6. Both the module that sends data and the module that receives data,
Information as shown in FIG. 4 is stored in the data storage unit 3.

【0027】図2のステップS7の処理が終了すると、
次に、制御部1は、データ採取処理部4に対して、画面
表示用のデータの生成を指示する。この指示を受けて、
データ採取処理部4は、データ格納部3から送受信キー
が同じ情報を抽出して、画面表示用のデータを生成する
(ステップS8)。
When the processing in step S7 in FIG. 2 is completed,
Next, the control unit 1 instructs the data collection processing unit 4 to generate data for screen display. In response to this instruction,
The data collection processing unit 4 extracts information having the same transmission / reception key from the data storage unit 3 and generates data for screen display (step S8).

【0028】図5はデータ採取処理部4が生成する画面
表示用のデータの一例を示す図である。図示のように、
データ採取処理部4は、送信側モジュールが属するプロ
グラム名と、送信側モジュールのソースコード名と、送
信側モジュールが実行中のソースコード行と、受信側モ
ジュールが属するプログラム名と、受信側モジュールの
ソースコード名と、受信側モジュールが実行中のソース
コード行とを、1行にまとめたデータを生成する。図5
のデータを生成した後は、データ格納部3に同じデータ
を格納しておく必要がないため、これらデータはデータ
格納部3から削除される。
FIG. 5 is a diagram showing an example of screen display data generated by the data collection processing unit 4. As shown,
The data collection processing unit 4 includes: a program name to which the transmitting module belongs; a source code name of the transmitting module; a source code line being executed by the transmitting module; a program name to which the receiving module belongs; Data is generated by combining the source code name and the source code line being executed by the receiving module into one line. FIG.
After the above data is generated, there is no need to store the same data in the data storage unit 3, so these data are deleted from the data storage unit 3.

【0029】データ採取処理部4で画面表示用のデータ
が生成されると、次に、制御部1は、そのデータを表示
装置5に表示する(ステップS9)。ステップS9の処
理が終了した場合、あるいは、ステップS6で、データ
の送受信が指示されなかった場合には、制御部1はステ
ップS3以降の処理を繰り返す。
When data for screen display is generated by the data collection processing unit 4, the control unit 1 displays the data on the display device 5 (step S9). When the process of step S9 is completed, or when data transmission / reception is not instructed in step S6, the control unit 1 repeats the process of step S3 and subsequent steps.

【0030】図6は異なるモジュール間でデータの送受
信を行う場合のデバッガ装置のブロック図である。図6
では、モジュールaaからモジュールbbに対してデー
タを送信する例を示している。制御部1は、モジュール
aaのデバッグを行うデバッグ実行処理部2からデータ
の送信が通知されると、各デバッグ実行処理部2に対し
て、送信データや受信データなどをデータ格納部3に転
送するように指示する。この通知を受けて、各デバッグ
実行処理部2は、送受信データや現在実行中のソースコ
ード行などの情報をデータ格納部3に転送する。
FIG. 6 is a block diagram of a debugger device for transmitting and receiving data between different modules. FIG.
Shows an example in which data is transmitted from the module aa to the module bb. When the data transmission is notified from the debug execution processing unit 2 that debugs the module aa, the control unit 1 transfers the transmission data, the reception data, and the like to the data storage unit 3 to each debug execution processing unit 2. To instruct. In response to this notification, each debug execution processing unit 2 transfers information such as transmission / reception data and a currently executed source code line to the data storage unit 3.

【0031】また、データ採取処理部4は、制御部1か
らの指示に応じて、データ格納部3から、モジュール間
のデータ送受信に関する情報を抽出して、図5に示すよ
うな表示用のデータを生成して、制御部1に転送する。
制御部1は転送されたデータを表示装置5に表示する。
The data collection processing unit 4 extracts information on data transmission / reception between modules from the data storage unit 3 in accordance with an instruction from the control unit 1 and displays data for display as shown in FIG. Is generated and transferred to the control unit 1.
The control unit 1 displays the transferred data on the display device 5.

【0032】このように、本実施形態は、デバッグ実行
処理部2を複数備えるため、一つのモジュールが子プロ
セスを起動する場合でも、その子プロセスのデバッグを
即座に行うことができ、複数のモジュールに対するデバ
ッグ結果を取りこぼしなく、同一画面上に表示すること
ができる。また、各デバッグ実行処理部2は、入力条件
を変えることで、どのようなモジュールのデバッグも行
うことができるため、複数のデバッガ装置を設ける必要
がなくなる。
As described above, according to the present embodiment, since a plurality of debug execution units 2 are provided, even when one module activates a child process, the child process can be immediately debugged, and a plurality of modules can be debugged. Debug results can be displayed on the same screen without missing. Further, since each debug execution processing unit 2 can debug any module by changing the input conditions, it is not necessary to provide a plurality of debugger devices.

【0033】また、異なるモジュール間でデータの送受
信を行う場合には、送受信したデータや、送信側モジュ
ールや受信側モジュールのソースコード行などを同時に
表示するようにしたため、データ送受信時のデバッグを
詳細かつ簡易に行うことができる。
When data is transmitted and received between different modules, the transmitted and received data and the source code lines of the transmitting module and the receiving module are displayed at the same time. It can be performed easily.

【0034】図1に示したデバッグ装置内の制御部1、
デバッグ実行処理部2、データ格納部3、およびデータ
採取処理部4は、それぞれハードウエアで実現してもよ
く、あるいはソフトウエアで実現してもよい。また、本
発明をソフトウエアで実現した場合には、そのソフトウ
エアをフロッピディスクやCD-ROM等の各種の記録媒体に
記録して、コンピュータで実行させるようにしてもよ
い。
The control unit 1 in the debugging device shown in FIG.
The debug execution processing unit 2, the data storage unit 3, and the data collection processing unit 4 may each be realized by hardware or may be realized by software. When the present invention is implemented by software, the software may be recorded on various recording media such as a floppy disk or a CD-ROM and executed by a computer.

【0035】また、デバッグ結果の表示形式は図1等に
示したものに限定されない。また、デバッグ実行処理部
2の数も2個以上であれば、特に制限はない。さらに、
図1等では、制御部1が表示装置5の表示制御を行う例
を説明したが、データ採取処理部4に表示制御を行わせ
てもよい。
The display format of the debug result is not limited to the format shown in FIG. There is no particular limitation as long as the number of debug execution processing units 2 is two or more. further,
Although an example in which the control unit 1 controls the display of the display device 5 is described in FIG. 1 and the like, the data collection processing unit 4 may perform the display control.

【0036】[0036]

【発明の効果】以上詳細に説明したように、本発明によ
れば、モジュール単位でデバッグを行う複数のデバッグ
実行処理手段を設け、子プロセスが起動されると、その
子プロセスに対応するモジュールに対して即座にデバッ
グ実行処理手段を割り当てるようにしたため、子プロセ
スの起動と同時に、その子プロセスのデバッグを行うこ
とができ、全ソースコードを取りこぼしなく、デバッグ
することができる。
As described above in detail, according to the present invention, a plurality of debug execution processing means for performing debugging in units of modules are provided, and when a child process is started, the module corresponding to the child process is activated. Since the debug execution processing means is immediately assigned to the child process, the child process can be debugged at the same time as the activation of the child process, and the debug can be performed without dropping all the source code.

【0037】また、異なるモジュール間でデータの送受
信を行う場合には、送信側モジュールの送信側情報と、
受信側モジュールの受信側情報とを同一画面上に表示す
るようにしたため、データ送受信時のデバッグを詳細か
つ簡易に行うことができる。
When data is transmitted / received between different modules, the transmission side information of the transmission side module and
Since the receiving side information of the receiving side module is displayed on the same screen, debugging at the time of data transmission / reception can be performed in detail and easily.

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

【図1】本発明に係るデバッガ装置の一実施形態のブロ
ック図。
FIG. 1 is a block diagram of an embodiment of a debugger device according to the present invention.

【図2】図1の制御部の処理動作を示すフローチャー
ト。
FIG. 2 is a flowchart showing a processing operation of a control unit in FIG. 1;

【図3】メインモジュールから子プロセスを起動する場
合のデバッガ装置内でのデータの流れを説明する図。
FIG. 3 is a diagram illustrating the flow of data in a debugger device when a child process is started from a main module.

【図4】データ格納部に格納される情報の概要を説明す
る図。
FIG. 4 is a view for explaining an outline of information stored in a data storage unit.

【図5】データ採取処理部が生成する画面表示用のデー
タの一例を示す図。
FIG. 5 is a diagram showing an example of screen display data generated by a data collection processing unit.

【図6】異なるモジュール間でデータの送受信を行う場
合のデバッガ装置のブロック図。
FIG. 6 is a block diagram of a debugger device for transmitting and receiving data between different modules.

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

1 制御部 2 デバッグ実行処理部 3 データ格納部 4 データ採取処理部 5 表示装置 6 配列部 DESCRIPTION OF SYMBOLS 1 Control part 2 Debug execution processing part 3 Data storage part 4 Data collection processing part 5 Display device 6 Array part

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】複数のモジュールからなるプログラムのデ
バッグを行うことが可能なデバッガ装置であって、 モジュール単位でデバッグを行う複数のデバッグ実行処
理手段と、 一つのモジュールから他のモジュールを起動する場合
に、起動元のモジュールをデバッグする前記デバッグ実
行処理手段とは別のデバッグ実行処理手段を起動先のモ
ジュールのデバッグ用として割り当て、かつ、新たに割
り当てた前記デバッグ実行処理手段に対してデバッグに
必要な情報を設定するデバッグ制御手段と、を備えるこ
とを特徴とするデバッガ装置。
1. A debugger device capable of debugging a program comprising a plurality of modules, wherein a plurality of debug execution processing means for performing debugging on a module basis and a case where one module activates another module In addition, another debug execution processing means different from the debug execution processing means for debugging the activation source module is allocated for debugging of the activation destination module, and the debug execution processing means newly assigned is required for debugging. A debug control device for setting important information.
【請求項2】デバッグ対象であるモジュールの種類と、
そのモジュールのデバッグを行う前記デバッグ実行処理
手段の種類とを対応づけて記憶するデバッグ情報格納手
段を備えることを特徴とする請求項1に記載のデバッガ
装置。
2. The type of module to be debugged,
2. The debugger device according to claim 1, further comprising: debug information storage means for storing a type of the debug execution processing means for debugging the module in association with each other.
【請求項3】複数のモジュールからなるプログラムのデ
バッグを行うことが可能なデバッガ装置であって、 モジュール単位でデバッグを行う複数のデバッグ実行処
理手段と、 前記複数のデバッグ実行処理手段のそれぞれに対してデ
バッグ対象となるモジュールを割り当て、かつ、モジュ
ールを割り当てた前記デバッグ実行処理手段に対してデ
バッグに必要な情報を設定するデバッグ制御手段と、 複数のモジュール間でデータの送受信を行う場合に、送
信側モジュールの名称およびプログラム実行位置を含む
送信側情報と、受信側モジュールの名称およびプログラ
ム実行位置を含む受信側情報とを表示装置に表示させる
表示制御手段と、を備えることを特徴とするデバッガ装
置。
3. A debugger device capable of debugging a program composed of a plurality of modules, comprising: a plurality of debug execution processing means for performing debugging on a module basis; Debug control means for assigning a module to be debugged and setting information necessary for debugging to the debug execution processing means to which the module has been assigned; and transmitting and receiving data when performing data transmission and reception between a plurality of modules. A debugger device comprising: display control means for displaying, on a display device, transmission side information including a name of a side module and a program execution position and reception side information including a name of a reception side module and a program execution position. .
【請求項4】複数のモジュール間でデータの送受信を行
う場合に、送受信の区別、送受信データ、送受信の対応
関係を示す送受信キー、および送受信時のモジュール内
でのプログラム実行位置を記憶する送受信情報記憶手段
を備え、 前記表示制御手段は、前記送受信情報記憶手段に記憶さ
れているデータのうち、前記送受信キーが一致するデー
タに基づいて、前記送信側情報と前記受信側情報とを前
記表示装置の同一画面上に表示させることを特徴とする
請求項3に記載のデバッガ装置。
4. When transmitting / receiving data between a plurality of modules, transmission / reception information for storing transmission / reception distinction, transmission / reception data, a transmission / reception key indicating a correspondence relationship between transmission / reception, and a program execution position in the module at the time of transmission / reception Storage means, wherein the display control means displays the transmission side information and the reception side information on the display device based on data having the same transmission / reception key among data stored in the transmission / reception information storage means. The debugger device according to claim 3, wherein the debugger device is displayed on the same screen.
【請求項5】前記複数のデバッグ実行処理手段は、高級
言語で記述されたソースコードのデバッグを行うことを
特徴とする請求項1〜4のいずれかに記載のデバッガ装
置。
5. The debugger device according to claim 1, wherein said plurality of debug execution processing means debugs a source code described in a high-level language.
【請求項6】複数のモジュールからなるプログラムのデ
バッグを行うことが可能なデバッグ方法であって、 モジュール単位でデバッグを行う複数のデバッグ実行処
理手段が設けられ、 一つのモジュールから他のモジュールを起動する場合に
は、起動元のモジュールをデバッグする前記デバッグ実
行処理手段とは別のデバッグ実行処理手段を起動先のモ
ジュールのデバッグ用として割り当て、かつ、新たに割
り当てた前記デバッグ実行処理手段に対してデバッグに
必要な情報を設定し、 複数のモジュール間でデータの送受信を行う場合には、
送信側モジュールの名称およびプログラム実行位置を含
む送信側情報と、受信側モジュールの名称およびプログ
ラム実行位置を含む受信側情報とを表示装置の同一画面
上に表示させることを特徴とするデバッグ方法。
6. A debugging method capable of debugging a program comprising a plurality of modules, comprising a plurality of debug execution processing means for performing debugging on a module basis, and starting another module from one module. In this case, a debug execution processing means different from the debug execution processing means for debugging the activation source module is assigned for debugging the activation destination module, and the newly assigned debug execution processing means is assigned to the newly assigned debug execution processing means. To set information required for debugging and to send and receive data between multiple modules,
A debugging method characterized by displaying, on the same screen of a display device, transmission side information including a name of a transmission side module and a program execution position and reception side information including a name of a reception side module and a program execution position.
【請求項7】複数のモジュールからなるプログラムのデ
バッグを行うことが可能なデバッガプログラムを記録し
たコンピュータ読み取り可能な記録媒体であって、 モジュール単位でデバッグを行う複数のデバッグ実行処
理手段と、 一つのモジュールから他のモジュールを起動する場合
に、起動元のモジュールをデバッグする前記デバッグ実
行処理手段とは別のデバッグ実行処理手段を起動先のモ
ジュールのデバッグ用として割り当て、かつ、新たに割
り当てた前記デバッグ実行処理手段に対してデバッグに
必要な情報を設定するデバッグ制御手段と、 複数のモジュール間でデータの送受信を行う場合に、送
信側モジュールの名称およびプログラム実行位置を含む
送信側情報と、受信側モジュールの名称およびプログラ
ム実行位置を含む受信側情報とを表示装置の同一画面上
に表示させる表示制御手段と、を実行させるためのデバ
ッガプログラムを記録したコンピュータ読み取り可能な
記録媒体。
7. A computer-readable recording medium on which a debugger program capable of debugging a program comprising a plurality of modules is recorded, wherein a plurality of debug execution processing means for performing debugging on a module basis; When activating another module from a module, another debug execution processing means different from the debug execution processing means for debugging the activation source module is assigned for debugging the startup destination module, and the newly assigned debug Debug control means for setting information necessary for debugging to the execution processing means; transmitting / receiving information including a name of a transmitting module and a program execution position when transmitting / receiving data between a plurality of modules; Reception including module name and program execution location A computer-readable recording medium debugger program for executing a display control means for displaying on the same screen of the display device and the information.
JP9330438A 1997-12-01 1997-12-01 Debugger device, debugging method and storage medium recording debugging program Pending JPH11161514A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9330438A JPH11161514A (en) 1997-12-01 1997-12-01 Debugger device, debugging method and storage medium recording debugging program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9330438A JPH11161514A (en) 1997-12-01 1997-12-01 Debugger device, debugging method and storage medium recording debugging program

Publications (1)

Publication Number Publication Date
JPH11161514A true JPH11161514A (en) 1999-06-18

Family

ID=18232625

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9330438A Pending JPH11161514A (en) 1997-12-01 1997-12-01 Debugger device, debugging method and storage medium recording debugging program

Country Status (1)

Country Link
JP (1) JPH11161514A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7003761B2 (en) 2000-05-18 2006-02-21 Hitachi, Ltd. Multi-process display method in debugger system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7003761B2 (en) 2000-05-18 2006-02-21 Hitachi, Ltd. Multi-process display method in debugger system

Similar Documents

Publication Publication Date Title
JPH1139190A (en) Debugging system of parallel processing program and its debugging method
JPH11161514A (en) Debugger device, debugging method and storage medium recording debugging program
JPH07219807A (en) Programmable controller system
JPH05128079A (en) Tracing system for multiprocessor system
JPH08272644A (en) Debugging method for program to be executed by distributed processor
JP4562439B2 (en) Program verification system and computer program for controlling program verification system
JPH0588933A (en) Parallel processing system with debugging function
JP3085730B2 (en) Parallel simulation method for complex CPU system
JPH09259004A (en) Debugging method
JP2754583B2 (en) Simulated fault occurrence system
JPS63177231A (en) Debug system for parallel program
JPS62267841A (en) Program debug device
KR920003279B1 (en) Method for loading os & nos in data processing device
JPH0847014A (en) Development aid/maintenance system for software for exchange
JP3014059B2 (en) Programmable controller
JP2000122896A (en) Method for supporting debug
JP2004280483A (en) Processing method, device and system
JPH10269104A (en) Parallel system testing method
JP2000029738A (en) Device and method for monitoring debugging
JPS59153245A (en) Debugging device
JP3062124B2 (en) Microprocessor development support equipment
JP2009075724A (en) Management apparatus, management system, management program, and management method
JP2000339199A (en) Tm save analyzing method
JPH08194506A (en) Controller
JPS58121459A (en) Service processor of electronic computer