JPH0512062A - Step break processing system - Google Patents

Step break processing system

Info

Publication number
JPH0512062A
JPH0512062A JP3161307A JP16130791A JPH0512062A JP H0512062 A JPH0512062 A JP H0512062A JP 3161307 A JP3161307 A JP 3161307A JP 16130791 A JP16130791 A JP 16130791A JP H0512062 A JPH0512062 A JP H0512062A
Authority
JP
Japan
Prior art keywords
instruction
execution
break
break function
unit
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
JP3161307A
Other languages
Japanese (ja)
Inventor
Yoshinori Tada
義徳 多田
Atsushi Morohashi
敦志 諸▲橋▼
Masanori Suzuki
正紀 鈴木
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.)
Fujitsu Ltd
Fujitsu Communication Systems Ltd
Original Assignee
Fujitsu Ltd
Fujitsu Communication Systems 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 Fujitsu Ltd, Fujitsu Communication Systems Ltd filed Critical Fujitsu Ltd
Priority to JP3161307A priority Critical patent/JPH0512062A/en
Publication of JPH0512062A publication Critical patent/JPH0512062A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To easily designate the number of steps even to a main routine calling a sub-routine on the step break processing system in an information processing system equipped with a step break function and an instruction break function. CONSTITUTION:The system is provided with an instruction analysis means 103 analyzing an execution instruction during an information processing system 100 uses a step break function 101, a counting stop means 104 stopping the counting of the execution instruction in the step break function when the execution of the sub-routine call instruction is detected, a starting means 105 designating the next instruction of the sub-routine call instruction to the instruction break function 102 to start the usage, and a counting restarting means 106 permitting the step break function to restart the counting of the number of execution instructions.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ステップブレーク機能
および命令ブレーク機能を具備する情報処理システムに
おけるステップブレーク処理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a step break processing method in an information processing system having a step break function and an instruction break function.

【0002】情報処理システムには、プログラムをデバ
ッグする為に有効な機能として、ステップブレーク機能
および命令ブレーク機能を具備している場合がある。ス
テップブレーク機能は、情報処理システムがデバッグ対
象プログラムを一命令実行する度に処理を停止させる、
または予め指定された命令数だけ実行した後に処理を停
止させるものであり、また命令ブレーク機能は、情報処
理システムが予め指定された命令を実行した後に処理を
停止させるものである。
An information processing system may be provided with a step break function and an instruction break function as effective functions for debugging a program. The step break function stops the processing each time the information processing system executes one instruction of the debug target program,
Alternatively, the processing is stopped after executing a predetermined number of instructions, and the instruction break function is to stop the processing after the information processing system executes a predetermined instruction.

【0003】なお情報処理システムが或るプログラムを
実行中に、各プログラムに共用されるプログラム(以後
サブルーチンと称する)を実行した後、再び元のプログ
ラム(以後メインルーチンと称する)を継続して実行す
る場合が少なくない。
While the information processing system is executing a certain program, after executing a program (hereinafter referred to as a subroutine) shared by the programs, the original program (hereinafter referred to as a main routine) is continuously executed again. There are not a few cases.

【0004】[0004]

【従来の技術】図4は従来ある情報処理システムの一例
を示す図であり、図5はデバッグ対象プログラムの一例
を示す図であり、図6は図4におけるステップブレーク
過程の一例を示す図である。
2. Description of the Related Art FIG. 4 is a diagram showing an example of a conventional information processing system, FIG. 5 is a diagram showing an example of a debug target program, and FIG. 6 is a diagram showing an example of a step break process in FIG. is there.

【0005】図4に示される情報処理システムは、プロ
グラムを実行する処理装置1と、ステップブレーク機能
を実現するステップブレーク部2と、命令ブレーク機能
を実現する命令ブレーク部3とを具備している。
The information processing system shown in FIG. 4 comprises a processor 1 for executing a program, a step break unit 2 for realizing a step break function, and an instruction break unit 3 for realizing an instruction break function. .

【0006】デバッグ実行者が、ステップブレーク機能
を用いてプログラムをデバッグする場合に、ステップブ
レーク部2に指定ステップ数Nと、起動信号ST2 とを
入力すると、ステップブレーク部2は指定ステップ数レ
ジスタ21に入力された指定ステップ数Nを蓄積した
後、処理装置1に対して実行開始信号st2 を伝達す
る。
When the debug executor inputs a designated step number N and a start signal ST 2 to the step break section 2 when debugging a program using the step break function, the step break section 2 registers the designated step number register. After accumulating the designated step number N input in 21, the execution start signal st 2 is transmitted to the processing device 1.

【0007】実行開始信号st2 を受信した処理装置1
は、命令アドレスジレスタ11に実行する命令の格納領
域を示す命令アドレスaを順次蓄積し、命令アドレスa
により指定されるデバッグ対象プログラムを構成する各
命令を命令実行部12により順次実行するが、命令実行
部12が一命令を実行する度に、命令実行信号eをステ
ップブレーク部2に伝達する。
The processing device 1 which has received the execution start signal st 2
Sequentially accumulates the instruction address a indicating the storage area of the instruction to be executed in the instruction address register 11,
Each instruction constituting the program to be debugged specified by is sequentially executed by the instruction execution unit 12. The instruction execution signal e is transmitted to the step break unit 2 every time the instruction execution unit 12 executes one instruction.

