JPH05298149A - Program debugging processing system - Google Patents

Program debugging processing system

Info

Publication number
JPH05298149A
JPH05298149A JP4104691A JP10469192A JPH05298149A JP H05298149 A JPH05298149 A JP H05298149A JP 4104691 A JP4104691 A JP 4104691A JP 10469192 A JP10469192 A JP 10469192A JP H05298149 A JPH05298149 A JP H05298149A
Authority
JP
Japan
Prior art keywords
program
execution
condition
debug
monitoring
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
JP4104691A
Other languages
Japanese (ja)
Inventor
Masayo Suga
雅代 菅
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 JP4104691A priority Critical patent/JPH05298149A/en
Publication of JPH05298149A publication Critical patent/JPH05298149A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To accelerate the speed of processing in which a certain condition is applied to R debugging object program and program execution is interrupted when the condition is satisfied, and to describe complicated patterns as the condition. CONSTITUTION:For the debugging processing in which the program execution is interrupted when a condition 7 for testing which is described in the same programming language as a source program 2 of a debugging object program 1 to be debugged and is for interrupting the program execution is satisfied, prior to the program execution, the condition 7 for testing is translated into the same language as an object program 4 of the debugging object, a program 8 for monitoring is prepared. it is embedded for respective execution units 5-1, 5-2,...5-m of the object program 4, and 8 program execution control part b executes the object program 4 in which the program 8 for monitoring is embedded.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、プログラムデバッグ処
理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program debug processing system.

【0002】[0002]

【従来の技術】図2は、従来のプログラムデバッグ処理
方式の一例を示すブロック図である。
2. Description of the Related Art FIG. 2 is a block diagram showing an example of a conventional program debug processing system.

【0003】従来のプログラムデバッグ処理方式は、デ
バッグしようとするデバッグ対象プログラム1aの実行
を中断させるためには、図2で示すように、デバッグし
ようとするデバッグ対象プログラム1aのソースプログ
ラム2を、コンパイル部3aによって翻訳したオブジェ
クトプログラム4aの一つの実行単位5a−1,5a−
2,………5a−nを実行する度に、プログラム実行制
御部6が条件比較部10に制御を移し、条件比較部10
で、ソースプログラム2と同じプログラミング言語によ
り記述されたテスト用条件7に使用されている変数の値
格納領域を、テスト用条件テーブル9から取得し、その
内容と条件に指定された値とを逐次比較して、条件を満
たしていれば、プログラム実行制御部6にその旨を伝
え、プログラム実行制御部6は、プログラム実行を中断
するという処理を行っている。
In the conventional program debug processing method, in order to interrupt the execution of the debug target program 1a to be debugged, as shown in FIG. 2, the source program 2 of the debug target program 1a to be debugged is compiled. One execution unit 5a-1, 5a- of the object program 4a translated by the section 3a
2, ... 5a-n each time the program execution control unit 6 transfers control to the condition comparison unit 10
Then, the value storage area of the variable used in the test condition 7 described in the same programming language as the source program 2 is acquired from the test condition table 9, and the contents and the value specified in the condition are sequentially acquired. In comparison, if the conditions are satisfied, the fact is notified to the program execution control unit 6, and the program execution control unit 6 performs a process of interrupting the program execution.

【0004】[0004]

【発明が解決しようとする課題】上述した従来のプログ
ラムデバッグ処理方式は、オブジェクトプログラム4a
の一実行単位5a−1,5a−2,………5a−nを実
行する度に、プログラム実行制御部6が条件比較部10
に制御を移し、条件比較部10で、テスト用条件テーブ
ル9をサーチしなければならないので、プログラムの実
行速度が遅くなるという欠点を有している。
The conventional program debug processing method described above is based on the object program 4a.
Each time one execution unit 5a-1, 5a-2, ... 5a-n is executed, the program execution control unit 6 causes the condition comparison unit 10
Since the control has to be moved to and the condition comparison unit 10 has to search the test condition table 9, there is a drawback that the program execution speed becomes slow.

