JPH01200440A - Program debugging method - Google Patents

Program debugging method

Info

Publication number
JPH01200440A
JPH01200440A JP63025962A JP2596288A JPH01200440A JP H01200440 A JPH01200440 A JP H01200440A JP 63025962 A JP63025962 A JP 63025962A JP 2596288 A JP2596288 A JP 2596288A JP H01200440 A JPH01200440 A JP H01200440A
Authority
JP
Japan
Prior art keywords
program
name
started
supervisor
tcb
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
JP63025962A
Other languages
Japanese (ja)
Inventor
Satoshi Takano
聡 高野
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP63025962A priority Critical patent/JPH01200440A/en
Publication of JPH01200440A publication Critical patent/JPH01200440A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To decide a specific program that is started first by printing out the program that is started when the execution of programs is started. CONSTITUTION:When a start request is received from a user program 5, a supervisor 1 takes the program name out of a TCB 3 (data controlling the control information) that delivered a start request and stores the program name into a TCB 4 of a user program 2 to be started. When the program 2 is carried out, the supervisor 1 takes the program name that delivered a start request out of the TCB 4 of the program 2 and stores it in the TCB 3 when an MSGANS instruction is received. Then the name of the program that delivered the start request stored in the TCB 3 is printed out by a printer when the supervisor 1 starts an MTASK program.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、プログラムの単体試験、組合せ試験時のデ
バッグ効率向上のためのプログラムデバッグ方法に関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a program debugging method for improving debugging efficiency during unit testing and combination testing of programs.

〔従来の技術〕[Conventional technology]

第2図は従来のMSGAN3命令によるプログラムデバ
ッグ方法であシ、図において(1)はスーパバイザ、(
2ンはユーザプログラム、C3)は印字出力するのに必
要なデータを格納する主記憶部のエリア、(4)は印字
出力するメツセージが格納されている補助記憶装置、(
5)は主記憶部エリア(3)及び補助記憶装置(4)に
格納されたデータを編集し印字装置に出力するプログラ
ム、(6)は印字装置である。
Figure 2 shows the conventional program debugging method using MSGAN3 instructions. In the figure, (1) is the supervisor, (
2) is the user program, C3) is the area of the main memory that stores the data necessary for printing out, (4) is the auxiliary storage that stores the message to be printed out, (
5) is a program that edits data stored in the main storage area (3) and auxiliary storage (4) and outputs it to a printing device; (6) is a printing device.

次に動作について説明する。ユーザプログラム(2)が
実行開始時にメツセージ番号を引数としてMSGANS
命令を出すと、タスク制御、割込制御1マクロ命令処理
を行うスーパバイザ(1)がその引数を受は取り主記憶
部エリア(3)に格納する。この時スーパバイザ(1〕
は、現在時刻と現在実行状態であるユーザプログラム(
2)の制御情報を管理するデータ(以下TOBと省略)
より、ユーザプログラム(2)のプログラム名称を取シ
出し主記憶部エリア(3)に格納する。そしてプログラ
ム+51に起動をかける。
Next, the operation will be explained. When the user program (2) starts execution, it sends the message number to MSGANS as an argument.
When an instruction is issued, the supervisor (1), which performs task control and interrupt control 1 macro instruction processing, stores the argument in the receiver storage area (3). At this time, the supervisor (1)
is the user program (
2) Data that manages control information (hereinafter abbreviated as TOB)
Then, the program name of the user program (2) is extracted and stored in the main storage area (3). Then start program +51.

プログラム(5)は、主記憶部エリア(3)に格納され
たメツセージ番号より印字袋M (6) K出力するメ
ツセージを補助記憶装置(4)より取シ出し、ユーザプ
ログラム(1)の名称と実行開始時刻を同時に計算機に
接続された印字装置(6)に印字出力する。
The program (5) retrieves the message to be outputted from the auxiliary storage device (4) based on the message number stored in the main storage area (3), and prints it as the name of the user program (1). At the same time, the execution start time is printed out to a printing device (6) connected to the computer.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来のデバッグ方法は、以上のように構成されているの
で、ユーザプログラムの実行開始した時刻とそのプログ
ラム名を知ることができたが、このユーザプログラムが
どのプログラムより起動されたかを知ることができない
という課題があった。
Conventional debugging methods are configured as described above, so it is possible to know the time when a user program started executing and the program name, but it is not possible to know which program started this user program. There was a problem.

この発明は、上記のような課題を解消するためになされ
たもので、ユーザプログラムの実行開始時刻とそのプロ
グラム名を知ることができるとともにどのプログラムか
ら起動かけられたかを知ることができるデバッグ方法を
得ることを目的とする。
This invention was made to solve the above-mentioned problems, and provides a debugging method that allows you to know the execution start time of a user program and its name, as well as which program started it. The purpose is to obtain.

〔課題を解決するための手段〕[Means to solve the problem]

この発明に係るデバッグ方法は、ユーザプログラムより
起動要求を受けたスーパバイザが、ユーザプログラムの
TOBデータよりブログラム名称を取り出し起動対象の
ユーザプログラムのTOBデータに格納するようにした
ものである。
In the debugging method according to the present invention, a supervisor receiving a start request from a user program extracts a program name from TOB data of the user program and stores it in the TOB data of the user program to be started.

〔作用〕[Effect]

この発明におけるデバッグ方法は、MSGANS命令を
受けたスーパバイザがTOBデータに格納されている起
動要求を出したプログラム名を取シ出し、印字装置に印
字することにより単体デバッグ、組合せ試験の効率を向
上する。
In the debugging method of this invention, the supervisor who receives the MSGANS command retrieves the name of the program that issued the startup request stored in the TOB data and prints it on a printing device, thereby improving the efficiency of single unit debugging and combination testing. .

〔発明の実施例〕[Embodiments of the invention]

以下、この発明の一実施例を図について説明する。第1
図において(1)はスーパバイザ、(5)は起動要求を
出すユーザプログラム、(2)はユーザプログラム(5
)の起動対象となるユーザプログラム、C3)は現在実
行状態であるユーザプログラム(5)のTOBデータ、
(4)は起動対象となるユーザプログラム(2)のTO
Bデータである〇 ユーザプログラム(5)より FORK命令により起動
要求が出されると、スーパバイザ(1)に動作が移るの
で、スーパバイザによ1)TaBデータ(3)に格納さ
レテいるユーザプログラム(5)の名称を取シ出しTO
Bデータ(4)に格納する。
An embodiment of the present invention will be described below with reference to the drawings. 1st
In the figure, (1) is the supervisor, (5) is the user program that issues the startup request, and (2) is the user program (5).
) is the user program to be started, C3) is the TOB data of the user program (5) currently in execution state,
(4) is the TO of the user program (2) to be started
When a startup request is issued by the FORK command from the user program (5) which is B data, the operation is transferred to the supervisor (1). ) to extract the name of
Store in B data (4).