【0008】ステップブレーク部2は、命令実行部12
から命令実行信号eを伝達される度に、指定ステップ数
レジスタ21に蓄積されている指定ステップ数Nから
「1」ステップ宛減算し、指定ステップ数Nが零となっ
た段階で処理装置1に対して実行停止信号sp2 を伝達
する。
The step break unit 2 includes an instruction execution unit 12
Each time the instruction execution signal e is transmitted from the designated step number register 21, the designated step number N accumulated in the designated step number register 21 is decremented by "1" step, and when the designated step number N becomes zero, the processing device 1 is processed. The execution stop signal sp 2 is transmitted to the terminal.

【0009】実行停止信号sp2 を受信した処理装置1
は、デバッグ対象プログラムの実行を停止する。またデ
バッグ実行者が、命令ブレーク機能を用いてプログラム
をデバッグする場合に、命令ブレーク部3に指定命令ア
ドレスAと、起動信号ST3 とを入力すると、命令ブレ
ーク部3は指定命令アドレスレジスタ31に入力された
指定命令アドレスAを蓄積した後、処理装置1に対して
実行開始信号st3 を伝達する。
The processing device 1 which has received the execution stop signal sp 2.
Stops the execution of the program to be debugged. When the debug executor inputs the designated instruction address A and the start signal ST 3 to the instruction break unit 3 when debugging the program using the instruction break function, the instruction break unit 3 stores the designated instruction address register 31 in the designated instruction address register 31. After accumulating the input designated instruction address A, the execution start signal st 3 is transmitted to the processor 1.

【0010】実行開始信号st3 を受信した処理装置1
は、前述と同様に、命令アドレスジレスタ11に実行す
る命令の格納領域を示す命令アドレスaを順次蓄積し、
命令アドレスaにより指定されるデバッグ対象プログラ
ムを構成する各命令を命令実行部12により順次実行す
るが、命令アドレスジレスタ11に蓄積される命令アド
レスaは、命令ブレーク部3にも伝達される。
The processing device 1 which has received the execution start signal st 3.
In the same manner as described above, the instruction address a indicating the storage area of the instruction to be executed is sequentially accumulated in the instruction address register 11,
Each instruction constituting the debug target program specified by the instruction address a is sequentially executed by the instruction executing section 12, and the instruction address a accumulated in the instruction address register 11 is also transmitted to the instruction break section 3.

【0011】命令ブレーク部3は、命令アドレスジレス
タ11から伝達される命令アドレスaと、指定命令アド
レスレジスタ31に蓄積されている指定命令アドレスA
とを照合し、命令アドレスaが指定命令アドレスAと一
致した場合に、処理装置1に対して実行停止信号sp3
を伝達する。
The instruction break unit 3 receives the instruction address a transmitted from the instruction address register 11 and the designated instruction address A stored in the designated instruction address register 31.
When the instruction address a matches the designated instruction address A, the execution stop signal sp 3 is sent to the processing device 1.
To convey.

【0012】実行停止信号sp3 を受信した処理装置1
は、デバッグ対象プログラムの実行を停止する。以上に
より、デバッグ対象プログラムの命令を指定ステップ数
Nだけ実行した後の情報処理システムの状態、並びに指
定命令アドレスAにより指定された命令を実行した後の
情報処理システムの状態が確認可能となる。
The processor 1 which has received the execution stop signal sp 3.
Stops the execution of the program to be debugged. As described above, the state of the information processing system after the instruction of the debug target program is executed by the designated step number N and the state of the information processing system after the instruction designated by the designated instruction address A can be confirmed.

【0013】ここで、例えば図5に示される如きメイン
ルーチンMRを、ステップブレーク機能を用いてデバッ
グするものとする。図5において、メインルーチンMR
の各命令アドレスaは、ステップS1M 、S2M 、…に
より示されるが、ステップS3M により指定される命令
は、メインルーチンMRの実行を一時中断し、サブルー
チンSRを実行した後、メインルーチンMRの実行を再
開し、ステップS3M の次のステップS4M により指定
される命令以降を順次実行するサブルーチンコール命令
SCIであることを示す。
Here, it is assumed that the main routine MR as shown in FIG. 5, for example, is debugged by using the step break function. In FIG. 5, the main routine MR
Each instruction address a of is indicated by steps S1 M , S2 M , ..., But the instruction specified by step S3 M suspends the execution of the main routine MR, executes the subroutine SR, and then executes the main routine MR. the execution resumed, indicating that the subroutine call instruction SCI for executing instructions after designated sequentially by the following steps S4 M in step S3 M.

【0014】図4乃至図6において、デバッグ実行者
が、メインルーチンMRをステップS10M 迄実行した
後に情報処理システムを停止させることを希望し、指定
ステップ数N=「10」と起動信号ST2 とをステップ
ブレーク部2に入力すると、ステップブレーク部2は前
述と同様に、指定ステップ数レジスタ21に指定ステッ
プ数N=「10」を蓄積した後、処理装置1に対して実
行開始信号st2 を伝達し、また実行開始信号st2
受信した処理装置1は、前述と同様に、命令アドレスジ
レスタ11に命令アドレスaとしてステップS1M 、S
M 、S3M を順次蓄積し乍ら、メインルーチンMRの
各命令を命令実行部12により実行すると共に、ステッ
プブレーク部2に命令実行信号eを伝達し、更にステッ
プブレーク部2は、命令実行信号eを受信する度に指定
ステップ数N(=「10」)を「9」、「8」、「7」
と更新する。
4 to 6, the debug executor desires to stop the information processing system after executing the main routine MR up to step S10 M , and specifies the designated number of steps N = “10” and the start signal ST 2. When is input to the step break unit 2, the step break unit 2 accumulates the designated step number N = “10” in the designated step number register 21 and then outputs the execution start signal st 2 to the processing device 1 in the same manner as described above. convey, also receives the execution start signal st 2 processing apparatus 1, in the same manner as described above, step S1 as an instruction address a to the instruction address di Resta 11 M, S
By sequentially accumulating 2 M and S3 M , each instruction of the main routine MR is executed by the instruction execution unit 12, and the instruction execution signal e is transmitted to the step break unit 2, and the step break unit 2 further executes the instruction execution. Each time the signal e is received, the designated step number N (= “10”) is set to “9”, “8”, “7”.
And update.