【0005】また、従来の条件比較部10は、テスト用
条件テーブル9から得た変数の値格納領域を逐次に参照
して、条件として指定された値との比較を行わなければ
ならないので、テスト用条件7に、演算式などの複雑な
条件式を記述することができないという欠点を有してい
る。
Further, since the conventional condition comparison unit 10 must sequentially refer to the variable value storage area obtained from the test condition table 9 and compare it with the value specified as the condition, the test The usage condition 7 has a drawback that complicated conditional expressions such as arithmetic expressions cannot be described.

【0006】[0006]

【課題を解決するための手段】本発明のプログラムデバ
ッグ処理方式は、デバッグしようとするデバッグ対象プ
ログラムのソースプログラムと同一のプログラミング言
語で記述され、プログラム実行を中断させるためのテス
ト用条件を満たされた場合に、プログラム実行を中断す
るプログラムデバッグ処理方式において、前記テスト用
条件を、コンパイル部により、前記デバッグ対象プログ
ラムと同一の言語に翻訳した監視用プログラムを作成
し、前記監視用プログラムを前記デバッグ対象プログラ
ムの実行単位ごとにうめこみ、プログラム実行制御部
が、前記監視用プログラムがうめこまれたオブジェクト
プログラムを実行することにより構成されている。
The program debug processing method of the present invention is written in the same programming language as the source program of the debug target program to be debugged, and satisfies the test condition for interrupting the program execution. In the program debug processing method of interrupting the program execution, a compiling unit translates the test condition into the same language as the debug target program to create a monitoring program, and the monitoring program is debugged. The embedding / program execution control unit is configured to execute the object program in which the monitoring program is embedded for each execution unit of the target program.

【0007】[0007]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。図1は、本発明のプログラムデバッグ処理
方式の一実施例を示すブロック図である。図1に示すよ
うに、1は、デバッグ対象プログラムを示し、ソースプ
ログラム2とオブジェクトプログラム4とから成る。
Embodiments of the present invention will now be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a program debug processing system of the present invention. As shown in FIG. 1, reference numeral 1 denotes a debug target program, which includes a source program 2 and an object program 4.

【0008】ソースプログラム2は、プログラミング言
語を用いて記述されたプログラムである。ソースプログ
ラム2をコンパイル部3で翻訳したものがオブジェクト
プログラム4である。
The source program 2 is a program written in a programming language. The object program 4 is a translation of the source program 2 by the compiling unit 3.

【0009】5−1,5−2,………5−mは、オブジ
ェクトプログラム4における実行単位を示している。こ
の実行単位5−1,5−2,………5−mは、ソースプ
ログラム2で言えば、一ステップに相当する。オブジェ
クトプログラム4は、実行単位5−1,5−2,………
5−mの集合で構成されている。
Reference numerals 5-1, 5-2, ... 5-m represent execution units in the object program 4. The execution units 5-1, 5-2, ..., 5-m correspond to one step in the source program 2. The object program 4 has execution units 5-1, 5-2, ...
It is composed of 5-m sets.

【0010】6は、プログラム実行を制御するプログラ
ム実行制御部である。プログラム実行制御部6は、オブ
ジェクトプログラム4の一つの実行単位5−1,5−
2,………5−mずつを、順次に実行していく。
Reference numeral 6 is a program execution control unit for controlling program execution. The program execution control unit 6 includes one execution unit 5-1 and 5-of the object program 4.
2, ......... 5-m is executed sequentially.

【0011】7は、プログラム実行を中断させるための
テスト用条件である。テスト用条件7は、デバッグしよ
うとするソースプログラム2と同一のプログラミング言
語で記述したものである。プログラム実行中に、ある変
数の値が指定値になった時という条件やある変数の値が
もう一つのある変数の値と同じになった時などという条
件を、ソースプログラム2の中で使用されている同一の
変数を用いて、ユーザーが指定する。
Reference numeral 7 is a test condition for interrupting program execution. The test condition 7 is written in the same programming language as the source program 2 to be debugged. During execution of the program, conditions such as when the value of one variable becomes the specified value and when the value of one variable becomes the same as the value of another variable are used in the source program 2. User specified using the same variables that are present.