ユーザプログラム(5)より起動要求が出されると1ス
ーパバイザ(1)により起動要求を出したTOBデータ
(3)よりそのプログラム名称を取り出し起動対象テす
るユーザプログラム(2)のTOBデータ(4)に格納
する。
When a startup request is issued by a user program (5), the supervisor (1) extracts the program name from the TOB data (3) that issued the startup request and writes it into the TOB data (4) of the user program (2) to be started. Store.

次に起動対象であるユーザプログラム(2)が実行開始
されると、M8GANS命令時にスーパバイザ(1)が
このユーザプログラム(2)のTOBデータ(4)より
、起動要求を出したプログラム名を取り出し、上記・憶
部エリア(3)に格納する。そしてスーパバイザ(1)
よjj) MTASKプログラムを起動することにより
、主記憶エリア(3)に格納された起動要求を出したプ
ログラム名を印字装置(6)へ印字出力する。
Next, when the user program (2) to be activated starts executing, the supervisor (1) retrieves the name of the program that issued the activation request from the TOB data (4) of this user program (2) at the time of the M8GANS command. Store in the storage area (3) above. and supervisor (1)
By activating the MTASK program, the name of the program that issued the activation request and stored in the main storage area (3) is printed out to the printing device (6).

また上記実施例では、起動プラグラム名を印字出力を行
うことにしたが、起動時間の印字出力も行えば、上記実
施例と同様の効果を奏する。
Further, in the above embodiment, the startup program name is printed out, but if the startup time is also printed out, the same effect as in the above embodiment can be achieved.

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

以上のように、この発明によれば、プログラムの実行開
始時に起動をかけたプログラムを印字出力するように構
成したので、起動プログラム名が容易に知ることができ
るため、プログラムのデバッグの効率が向上する効果か
ある。
As described above, according to the present invention, since the program that is activated is printed out when the program starts executing, the name of the activated program can be easily known, which improves the efficiency of program debugging. There is an effect.

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

第1図はこの発明の一実施例によるタスク関連図、第2
図は従来の418GANS命令によるデバッグ方法のタ
スク関連図である。 第1図
FIG. 1 is a task-related diagram according to an embodiment of the present invention, and FIG.
The figure is a task-related diagram of a conventional debugging method using 418GANS instructions. Figure 1

Claims (1)

【特許請求の範囲】[Claims] プログラムの実行開始時に、プログラムがどのプログラ
ムより起動かけられたかを検出し、そのデータを計算機
に接続した印字装置に印字することを特徴とするプログ
ラム−デバッグ方法。
A program debugging method characterized by detecting which program started the program at the start of execution of the program, and printing the data on a printing device connected to a computer.
JP63025962A 1988-02-04 1988-02-04 Program debugging method Pending JPH01200440A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63025962A JPH01200440A (en) 1988-02-04 1988-02-04 Program debugging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63025962A JPH01200440A (en) 1988-02-04 1988-02-04 Program debugging method

Publications (1)

Publication Number Publication Date
JPH01200440A true JPH01200440A (en) 1989-08-11

Family

ID=12180366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63025962A Pending JPH01200440A (en) 1988-02-04 1988-02-04 Program debugging method

Country Status (1)

Country Link
JP (1) JPH01200440A (en)

Similar Documents

Publication Publication Date Title
JP2692609B2 (en) Multitask program debugging method and apparatus
EP0349004A3 (en) Data processor capable of treating interrupt at a high speed
JPH01200440A (en) Program debugging method
JPS6121532A (en) Scheduling method
JP2998299B2 (en) Processor control unit
JPH02137054A (en) Information processor
JPS6154542A (en) Task control system
JPH0589049A (en) Command executing device
JPS62168242A (en) Debug system for subprocessor
JPH03282742A (en) Computer system
JPH0740231B2 (en) Asynchronous exception catching method
JPS63276139A (en) Process debugging method for multi-process system
JPH0232651B2 (en)
JPS63228341A (en) Program syntax checking system
JPH0229833A (en) Maintenance diagnostic system
JPS61255440A (en) Program interruption control system
JPH01124037A (en) Memory dumping system
JPH0816431A (en) Debugging process system for user program
JPH0764802A (en) Real-time system simulation device
JPH11119801A (en) Process control equipment
JPH01185729A (en) Overlay structure program execution system
JPH09325892A (en) Job parallel execution control method
JPH0283633A (en) Controller for utility program
JPH04353930A (en) Started parameter fetch control system
JPH02253336A (en) Program starting system