【0015】処理装置1は、メインルーチンMRの、ス
テップS3M により指定されるサブルーチンコール命令
SCIを実行した後は、命令アドレスジレスタ11に命
令アドレスaとしてステップS1S 乃至S4Sを順次蓄
積し乍ら、サブルーチンSRの各命令を命令実行部12
により実行すると共に、ステップブレーク部2に命令実
行信号eを伝達する。
After executing the subroutine call instruction SCI designated by step S3 M of the main routine MR, the processor 1 sequentially accumulates steps S1 S to S4 S as the instruction address a in the instruction address register 11. Each instruction of the subroutine SR is executed by the instruction execution unit 12
And executes the instruction execution signal e to the step break unit 2.

【0016】その結果ステップブレーク部2は、処理装
置1がサブルーチンSRを実行し終わる迄に、指定ステ
ップ数レジスタ21内の指定ステップ数N(=「7」)
を「3」に迄更新する。
As a result, the step break unit 2 has the designated step number N (= “7”) in the designated step number register 21 by the time the processing apparatus 1 finishes executing the subroutine SR.
Is updated to "3".

【0017】処理装置1は、サブルーチンSRのステッ
プS4S により指定される命令を実行することにより、
サブルーチンコール命令SCIにより指定されていたメ
インルーチンMRのステップS4M を、命令アドレスa
として命令アドレスジレスタ11に蓄積し、メインルー
チンMRのサブルーチンコール命令SCIの次の命令を
命令実行部12により実行すると共にステップブレーク
部2に命令実行信号eを伝達し、また命令実行信号eを
受信したステップブレーク部2は指定ステップ数レジス
タ21内の指定ステップ数N=「3」を「2」に更新す
る。
The processor 1 executes the instruction designated by step S4 S of the subroutine SR,
At step S4 M of the main routine MR designated by the subroutine call instruction SCI, the instruction address a
Is stored in the instruction address register 11, the instruction execution unit 12 executes the instruction next to the subroutine call instruction SCI of the main routine MR, the instruction execution signal e is transmitted to the step break unit 2, and the instruction execution signal e is also transmitted. The received step break unit 2 updates the designated step number N = “3” in the designated step number register 21 to “2”.

【0018】以後処理装置1は、命令アドレスジレスタ
11に命令アドレスaとしてステップS5M 、S6M
順次蓄積し乍ら、メインルーチンMRの各命令を命令実
行部12により実行すると共に、ステップブレーク部2
に命令実行信号eを伝達し、更にステップブレーク部2
は、命令実行信号eを受信する度に指定ステップ数N=
「2」を「1」、「0」と更新し、指定ステップ数Nが
「0」となると、処理装置1に実行停止信号sp2 を伝
達し、停止させる。
Thereafter, the processor 1 sequentially accumulates the steps S5 M and S6 M as the instruction address a in the instruction address register 11 and executes the respective instructions of the main routine MR by the instruction execution section 12 and the step break. Part 2
The instruction execution signal e to the step break unit 2
Is the designated number of steps N = each time the instruction execution signal e is received.
When "2" is updated to "1" and "0" and the designated step number N becomes "0", the execution stop signal sp 2 is transmitted to the processing device 1 and stopped.

【0019】以上により、処理装置1はメインルーチン
MRをステップS6M 迄実行した後に停止することとな
り、メインルーチンMRをステップS10M 迄実行させ
ることを希望していたデバッグ実行者の希望に反する結
果となる。
As a result, the processing apparatus 1 stops after executing the main routine MR up to step S6 M , which is contrary to the wish of the debug executor who wished to execute the main routine MR up to step S10 M. Becomes

【0020】[0020]

【発明が解決しようとする課題】以上の説明から明らか
な如く、従来ある情報処理システムにおいては、ステッ
プブレーク部2が処理装置1の実行する総ての命令数を
計数し、指定ステップ数Nを減算していた為、図5に例
示される如きメインルーチンMRをデバッグの対象とす
る場合に、所望のステップS10M において停止させる
ことが困難となり、指定によってはメインルーチンMR
以外のサブルーチンSRを実行中に停止する等、デバッ
グ実行者の期待に応えることが困難となる問題があっ
た。
As is clear from the above description, in the conventional information processing system, the step break unit 2 counts all the instructions executed by the processing device 1 and determines the designated step number N. Since the subtraction is performed, it becomes difficult to stop at the desired step S10 M when the main routine MR as illustrated in FIG. 5 is to be debugged.
There is a problem that it is difficult to meet the expectations of the debug executor, such as stopping the subroutine SR other than the above during execution.