【0012】テスト用条件7として複数個を同時に指定
すこともでき、その場合には、プログラム実行中に、条
件のうちの一つでも満たされれば、プログラム実行が中
断される。
A plurality of test conditions 7 can be designated at the same time. In this case, if any one of the conditions is satisfied during the program execution, the program execution is interrupted.

【0013】デバッグしようとするデバッグ対象プログ
ラム1の実行が指定されると、まず、テスト用条件7
は、コンパイル部3によって、デバッグしようとするオ
ブジェクトプログラム4と同じ言語に翻訳され、監視用
プログラム8が作成される。テスト用条件7が、複数個
で指定されている場合には、すべての条件がそれぞれ翻
訳され、まとめて一つの監視用プログラム8が作成され
る。
When execution of the debug target program 1 to be debugged is designated, first, the test condition 7
Is translated into the same language as the object program 4 to be debugged by the compiling unit 3 to create the monitoring program 8. When a plurality of test conditions 7 are designated, all the conditions are translated and a single monitoring program 8 is created.

【0014】次に、監視用プログラム8は、デバッグ対
象プログラム1のオブジェクトプログラム4の中の、実
行単位5−1,5−2,………5−mのそれぞれの間に
うめこまれる。
Next, the monitoring program 8 is embedded in each of the execution units 5-1, 5-2, ... 5-m in the object program 4 of the debug target program 1.

【0015】プログラム実行制御部6は、オブジェクト
プログラム4であるか、あるいは監視用プログラム8で
あるかを区別することなく、順次に実行していき、うめ
こまれた監視用プログラム8で、テスト用条件7が一つ
でも満たされると、即時にプログラム中断を行う。
The program execution control unit 6 sequentially executes the program without distinguishing whether it is the object program 4 or the monitoring program 8, and the embedded monitoring program 8 is used for the test conditions. If even 7 is satisfied, the program is immediately suspended.

【0016】[0016]

【発明の効果】以上説明したように、本発明のプログラ
ムデバッグ処理方式は、あるデバッグ対象プログラムを
デバッグする際に、プログラム実行を、中断させるため
のテスト用条件をプログラム実行に先だって、オブジェ
クトプログラムと同一の言語に翻訳して、一つの監視用
プログラムとして作成し、オブジェクトプログラムの実
行単位毎にうめこむことができるので、プログラム実行
制御で、従来のように、テスト用条件の比較という特別
な処理に制御を移すことなく、通常の処理を行っている
かのように、プログラム実行を行いながら、テスト用条
件の真偽のチェックをすることができるという利点を有
している。
As described above, according to the program debug processing method of the present invention, when a program to be debugged is debugged, a test condition for interrupting the program execution is set as an object program before the program execution. It can be translated into the same language, created as one monitoring program, and embedded in each execution unit of the object program, so program execution control allows special processing such as comparison of test conditions as in the past. There is an advantage that the truth of the test condition can be checked while executing the program as if the normal processing is performed without transferring the control.

【0017】また、本発明のプログラムデバッグ処理方
式は、テスト用条件がオブジェクトプログラムと同一の
言語に変換されるので、テスト用条件として、幅広いパ
ターンを記述することができ、さらに、プログラム実行
速度も以前より早くなるので、デバッグ効率を向上する
ことができるという効果を有してる。
Further, in the program debug processing method of the present invention, since the test condition is converted into the same language as the object program, a wide range of patterns can be described as the test condition, and the program execution speed is also increased. Since it is faster than before, it has the effect of improving the debugging efficiency.

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

【図1】本発明のプログラムデバッグ処理方式の一実施
例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a program debug processing system of the present invention.