【0021】かかる問題を解決する為に、ステップブレ
ーク部2と命令ブレーク部3とを順次使い分けることに
より、処理装置1をメインルーチンMRのサブルーチン
コール命令SCI(ステップS3M )迄実行させて一旦
停止させ、次に処理装置1をサブルーチンSRの最終ス
テップS4S 迄実行させて一旦停止させ、更にメインル
ーチンMRのステップS4M 以降を実行させる等の方法
も考慮されるが、ステップブレーク部2および命令ブレ
ーク部3を頻繁に使い分ける必要が生じ、デバッグ作業
に長時間を要し、また人為的な誤りを惹起する可能性も
多く、必ずしも充分な解決策とは言い難い。
[0021] In order to solve such a problem, by sequentially selectively using a step break portion 2 and the instruction break unit 3, temporarily stopped by executing the processing device 1 until the main routine MR subroutine call instruction SCI (step S3 M) Then, the processing device 1 may be executed until the final step S4 S of the subroutine SR and temporarily stopped, and then the steps S4 M and after of the main routine MR may be executed. Since it is necessary to use the break portions 3 frequently, it takes a long time for debugging work, and there is a possibility that an artificial error is caused in many cases, which is not necessarily a sufficient solution.

【0022】本発明は、サブルーチンを呼出して実行す
るメインルーチンに対しても、ステップブレーク機能に
おける指定ステップ数が容易に指定可能とすることを目
的とする。
An object of the present invention is to make it possible to easily specify the specified number of steps in the step break function even for a main routine that calls and executes a subroutine.

【0023】[0023]

【課題を解決するための手段】図1は本発明の原理を示
す図である。図1において、100は本発明の対象とな
る情報処理システム、101および102は情報処理シ
ステム100が具備するステップブレーク機能および命
令ブレーク機能である。
FIG. 1 is a diagram showing the principle of the present invention. In FIG. 1, reference numeral 100 denotes an information processing system which is a target of the present invention, and 101 and 102 denote a step break function and an instruction break function included in the information processing system 100.

【0024】103は、本発明により情報処理システム
100に設けられた命令分析手段である。104は、本
発明により情報処理システム100に設けられた計数停
止手段である。
Reference numeral 103 is an instruction analyzing means provided in the information processing system 100 according to the present invention. 104 is a counting stop means provided in the information processing system 100 according to the present invention.

【0025】105は、本発明により情報処理システム
100に設けられた起動手段である。106は、本発明
により情報処理システム100に設けられた計数再開手
段である。
Reference numeral 105 is a starting means provided in the information processing system 100 according to the present invention. Reference numeral 106 is a counting restarting unit provided in the information processing system 100 according to the present invention.

【0026】[0026]

【作用】命令分析手段103は、情報処理システム10
0がステップブレーク機能101を使用中に、サブルー
チンコール命令を実行するか否かを分析する。
The command analyzing means 103 is the information processing system 10.
0 analyzes whether a subroutine call instruction is executed while 0 is using the step break function 101.

【0027】計数停止手段104は、命令分析手段10
3がサブルーチンコール命令の実行を検出した場合に、
ステップブレーク機能101における実行命令数の計数
を停止させる。
The counting stopping means 104 is the instruction analyzing means 10
3 detects the execution of a subroutine call instruction,
The counting of the number of executed instructions in the step break function 101 is stopped.

【0028】起動手段105は、命令分析手段103が
サブルーチンコール命令の実行を検出した場合に、命令
ブレーク機能102にサブルーチンコール命令の次の命
令を指定して使用開始させる。
When the instruction analyzing means 103 detects the execution of the subroutine call instruction, the starting means 105 designates the instruction next to the subroutine call instruction to the instruction break function 102 and starts using it.

【0029】計数再開手段106は、命令ブレーク機能
102がサブルーチンコール命令の次の命令の実行を検
出した場合に、ステップブレーク機能101における実
行命令数の計数を再開させる。
The counting restart means 106 restarts counting of the number of executed instructions in the step break function 101 when the instruction break function 102 detects the execution of an instruction next to the subroutine call instruction.

【0030】なお起動手段105は、サブルーチンコー
ル命令の次の命令の格納領域を示すアドレスAを命令ブ
レーク機能102に指定し、命令ブレーク機能102
は、情報処理システム100が実行する命令のアドレス
が、起動手段105から指定されたアドレスAと一致し
た場合に処理を停止させることが考慮される。
The starting means 105 specifies the address A indicating the storage area of the instruction next to the subroutine call instruction to the instruction break function 102, and the instruction break function 102
Is considered to stop the process when the address of the instruction executed by the information processing system 100 matches the address A specified by the activation unit 105.

【0031】従って、サブルーチンコール命令を含むメ
インルーチンをデバッグ対象とする場合にも、メインル
ーチンにおけるステップ数のみを考慮してステップブレ
ーク機能が使用可能となり、デバッグ作業の効率、並び
にデバッグ実行者に対する利便性が大幅に向上する。
Therefore, even when the main routine including the subroutine call instruction is to be debugged, the step break function can be used by considering only the number of steps in the main routine, which improves the efficiency of the debugging work and is convenient for the debug executor. Significantly improved.

【0032】[0032]

【実施例】以下、本発明の一実施例を図面により説明す
る。図2は本発明の一実施例による情報処理システムを
示す図であり、図3は図2におけるステップブレーク過
程の一例を示す図である。なお、全図を通じて同一符号
は同一対象物を示す。またデバッグ対象プログラムは図
5に示す通りとする。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. 2 is a diagram showing an information processing system according to an embodiment of the present invention, and FIG. 3 is a diagram showing an example of a step break process in FIG. The same reference numerals denote the same objects throughout the drawings. The debug target program is as shown in FIG.

【0033】図2においては、図1におけるステップブ
レーク機能101および命令ブレーク機能102を実現
する手段としてステップブレーク部2および命令ブレー
ク部3が示され、また図1における命令分析手段103
としてサブルーチンコール命令検出部4が設けられ、ま
た図1における計数停止手段104として計数停止部5
が設けられ、また図1における起動手段105として起
動部6が設けられ、更に図1における計数再開手段10
6として計数再開部7が設けられている。
In FIG. 2, a step break unit 2 and an instruction break unit 3 are shown as means for realizing the step break function 101 and the instruction break function 102 in FIG. 1, and the instruction analysis unit 103 in FIG.
Is provided with a subroutine call instruction detecting section 4, and as the counting stopping means 104 in FIG.
1, a starting unit 6 is provided as the starting unit 105 in FIG. 1, and the counting restarting unit 10 in FIG.
A counting restart unit 7 is provided as 6.

【0034】図2、図3および図5において、デバッグ
実行者が、メインルーチンMRをステップS10M 迄実
行した後に停止させることを希望し、指定ステップ数N
=「10」と起動信号ST2 とをステップブレーク部2
に入力すると、ステップブレーク部2は前述と同様に、
指定ステップ数レジスタ21に入力された指定ステップ
数N=「10」を蓄積した後、処理装置1に対して実行
開始信号st2 を伝達する。
In FIGS. 2, 3 and 5, the debug executor desires to stop the main routine MR after executing up to step S10 M , and designates the specified number N of steps.
= “10” and the start signal ST 2 are changed to the step break unit 2
When you input to, the step break unit 2
After the designated step number N = “10” input to the designated step number register 21 is accumulated, the execution start signal st 2 is transmitted to the processing device 1.

【0035】実行開始信号st2 を受信した処理装置1
は、前述と同様に、命令アドレスジレスタ11に命令ア
ドレスaとしてステップS1M 、S2M 、S3M を順次
蓄積し乍ら、命令レジスタ13に蓄積したメインルーチ
ンMRの各命令iを命令実行部12により実行すると共
に、ステップブレーク部2に命令実行信号eを伝達す
る。
The processing device 1 which has received the execution start signal st 2
In the same manner as described above, the steps S1 M , S2 M and S3 M are sequentially stored in the instruction address register 11 as the instruction address a, and each instruction i of the main routine MR stored in the instruction register 13 is stored in the instruction execution unit. 12 and the instruction execution signal e is transmitted to the step break unit 2.