【図2】従来のプログラムデバッグ処理方式の一例を示
すブロック図である。
FIG. 2 is a block diagram showing an example of a conventional program debug processing system.

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

1,1a デバッグ対象プログラム 2 ソースプログラム 3,3a コンパイル部 4,4a オブジェクトプログラム 5−1,5−2,………5−m,5a−1,5a−2,
………5a−n 実行単位 6 プログラム実行制御部 7 テスト用条件 8 監視用プログラム 9 テスト用条件テーブル 10 条件比較部
1, 1a Debug target program 2 Source program 3, 3a Compile section 4, 4a Object program 5-1, 5-2, ... 5-m, 5a-1, 5a-2,
... 5a-n execution unit 6 program execution control unit 7 test condition 8 monitoring program 9 test condition table 10 condition comparison unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 デバッグしようとするデバッグ対象プロ
グラムのソースプログラムと同一のプログラミング言語
で記述され、プログラム実行を中断させるためのテスト
用条件を満たされた場合に、プログラム実行を中断する
プログラムデバッグ処理方式において、 前記テスト用条件を、コンパイル部により、前記デバッ
グ対象プログラムと同一の言語に翻訳した監視用プログ
ラムを作成し、 前記監視用プログラムを前記デバッグ対象プログラムの
実行単位ごとにうめこみ、 プログラム実行制御部が、前記監視用プログラムがうめ
こまれたオブジェクトプログラムを実行することを特徴
とするプログラムデバッグ処理方式。
1. A program debug processing method, which is described in the same programming language as a source program of a debug target program to be debugged, and interrupts the program execution when a test condition for interrupting the program execution is satisfied. In, a test program is translated into the same language as the debug target program by the compiling unit to create a monitor program, and the monitor program is embedded in each execution unit of the debug target program, and program execution control is performed. A program debug processing method, wherein the unit executes an object program in which the monitoring program is embedded.
JP4104691A 1992-04-23 1992-04-23 Program debugging processing system Withdrawn JPH05298149A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4104691A JPH05298149A (en) 1992-04-23 1992-04-23 Program debugging processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4104691A JPH05298149A (en) 1992-04-23 1992-04-23 Program debugging processing system

Publications (1)

Publication Number Publication Date
JPH05298149A true JPH05298149A (en) 1993-11-12

Family

ID=14387501

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4104691A Withdrawn JPH05298149A (en) 1992-04-23 1992-04-23 Program debugging processing system

Country Status (1)

Country Link
JP (1) JPH05298149A (en)

Similar Documents

Publication Publication Date Title
US20080133897A1 (en) Diagnostic apparatus and method
JPH05298149A (en) Program debugging processing system
US5963725A (en) Simulation system and method for microcomputer program
JPH0581070A (en) Programmable controller and user program execution method in programmable controller
JP3358123B2 (en) Controller input / output simulation method and apparatus
JPH0588878A (en) Lisp instruction executing system
JPH0283749A (en) Internal interruption control system for microprocessor
JP2502128B2 (en) Compiler device
JP3019330B2 (en) Compiling device
JPH09114694A (en) Method and mechanism for parallel processing simulation
JPS63223930A (en) Simulation system for program of exclusive processor
KR950005523B1 (en) Step-run processing method of programmable logic controller
JPS6143347A (en) Simulation method of vector instruction
JPH01155438A (en) Compiler test system
JPH05189269A (en) Object program running simulation device
JPH0353335A (en) Compiler processing system
JPH05127945A (en) Program execution situation analysis system
JPS63259736A (en) Debugging segment dividing system
JPH01154204A (en) Plant monitor method
JPS63163543A (en) Information processor
JPS63178343A (en) System for setting interrupting point
JPH01158532A (en) Program executing system
JPS62200439A (en) Instruction execution frequency analyzing system
JPH01288931A (en) Pl/i program debugging system
JPS63300330A (en) Debugging method for firmware

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: 19990706