【0036】その結果ステップブレーク部2は、命令実
行信号eを受信する度に指定ステップ数N(=「1
0」)を「9」、「8」、「7」と更新する。一方サブ
ルーチンコール命令検出部4は、処理装置1が実行する
命令iを命令レジスタ13に蓄積する度に、命令iがサ
ブルーチンコール命令SCIであるか否かを分析し、命
令アドレスa=ステップS1M およびS2M において命
令レジスタ13に蓄積される命令iは、何れもサブルー
チンコール命令SCIでは無い為、検出信号dを出力す
ること無くステップブレーク部2に前述の動作を継続さ
せるが、命令アドレスa=ステップS3M において命令
レジスタ13に蓄積される命令iはサブルーチンコール
命令SCIであることを検出し、検出信号dを出力して
計数停止部5および起動部6に伝達する。
As a result, the step break unit 2 receives the designated number of steps N (= "1" each time the instruction execution signal e is received.
0 ") is updated to" 9 "," 8 ", and" 7 ". On the other hand, the subroutine call instruction detection unit 4 analyzes whether or not the instruction i is the subroutine call instruction SCI each time the instruction i executed by the processing device 1 is accumulated in the instruction register 13, and the instruction address a = step S1 M Since neither of the instructions i stored in the instruction register 13 in S2 M and S2 M is the subroutine call instruction SCI, the step break unit 2 continues the above operation without outputting the detection signal d, but the instruction address a = In step S3 M , it is detected that the instruction i stored in the instruction register 13 is the subroutine call instruction SCI, and the detection signal d is output and transmitted to the counting stop unit 5 and the activation unit 6.

【0037】検出信号dを受信した計数停止部5は、ス
テップブレーク部2に対して計数停止信号pを伝達し、
以後命令実行部12から命令実行信号eを受信しても、
指定ステップ数レジスタ21内の指定ステップ数N(=
「7」)を減算しない様に指定する。
Upon receiving the detection signal d, the counting stop unit 5 transmits the counting stop signal p to the step break unit 2,
After that, even if the instruction execution signal e is received from the instruction execution unit 12,
Number of designated steps N (= designated step number register 21
Specify not to subtract "7").

【0038】また検出信号dを受信した起動部6は、命
令ブレーク部3に対して起動信号ST3 と、指定命令ア
ドレスAとしてサブルーチンコール命令SCI(=ステ
ップS3M )の次の命令のアドレスa=ステップS4M
とを入力する。
Upon receiving the detection signal d, the starting unit 6 sends the starting signal ST 3 to the instruction break unit 3 and the address a of the instruction next to the subroutine call instruction SCI (= step S3 M ) as the designated instruction address A. = Step S4 M
Enter and.

【0039】起動信号ST3 を受信した命令ブレーク部
3は、指定命令アドレスレジスタ31に入力された指定
命令アドレスA(=ステップS4M )を蓄積した後、以
後命令アドレスジレスタ11から伝達される命令アドレ
スaと、指定命令アドレスレジスタ31に蓄積されてい
る指定命令アドレスA(=ステップS4M )とを照合す
る。
Upon receiving the start signal ST 3 , the instruction break unit 3 stores the designated instruction address A (= step S4 M ) input to the designated instruction address register 31 and then transmits it from the instruction address register 11. The instruction address a is collated with the designated instruction address A (= step S4 M ) accumulated in the designated instruction address register 31.

【0040】一方処理装置1は、メインルーチンMR
の、ステップS3M により指定されるサブルーチンコー
ル命令SCIを実行した後は、命令アドレスジレスタ1
1に命令アドレスaとしてステップS1S 乃至S4S
順次蓄積し乍ら、命令レジスタ13に蓄積するサブルー
チンSRの各命令iを命令実行部12により実行すると
共に、ステップブレーク部2に命令実行信号eを伝達す
るが、計数停止信号pを受信したステップブレーク部2
は、命令実行信号eを受信しても指定ステップ数レジス
タ21内の指定ステップ数N=「7」を更新すること無
く保持する。
On the other hand, the processing device 1 has a main routine MR.
Of, after executing the subroutine call instruction SCI specified by the step S3 M, instruction address di Resta 1
1 sequentially stores steps S1 S to S4 S as the instruction address a, and each instruction i of the subroutine SR stored in the instruction register 13 is executed by the instruction execution section 12 and the instruction execution signal e is sent to the step break section 2. Is transmitted, but the step break unit 2 which receives the count stop signal p
Holds the designated step number N = “7” in the designated step number register 21 without updating even when the instruction execution signal e is received.

【0041】処理装置1は、サブルーチンSRのステッ
プS4S により指定される命令iを実行することによ
り、サブルーチンコール命令SCIにより指定されてい
たメインルーチンMRのステップS4M を、命令アドレ
スaとして命令アドレスジレスタ11に蓄積し、メイン
ルーチンMRのサブルーチンコール命令SCIの次の命
令iを命令レジスタ13に蓄積し、命令実行部12によ
り実行すると共にステップブレーク部2に命令実行信号
eを伝達する。
The processing device 1 executes the instruction i designated by the step S4 S of the subroutine SR, so that the step S4 M of the main routine MR designated by the subroutine call instruction SCI is used as the instruction address a. The instruction i, which is stored in the register 11 and next to the subroutine call instruction SCI of the main routine MR, is stored in the instruction register 13, and is executed by the instruction execution unit 12 and the instruction execution signal e is transmitted to the step break unit 2.

【0042】一方命令ブレーク部3は、命令アドレスジ
レスタ11から伝達される命令アドレスaと、指定命令
アドレスレジスタ31に蓄積されている指定命令アドレ
スA(=ステップS4M )とを照合しており、命令アド
レスジレスタ11に命令アドレスaとしてステップS4
M が蓄積されると、計数再開部7に対して実行停止信号
sp3 を伝達する。
On the other hand, the instruction break unit 3 collates the instruction address a transmitted from the instruction address register 11 with the designated instruction address A (= step S4 M ) stored in the designated instruction address register 31. , Step S4 as the instruction address a in the instruction address register 11
When M is accumulated, the execution stop signal sp 3 is transmitted to the counting restart unit 7.

【0043】実行停止信号sp3 を受信した計数再開部
7は、ステップブレーク部2に対して計数停止信号pを
受信後、停止していた指定ステップ数レジスタ21内の
指定ステップ数N(=「7」)の減算を再開させる為の
計数再開信号rを、ステップブレーク部2に伝達する。
Upon receiving the execution stop signal sp 3 , the counting restart unit 7 stops the specified number of steps N (= ““ in the specified step number register 21 after receiving the counting stop signal p to the step break unit 2). The counting restart signal r for restarting the subtraction of 7 ”) is transmitted to the step break unit 2.

【0044】計数再開信号rを受信したステップブレー
ク部2は、命令実行部12が、命令レジスタ13に蓄積
されているメインルーチンMRにおけるサブルーチンコ
ール命令SCIの次の命令iを実行することにより出力
する命令実行信号eを受信することにより、直ちに指定
ステップ数N(=「7」)から「1」ステップを減算
し、指定ステップ数N=「6」に更新する。
Upon receiving the counting restart signal r, the step break unit 2 outputs the instruction execution unit 12 by executing the instruction i next to the subroutine call instruction SCI in the main routine MR stored in the instruction register 13. Upon receiving the instruction execution signal e, the designated step number N (= “7”) is immediately subtracted by “1” step to update the designated step number N = “6”.

【0045】以後処理装置1が、命令アドレスジレスタ
11に命令アドレスaとしてステップS5M 乃至S10
M を順次蓄積し乍ら、命令レジスタ13に蓄積するメイ
ンルーチンMRの各命令iを命令実行部12により実行
すると共に、ステップブレーク部2に命令実行信号eを
伝達すると、ステップブレーク部2は、命令実行信号e
を受信する度に指定ステップ数N(=「6」)から
「1」ステップ宛減算し、命令アドレスジレスタ11内
の命令アドレスaがステップS10M となった段階で、
指定ステップ数Nが「0」に更新される為、処理装置1
に実行停止信号sp 2 を伝達する。
Thereafter, the processing unit 1 determines that the instruction address register
11 as the instruction address a in step S5MThrough S10
MAre sequentially stored and then stored in the instruction register 13.
Each instruction i of the routine routine MR is executed by the instruction execution unit 12.
And the instruction execution signal e is sent to the step break unit 2.
Upon transmission, the step break unit 2 causes the instruction execution signal e
From the specified number of steps N (= “6”) each time
In the instruction address register 11 after subtraction to the "1" step
Command address a of step S10MAt that stage,
Since the designated step number N is updated to "0", the processing device 1
Execution stop signal sp 2To convey.

【0046】実行停止信号sp2 を受信した処理装置1
は、メインルーチンMRの実行を停止する。以上の説明
から明らかな如く、本実施例によれば、ステップブレー
ク部2は処理装置1がサブルーチンSRを実行している
間は、指定ステップ数Nの減算を停止する為、処理装置
1はデバッグ実行者の希望通り、メインルーチンMRを
ステップS10M 迄実行した後に停止することとなる。
The processing device 1 which has received the execution stop signal sp 2.
Stops the execution of the main routine MR. As is apparent from the above description, according to the present embodiment, the step break unit 2 stops the subtraction of the designated step number N while the processing device 1 is executing the subroutine SR, so that the processing device 1 debugs. desired by the practitioner, so that the stop after executing the main routine MR until step S10 M.

【0047】なお、図2、図3および図5はあく迄本発
明の一実施例に過ぎず、例えばデバッグ対象プログラム
の構成は図示されるものに限定されることは無く、メイ
ンルーチンMRが複数のサブルーチンSRを呼出す、或
いはメインルーチンMRから呼出されたサブルーチンS
Rが更に他のサブルーチンSRを呼出す等、他に幾多の
変形が考慮されるが、何れの場合にも本発明の効果は変
わらない。また本発明の対象となる情報処理システム1
00の構成は、図示されるものに限定されることは無
く、例えばサブルーチンコール命令検出部4、計数停止
部5、起動部6および計数再開部7をプログラムにより
実現する等、他に幾多の変形が考慮されるが、何れの場
合にも本発明の効果は変わらない。
It is to be noted that FIGS. 2, 3 and 5 are merely examples of the present invention until now. For example, the configuration of the program to be debugged is not limited to that shown in the figure, and there are a plurality of main routines MR. Subroutine SR is called or subroutine S called from the main routine MR
Many other variations, such as R calling another subroutine SR, are considered, but in any case, the effect of the present invention does not change. Further, the information processing system 1 to which the present invention is applied
The configuration of 00 is not limited to that shown in the figure, and for example, the subroutine call instruction detecting unit 4, the counting stopping unit 5, the starting unit 6, and the counting resuming unit 7 are realized by a program, and many other modifications are possible. However, the effect of the present invention does not change in any case.

【0048】[0048]

【発明の効果】以上、本発明によれば、前記情報処理シ
ステムにおいて、サブルーチンコール命令を含むメイン
ルーチンをデバッグ対象とする場合にも、メインルーチ
ンにおけるステップ数のみを考慮してステップブレーク
機能が使用可能となり、デバッグ作業の効率、並びにデ
バッグ実行者に対する利便性が大幅に向上する。
As described above, according to the present invention, in the information processing system, even when the main routine including the subroutine call instruction is to be debugged, the step break function is used by considering only the number of steps in the main routine. This makes it possible to significantly improve the efficiency of the debugging work and the convenience for the debug executor.

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

【図1】 本発明の原理を示す図FIG. 1 is a diagram showing the principle of the present invention.

【図2】 本発明の一実施例による情報処理システムFIG. 2 is an information processing system according to an embodiment of the present invention.

【図3】 図2におけるステップブレーク過程の一例を
示す図
FIG. 3 is a diagram showing an example of a step break process in FIG.

【図4】 従来ある情報処理システムの一例を示す図FIG. 4 is a diagram showing an example of a conventional information processing system.

【図5】 デバッグ対象プログラムの一例を示す図FIG. 5 is a diagram showing an example of a debug target program.

【図6】 図4におけるステップブレーク過程の一例を
示す図
6 is a diagram showing an example of a step break process in FIG.

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

1 処理装置 2 ステップブレーク部 3 命令ブレーク部 4 サブルーチンコール命令検出部 5 計数停止部 6 起動部 7 計数再開部 11 命令アドレスジレスタ 12 命令実行部 13 命令レジスタ 21 指定ステップ数レジスタ 31 指定命令アドレスレジスタ 100 情報処理システム 101 ステップブレーク機能 102 命令ブレーク機能 103 命令分析手段 104 計数停止手段 105 起動手段 106 計数再開手段 1 processor 2 step break section 3 Instruction break section 4 Subroutine call instruction detector 5 Counting stop 6 start-up section 7 Count restart unit 11 Instruction Address JILLESTA 12 Instruction execution unit 13 Instruction register 21 Specified step number register 31 Designated instruction address register 100 information processing system 101 Step break function 102 Instruction break function 103 Command analysis means 104 counting stop means 105 Starting means 106 counting restart means

───────────────────────────────────────────────────── フロントページの続き (72)発明者 諸▲橋▼ 敦志 神奈川県横浜市港北区新横浜三丁目9番18 号 富士通コミユニケーシヨン・システム ズ株式会社内 (72)発明者 鈴木 正紀 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内   ─────────────────────────────────────────────────── ─── Continued front page    (72) Inventors, various bridges Atsushi             3-9-18 Shin-Yokohama, Kohoku Ward, Yokohama City, Kanagawa Prefecture             Issue Fujitsu Comunication System             Within Co., Ltd. (72) Inventor Masaki Suzuki             1015 Kamiodanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture             Within Fujitsu Limited

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 指定されたステップ数(N)の命令を実
行した後に処理を停止させるステップブレーク機能(1
01)と、指定された命令を実行した後に処理を停止さ
せる命令ブレーク機能(102)とを具備する情報処理
システム(100)において、 前記情報処理システム(100)が前記ステップブレー
ク機能(101)を使用中に、サブルーチンコール命令
を実行するか否かを分析する命令分析手段(103)
と、 前記命令分析手段(103)が前記サブルーチンコール
命令の実行を検出した場合に、前記ステップブレーク機
能(101)における実行命令数の計数を停止させる計
数停止手段(104)と、 前記命令分析手段(103)が前記サブルーチンコール
命令の実行を検出した場合に、前記命令ブレーク機能
(102)に前記サブルーチンコール命令の次の命令を
指定して使用開始させる起動手段(105)と、 前記命令ブレーク機能(102)が前記サブルーチンコ
ール命令の次の命令の実行を検出した場合に、前記ステ
ップブレーク機能(101)における実行命令数の計数
を再開させる計数再開手段(106)とを設けることを
特徴とするステップブレーク処理方式。
1. A step break function (1) for stopping processing after executing a specified number of steps (N) of instructions.
01) and an instruction break function (102) for stopping processing after executing a specified instruction, the information processing system (100) includes the step break function (101). Instruction analysis means (103) for analyzing whether or not to execute a subroutine call instruction during use
A counting stop means (104) for stopping the counting of the number of executed instructions in the step break function (101) when the instruction analysis means (103) detects the execution of the subroutine call instruction; and the instruction analysis means. When (103) detects the execution of the subroutine call instruction, the instruction break function (102) specifies an instruction next to the subroutine call instruction to start using, and an instruction break function (105). A counting restart means (106) for restarting counting of the number of executed instructions in the step break function (101) is provided when (102) detects execution of an instruction next to the subroutine call instruction. Step break processing method.
【請求項2】 前記起動手段(105)は、前記サブル
ーチンコール命令の次の命令の格納領域を示すアドレス
(A)を前記命令ブレーク機能(102)に指定し、前
記命令ブレーク機能(102)は、前記情報処理システ
ム(100)が実行する命令のアドレスが、前記起動手
段(105)から指定されたアドレス(A)と一致した
場合に処理を停止させることを特徴とする請求項1記載
のステップブレーク処理方式。
2. The starting means (105) designates an address (A) indicating a storage area of an instruction next to the subroutine call instruction to the instruction break function (102), and the instruction break function (102) is set. 2. The step according to claim 1, wherein the processing is stopped when the address of the instruction executed by the information processing system (100) matches the address (A) specified by the starting means (105). Break processing method.
JP3161307A 1991-07-02 1991-07-02 Step break processing system Withdrawn JPH0512062A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3161307A JPH0512062A (en) 1991-07-02 1991-07-02 Step break processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3161307A JPH0512062A (en) 1991-07-02 1991-07-02 Step break processing system

Publications (1)

Publication Number Publication Date
JPH0512062A true JPH0512062A (en) 1993-01-22

Family

ID=15732620

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3161307A Withdrawn JPH0512062A (en) 1991-07-02 1991-07-02 Step break processing system

Country Status (1)

Country Link
JP (1) JPH0512062A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009217429A (en) * 2008-03-10 2009-09-24 Fujitsu Ltd Debugging support device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009217429A (en) * 2008-03-10 2009-09-24 Fujitsu Ltd Debugging support device

Similar Documents

Publication Publication Date Title
JPH0512062A (en) Step break processing system
JPH064318A (en) Error detecting system
JPS5848154A (en) One-step control system for program
JP2566002B2 (en) Task dispatching method
JPH0247728A (en) Fault processing management system
JPS6365541A (en) Automatic display system for program in fault
JPH03240831A (en) Interruption processing system
JP2656471B2 (en) Distributed processing system and information processing method thereof
JPH11184735A (en) Method for detecting program run-away and recording medium including run-away detection routine
JPH05143388A (en) Suspending system for parallel processing program
JPH01226031A (en) Control system for pipe line of information processor
JPS63289654A (en) Program branching instruction monitoring system
JPS62113238A (en) Correction system for program of electronic computer system
JPS59220849A (en) Image comparison control system
JPH05216649A (en) Dynamic changing system for system program
JPH02159619A (en) Normal end outlet calling system
JPS638841A (en) Interruption accepting system
JPS62293436A (en) Task managing device
JPH04275635A (en) Constant cycle processing system
JPH04186438A (en) Fault recovery control system for information processor
JPH01100632A (en) Program parallel performing method
JPH04296943A (en) Debugging system for function type language
JPS63104150A (en) Program debugging system
JPH07334376A (en) Microprocessor and multitask managing method
JPH04263324A (en) Iteration control system

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