JPH09190363A - Breakpoint display method - Google Patents
Breakpoint display methodInfo
- Publication number
- JPH09190363A JPH09190363A JP8002868A JP286896A JPH09190363A JP H09190363 A JPH09190363 A JP H09190363A JP 8002868 A JP8002868 A JP 8002868A JP 286896 A JP286896 A JP 286896A JP H09190363 A JPH09190363 A JP H09190363A
- Authority
- JP
- Japan
- Prior art keywords
- break point
- block
- button
- point
- comm
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
(57)【要約】
【課題】プログラムの対話的実行において、リソース制
約を考慮した必要最小限の中断点の動的な設定を可能に
する。
【解決手段】各中断点に復帰再実行用のプロセスが割り
当てられているか否かを対話画面上のボタンの色で区別
し、新しい中断点に復帰再実行プロセスが割り当てられ
なくなった時は、ボタン色から利用者が判断して不要な
中断点を除去することにより、新しい中断点に復帰再実
行プロセスを割り当てるように出来る。
【効果】リソース制約とプログラムの性質、および対話
の状況に合わせた最適な中断点の動的設定が可能にな
る。
(57) Abstract: In interactive execution of a program, it is possible to dynamically set a minimum required break point in consideration of resource constraints. SOLUTION: Whether or not a process for return and re-execution is assigned to each break point is distinguished by a color of a button on an interactive screen, and when a return and re-execution process is no longer assigned to a new break point, a button is displayed. It is possible for the user to assign the re-execution process to a new breakpoint by judging the color from the user and removing unnecessary breakpoints. [Effect] It is possible to dynamically set the optimum breakpoint according to the resource constraints, the nature of the program, and the situation of interaction.
Description
【0001】[0001]
【発明の属する技術分野】本発明は計算機プログラムの
対話的実行方法に関し、特にメモリ資源の制約のもとで
のプログラム中断点(以下、単に中断点という)の効果
的選択を可能とする中断点表示方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for interactively executing a computer program, and more particularly to an interruption point that enables effective selection of a program interruption point (hereinafter, simply referred to as an interruption point) under the constraint of memory resources. Regarding display method.
【0002】[0002]
【従来の技術】近年のワークステーション等の普及によ
り、プログラムの対話的実行がマンマシン性を改善する
上で欠かせない技術となってきた。対話的実行を行うた
めにはプログラムの中断点(ブレークポイント)を用意
する必要があり、中断点は実行状態の確認を行う点であ
ると同時に復帰再実行の基点となるので、そこで再実行
に備えてプログラムの状態を退避する必要がある。HP
社のSoftbenchのような従来の対話実行環境で
は、状態を外部記憶装置に退避していた。2. Description of the Related Art With the recent popularization of workstations and the like, interactive execution of programs has become an essential technique for improving man-machine performance. In order to perform interactive execution, it is necessary to prepare a break point (break point) of the program. Since the break point is the point where the execution status is confirmed, and at the same time it is the base point of the return re-execution. It is necessary to save the state of the program in preparation. HP
In a conventional dialog execution environment such as Softbench of a company, the state is saved in an external storage device.
【0003】[0003]
【発明が解決しようとする課題】中断点における外部記
憶装置への状態退避と中断点への復帰はプログラムが大
きいとき時間がかかり、マンマシン性を損なうことがあ
る。その解決策のひとつとして、状態を外部記憶装置に
出す代わりにプログラムの状態をメモリ上にコピーして
新しいプロセス(リカバリ用プロセス)を用意して待機
させ、復帰再実行時にはリカバリ用プロセスを走らせる
方式が考えられる。この方式では状態の退避と回復は非
常に高速にできるがメモリ資源を多く必要とするため、
中断点が多くなるとメモリ不足でリカバリ用プロセスが
取れなくなり対話的実行が行き詰まる恐れがある。そこ
で、本発明の目的は、そのような事態を避けプログラム
サイズとメモリサイズを考慮しながらプログラムの実行
状況に合わせて経済的かつ効果的に中断点を選べるよう
にするための中断点表示方法を提供することにある。When the program is large, it takes time to save the state in the external storage device at the interruption point and to return to the interruption point, and the man-machine characteristic may be impaired. As one of the solutions, instead of outputting the state to an external storage device, copy the state of the program to the memory and prepare a new process (recovery process) to make it stand by, and run the recovery process at the time of re-execution. A method can be considered. This method saves and restores the state very quickly, but requires a lot of memory resources.
If there are many break points, the recovery process cannot be taken due to lack of memory, and interactive execution may be stalled. Therefore, an object of the present invention is to provide a breakpoint display method for avoiding such a situation and economically and effectively selecting a breakpoint according to the execution status of the program while considering the program size and memory size. To provide.
【0004】[0004]
【課題を解決するための手段】上記目的を達成するた、
本発明では、リカバリ用プロセスを持つ場合とそうでな
い場合とで実行制御画面上の中断点の色を変えて表示す
る。In order to achieve the above object,
In the present invention, the color of the interruption point on the execution control screen is displayed differently depending on whether the recovery process is provided or not.
【0005】こうすることにより、利用者は各時点で用
意されているリカバリ用プロセスとそれに付随する中断
点を一目で把握できるようになる。また、新たな中断点
と付随するリカバリ用プロセスが必要でありながらメモ
リ資源不足で取れない状況になったときは、その時点で
不要となった中断点と付随するリカバリ用プロセスを削
除して新しいプロセスを取ることができる。こうして、
プログラムの実行状況に合わせた経済的かつ効果的な中
断点の選択が可能になる。By doing so, the user can grasp at a glance the recovery process prepared at each time point and the accompanying break point. In addition, when a new interruption point and the associated recovery process are needed but the memory resources become insufficient, it becomes unnecessary to delete the interruption point and the associated recovery process that are no longer needed. You can take the process. Thus,
It is possible to select an economical and effective break point according to the execution status of the program.
【0006】[0006]
【発明の実施の形態】以下、図面を用いて本発明の実施
例を詳細に説明する。Embodiments of the present invention will be described below in detail with reference to the drawings.
【0007】図1は本発明を実施する対話実行システム
の構成を示す。図1において対話実行の対象となるFO
RTRANアプリケーション3は、中断点の候補となる
要所で対話連絡サブルーチン(COMM)2を呼んでい
る。COMM(N)における引数のNの値は中断点を識
別する番号(中断点番号)を意味する。FORTRAN
アプリケーション3でCOMMが呼ばれるたびに対話連
絡サブルーチン2に制御が渡ってくる。COMMはプロ
セス間通信路4を使って対話制御プログラム1と交信す
る。対話制御プログラム1は画面を介して利用者から送
られてくる指示に従いアプリケーションの対話実行を制
御するプログラムであり、対話画面は図1に示すよう
に、左端列の中断点ボタン群(11、12、13、1
4)、その右の進行インディケータ(15)、アプリケ
ーションをFORTRANのソースイメージで表示する
中央のソースフィールド(16)、上部の復帰指示ボタ
ンrecov(17)、進行指示ボタンadv(1
8)、終了指示ボタンquit(19)より成る。中断
点ボタン群は、ソースフィールド内のCALL COM
M文と同じ行に置かれる。FIG. 1 shows the configuration of a dialogue execution system for implementing the present invention. FO that is the target of interactive execution in FIG.
The RTRAN application 3 calls the dialogue communication subroutine (COMM) 2 at a place that is a candidate for a break point. The value of the argument N in COMM (N) means a number for identifying a break point (break point number). FORTRAN
Every time COMM is called by the application 3, the control is transferred to the dialogue communication subroutine 2. COMM communicates with the dialog control program 1 using the interprocess communication path 4. The dialogue control program 1 is a program for controlling the dialogue execution of an application in accordance with an instruction sent from the user through the screen. The dialogue screen has a group of interruption point buttons (11, 12) in the leftmost column as shown in FIG. , 13, 1
4), a progress indicator (15) on the right side thereof, a central source field (16) for displaying an application in a FORTRAN source image, a return instruction button recov (17) at the upper portion, and a progress instruction button adv (1).
8) and an end instruction button “quit (19)”. The break point buttons are CALL COM in the source field.
It is placed on the same line as the M sentence.
【0008】図2は、対話制御プログラム1が用いる中
断点制御テーブルの構成例を示す。このテーブルは各中
断点候補ごとに、中断点番号フィールド20、中断点か
否かを指示する指定フラグフィールド21、中断点に対
しリカバリプロセスの番号を記憶するリカバリプロセス
番号フィールド22、中断点ボタンの色を指示するボタ
ン色フィールド23よりなる。中断点番号フィールド2
0にはアプリケーションでCOMMの引数に指定された
番号が入る。指定フラグフィールド21は“on”が中断
点指定であり、“off”が指定なしを意味する。ボタン
色フィールド23は“0”がバックグラウンドと同一色
(地色)、“1”が黄色、“2”が緑色を意味する。FIG. 2 shows an example of the structure of the break point control table used by the dialogue control program 1. This table shows, for each break point candidate, a break point number field 20, a designation flag field 21 for instructing whether or not the break point is present, a recovery process number field 22 for storing a recovery process number for the break point, and a break point button. It is composed of a button color field 23 for designating a color. Break point number field 2
The number specified in the argument of COMM by the application is entered in 0. In the designated flag field 21, "on" means that the breakpoint is designated, and "off" means that there is no designation. In the button color field 23, "0" means the same color as the background (ground color), "1" means yellow, and "2" means green.
【0009】図3のフローチャートは対話連絡サブルー
チン2(COMM)の動作(処理手順)を示す。COM
Mはアプリケーション3から呼ばれる場合と、復帰に伴
い対話制御プログラム1のリカバリ用プロセスから起動
される場合で異なる動作をする。詳細は後に述べる。The flowchart of FIG. 3 shows the operation (processing procedure) of the dialogue communication subroutine 2 (COMM). COM
M operates differently when it is called from the application 3 and when it is started from the recovery process of the dialogue control program 1 upon restoration. Details will be described later.
【0010】図4のフローチャートは対話制御プログラ
ム1の動作を示す。対話制御プログラム1は対話画面を
表示した後イベント発生待ちのループに入る。イベント
としては、中断点ボタンの押下、COMMからの起動、
進行指示ボタンの押下、復帰指示ボタンの押下、終了指
示ボタンの押下があり、それぞれの場合で異なる動作を
する。詳細は後に述べる。The flowchart of FIG. 4 shows the operation of the dialogue control program 1. After displaying the dialog screen, the dialog control program 1 enters a loop waiting for an event to occur. Events include pressing the break point button, starting from COMM,
There are pressing of the progress instruction button, pressing of the return instruction button, and pressing of the end instruction button, and different operations are performed in each case. Details will be described later.
【0011】以上に述べた画面とプログラム、テーブル
類を用いた対話プロセスの例を以下に示す(中断点ボタ
ンの色表示方法に着目願いたい)。An example of a dialogue process using the screen, the program, and the tables described above is shown below (note the color display method of the break point button).
【0012】はじめに、対話制御プログラム1と、対話
連絡サブルーチン2(COMM)を組み込んだFORT
RANアプリケーション3とをそれぞれ独立に立ち上げ
る。FORTRANアプリケーション3は図1に示すと
おり4ヵ所のCALL COMMを含むものとする。対
話制御プログラム1は図4に示したとおり、図1のよう
な対話画面1を作成しCOMMとプロセス間通信路4を
確保してイベント発生待ちで停止する(41)。対話画
面のソースフィールド16にはアプリケーションファイ
ル5から読み込んだFORTRANソースプログラムを
表示する。その際、ソースプログラム内のCALL C
OMM行を検出して、同じ行に中断点ボタン群(11、
12、13、14)を作成表示する。さらに、図6
(a)に示すように中断点制御テーブル(図2)の内容
を初期化する。すなわち中断点番号フィールド20にC
OMM引数より取られた4つの番号が登録され、他のフ
ィールドはすべてゼロとなる。従ってボタンはすべてバ
ックグラウンドと同じ色である。First, a FORT incorporating a dialogue control program 1 and a dialogue communication subroutine 2 (COMM).
Launch the RAN application 3 independently. The FORTRAN application 3 is assumed to include four CALL COMMs as shown in FIG. As shown in FIG. 4, the dialogue control program 1 creates the dialogue screen 1 as shown in FIG. 1, secures the COMM and the interprocess communication path 4, and stops waiting for an event to occur (41). The FORTRAN source program read from the application file 5 is displayed in the source field 16 of the interactive screen. At that time, CALL C in the source program
The OMM line is detected, and the break point button group (11,
12, 13, 14) are created and displayed. Furthermore, FIG.
As shown in (a), the contents of the breakpoint control table (FIG. 2) are initialized. That is, C in the break point number field 20
The four numbers taken from the OMM argument are registered and all other fields are zero. Therefore all buttons are the same color as the background.
【0013】続いて利用者が、例えば、中断点ボタン1
1、13、14を押して中断点の設定を行うものとす
る。これらのボタンが押されると対話制御プログラム1
は図4のイベント発生待ち状態(41)から抜け、ブロ
ック42の中断点ボタン押下時のパスからブロック43
に進み、指定フラグフィールド21の現状がoffである
ことから処理435、436、437すべてを行ってイ
ベント待ち状態(41)に戻る。その結果中断点制御テ
ーブルの内容は図6(b)のように変化する。また、中
断点ボタン11,13,14は黄色に点灯し中断点であ
ることを表示する。Then, the user, for example, the break point button 1
It is assumed that the break point is set by pressing 1, 13, and 14. When these buttons are pressed, the dialogue control program 1
Exits from the event occurrence waiting state (41) in FIG. 4, and the block 43 from the path when the interruption point button of the block 42 is pressed.
Then, since the current state of the designated flag field 21 is off, all the processes 435, 436 and 437 are performed and the process returns to the event waiting state (41). As a result, the content of the interruption point control table changes as shown in FIG. Further, the break point buttons 11, 13, and 14 are illuminated in yellow to indicate that the break point is reached.
【0014】FORTRANアプリケーション3は先頭
から処理を行い、CALL COMM(1)にかかると
図3でアプリケーションから呼ばれた時のパスを選び、
まずブロック30で対話制御プログラム1を起動し、ア
プリケーション3自身で実行中の現プロセス番号とCO
MMの引数である中断点番号(“1”)を対話制御プロ
グラム1に送信する。続いてブロック31にて対話制御
プログラム1から当該中断点番号の指定フラグフィール
ド21の状態を受け取り、ブロック32にて中断点指定
の有無を判別する。この場合は指定フラグが“on”なの
でブロック321の処理に進み、fork( )システ
ムコマンドを発行するなどにより自プロセスのコピーを
新たなプロセスとして発生させ、復帰再実行に備えて待
機させる。コピープロセスはメモリリソースの不足など
の理由で生成できないこともあるが、その場合はコピー
プロセスの番号としてゼロが得られる。正常に得られた
ときは新たな正の番号が得られる。続いてブロック32
2により新たなコピープロセスの番号をリカバリ用プロ
セス番号として対話制御プログラム1に送る。アプリケ
ーション3自身はブロック323にて対話制御プログラ
ム1からの進行指示ボタン押下待ちに入る。一方対話制
御プログラム1は、図4のイベント発生待ち状態(4
1)から抜け、中断点ボタン押下(42)で対話連絡サ
ブルーチン2(COMM)より起動のパスを選び、ブロ
ック44にて現プロセス番号と中断点番号“1”をCO
MMより受け取る。続いてブロック45にて中断点番号
“1”で図6(b)の中断点制御テーブルを検索してフ
ィールド20が同じ番号のものを見つけ当該行のフィー
ルド21の値“on”を指定フラグとしてCOMMに送信
する。さらにブロック46で指定フラグがオンであるこ
とからブロック461に進み、COMMよりリカバリ用
プロセス番号を受取り、ブロック462にてそれを図2
の中断点制御テーブルのフィールド22に格納する。今
リカバリ用プロセス番号が“1”であり正常にリカバリ
用プロセスが得られたとすれば、ブロック463より4
631に進みフィールド23のボタン色コードを“2”
すなわち緑に設定する。さらにブロック464にてコー
ドに従ってボタンを点灯しイベント発生待ち状態(4
1)に復帰する。この時点で中断点制御テーブルの内容
は図6(c)のようになり、図1のボタン11がリカバ
リ用プロセスを持つ復帰可能な中断点であることを示す
緑色になる。The FORTRAN application 3 processes from the beginning, and when the CALL COMM (1) is executed, the path when called from the application in FIG. 3 is selected,
First, in block 30, the dialog control program 1 is started, and the current process number and CO
The interruption point number (“1”) which is the argument of MM is transmitted to the dialogue control program 1. Subsequently, in block 31, the state of the designation flag field 21 of the interruption point number is received from the dialogue control program 1, and in block 32, it is judged whether or not the interruption point is designated. In this case, since the designation flag is "on", the process proceeds to the processing of block 321, and a copy of the own process is generated as a new process by issuing a fork () system command and the like, and the process is put on standby in preparation for restoration re-execution. In some cases, the copy process cannot be created due to lack of memory resources, but in that case, the copy process number is zero. If successful, a new positive number will be obtained. Then block 32
2, the new copy process number is sent to the dialogue control program 1 as the recovery process number. The application 3 itself waits at the block 323 for pressing the progress instruction button from the dialogue control program 1. On the other hand, the dialog control program 1 waits for the event occurrence ((4
After exiting step 1), press the break point button (42) to select the activation path from the dialogue communication subroutine 2 (COMM). At block 44, the current process number and the break point number "1"
Received from MM. Then, in block 45, the interruption point control table of FIG. 6B is searched for the interruption point number "1" to find a field 20 having the same number, and the value "on" of the field 21 of the row is set as the designation flag. Send to COMM. Further, in block 46, since the designation flag is on, the process proceeds to block 461, the recovery process number is received from COMM, and the recovery process number is received in block 462 in FIG.
It is stored in the field 22 of the interruption point control table. If the recovery process number is “1” and the recovery process is normally obtained, the block 463 indicates 4
Go to 631 and set the button color code in field 23 to "2".
That is, set to green. Further, in block 464, the button is lighted according to the code to wait for event occurrence (4
Return to 1). At this point, the contents of the break point control table are as shown in FIG. 6 (c), and the button 11 in FIG. 1 becomes green indicating that the break point is a recoverable break point having a recovery process.
【0015】中断点での調査を終えた後、利用者が進行
指示ボタン18を押すと対話制御プログラム1は図4の
ブロック47にてCOMMに進行を通知し、COMMは
図3のブロック323にてそれを受け、ブロック33に
てFORTRANアプリケーション3に復帰する。アプ
リケーション3は処理を続け、CALL COMM
(2)にて再びCOMMに制御を移す。ここでは、図3
のブロック30、31まで前と同じ処理を行うが、図6
(c)に示されるとおり中断点番号“2”では指定フラ
グ21が“off”であり中断点に指定されていないこと
から、ブロック32では何もせずブロック33よりアプ
リケーションに復帰する。同様に、対話制御プログラム
1も図4のブロック44、45を実行後ブロック46で
何も行わずにイベント発生待ち状態(41)に戻る。When the user presses the progress instruction button 18 after finishing the investigation at the interruption point, the dialog control program 1 notifies the progress to the COMM in the block 47 of FIG. 4, and the COMM notifies the block 323 of the FIG. In response to this, block 33 returns to FORTRAN application 3. Application 3 continues processing, CALL COMM
In (2), control is transferred to COMM again. Here, FIG.
The same processing as before is performed up to blocks 30 and 31 of FIG.
As shown in (c), since the designation flag 21 is "off" at the break point number "2" and the break point is not designated, the block 32 does nothing and the block 33 returns to the application. Similarly, the interactive control program 1 also returns to the event occurrence waiting state (41) without executing anything in block 46 after executing blocks 44 and 45 in FIG.
【0016】次のCALL COMM(3)は中断点に
指定されており、そこでの動作はCALL COMM
(1)の場合と同様である。リカバリ用プロセスが正常
に取れたとすると、中断点制御テーブルの状態は図6
(d)のようになり、中断点ボタン13も11と同じく
緑に点灯する。The next CALL COMM (3) is designated as the break point, and the operation there is the CALL COMM (3).
This is the same as the case (1). If the recovery process is taken normally, the state of the interruption point control table is as shown in FIG.
As in (d), the interruption point button 13 also lights up in green as in 11.
【0017】続くCALL COMM(4)も中断点に
指定されており同様の動作をするが、リカバリ用プロセ
スがリソース不足で取れずリカバリ用プロセス番号
“0”が得られたものとする。この時は図4のブロック
463からブロック4632のパスを取るため、ボタン
色コード23を“1”(黄色)にセットして点灯する。
従ってボタン14の色は黄色のままに留まり、リカバリ
用プロセスの取れなかったことを表示する。中断点制御
テーブルの状態は図6(e)のようになる。The following CALL COMM (4) is also designated as an interruption point and performs the same operation, but it is assumed that the recovery process number cannot be taken due to lack of resources and the recovery process number "0" is obtained. At this time, since the path from block 463 to block 4632 in FIG. 4 is taken, the button color code 23 is set to "1" (yellow) and lighted.
Therefore, the color of the button 14 remains yellow, indicating that the recovery process has not been completed. The state of the break point control table is as shown in FIG.
【0018】この時点で利用者は、これ以上リカバリ用
プロセスが取れないため復帰可能な中断点を増やせない
ことを知る。CALL COMM(4)へ復帰可能にす
るためには不要になった中断点とリカバリ用プロセスを
選択して除去しなければならない。そのような判断を利
用者は、ソースフィールド16のプログラムロジック情
報と付随する中断点ボタン群(11、12、13、1
4)の色をみて的確に行うことができる。At this point, the user knows that the recovery point cannot be increased because the recovery process cannot be taken any more. In order to be able to return to the CALL COMM (4), it is necessary to select and remove unnecessary break points and recovery processes. The user may make such a determination by using the program logic information of the source field 16 and the associated breakpoint button groups (11, 12, 13, 1).
It can be done accurately by seeing the color of 4).
【0019】利用者はボタン11で中断点を除去する決
断をしたものとする。そのために利用者はボタン11を
再度押下する。このとき対話制御プログラム1はブロッ
ク42から43に進み、さらに当該指定フラグが“on”
であることから、ブロック431に進んで指定フラグを
“off”にした後ブロック432で図6(e)フィール
ド22にあるリカバリ用プロセス1番を削除する。これ
により1番が使用していたメモリなどのリソースが開放
され、新たなプロセスが使えるようになる。さらにブロ
ック433、434でボタン色を地色に変える。これで
ボタン11で指定された番号が中断点から解除されたこ
とになる。中断点制御テーブルの内容は図5(f)のよ
うになる。It is assumed that the user has decided to remove the break point with the button 11. Therefore, the user presses the button 11 again. At this time, the dialogue control program 1 proceeds from block 42 to block 43, and the designated flag is set to "on".
Therefore, the flow advances to block 431 to set the designation flag to “off”, and then at block 432, the recovery process No. 1 in the field 22 in FIG. 6E is deleted. As a result, resources such as the memory used by No. 1 are released, and a new process can be used. Further, in blocks 433 and 434, the button color is changed to the ground color. This means that the number specified by the button 11 has been released from the interruption point. The contents of the break point control table are as shown in FIG.
【0020】続いて利用者はボタン14で指定された番
号の中断点を復帰可能にするため、一旦直前の中断点に
復帰する。Subsequently, the user temporarily returns to the previous break point so that the break point of the number designated by the button 14 can be restored.
【0021】このためには復帰指示ボタン17を押せば
良い。このとき、対話制御プログラム1は図4のブロッ
ク42から図5のブロック48のパスへ進み、中断点制
御テーブル図6(f)を現中断点番号“4”から上方に
向かってリカバリ用プロセスを持つ中断点(すなわちフ
ィールド22が正値でフィールド21が“on”の行)を
求めて探索する。その結果番号“3”の中断点が得られ
る。続いてブロック491で現在のCOMMプロセスを
削除し、ブロック492でフィールド22に書かれたリ
カバリ用プロセス2番を新たな現プロセスとし、ブロッ
ク493でCOMMに起動を掛けブロック41に戻る。
COMM側は図3のブロック34に制御が渡り、まず再
度自プロセスのコピーを新たに生成し(3番とする)、
リカバリ用のプロセスとして待機させる。直前のブロッ
ク491でプロセスをひとつ削除しているので、このプ
ロセスはかならず作ることができる。続いてブロック3
5で対話制御プログラム1を起動してリカバリ用プロセ
ス番号を送信する。これはブロック322の処理と同様
である。その後ブロック36で対話制御プログラム1か
らの進行指示を待つ。これもブロック323と同様であ
る。この時対話制御プログラム1はブロック42から4
61に進み、リカバリ用プロセス番号“3”の受け取り
とフィールド22への格納(ブロック462)を行う。
さらにブロック4631でボタン色コード2(緑色)に
設定しブロック464で点灯後ブロック41に戻る。こ
れにより中断点13への復帰が完了した。この状態で中
断点制御テーブルの内容は図6(g)のようになる。For this purpose, the return instruction button 17 may be pressed. At this time, the dialog control program 1 proceeds from the block 42 of FIG. 4 to the path of the block 48 of FIG. 5, and executes the recovery process from the current interruption point number “4” upward in the interruption point control table of FIG. 6 (f). A break point (that is, a row in which the field 22 is a positive value and the field 21 is “on”) is obtained and searched. As a result, the break point with the number "3" is obtained. Subsequently, the current COMM process is deleted in block 491, the recovery process No. 2 written in the field 22 is set as a new current process in block 492, and COMM is activated in block 493 to return to block 41.
On the COMM side, control is passed to the block 34 in FIG. 3, and a copy of the own process is newly generated again (it is number 3).
Wait as a process for recovery. Since one process is deleted in the immediately preceding block 491, this process can always be created. Then block 3
In step 5, the interactive control program 1 is activated and the recovery process number is transmitted. This is similar to the process of block 322. Thereafter, in block 36, the progress instruction from the dialogue control program 1 is waited for. This is also similar to block 323. At this time, the dialogue control program 1 is in blocks 42 to 4
In step 61, the recovery process number "3" is received and stored in the field 22 (block 462).
Further, in block 4631, the button color code 2 (green) is set, and in block 464, after lighting, the process returns to block 41. This completes the return to the break point 13. In this state, the contents of the break point control table are as shown in FIG.
【0022】利用者が進行指示ボタン18を押すことに
より、COMMは図3のブロック36の待ち状態を抜
け、ブロック37からアプリケーション3のCALL
COMM(3)の直後に復帰する。CALL COMM
(4)にて再び制御は対話連絡サブルーチン2に渡る
が、この度は中断点11の削除により新しいリカバリ用
プロセス“4”を取ることができる。中断点制御テーブ
ルの内容は図6(h)のようになり、ボタン14は緑色
に点灯する。When the user presses the progress instruction button 18, the COMM exits the waiting state of the block 36 in FIG. 3, and the CALL of the application 3 is started from the block 37.
Return immediately after COMM (3). CALL COMM
At (4), control again passes to the interactive communication subroutine 2, but this time, a new recovery process "4" can be taken by deleting the interruption point 11. The contents of the interruption point control table are as shown in FIG. 6 (h), and the button 14 lights up in green.
【0023】このようにリカバリプロセスの取得状態を
ボタン色で表示することにより、利用者は対話実行の進
行に合わせて、有効な中断点を動的に設定・解除して行
くことができる。In this way, by displaying the acquisition state of the recovery process in the button color, the user can dynamically set / cancel the effective break point according to the progress of the interactive execution.
【0024】本実施例では、ボタンの色に地色、黄、緑
を用いたが、本発明は色の区別さえつけばこれにとらわ
れるものでない。またFORTRANのアプリケーショ
ンについて説明したが、本発明はプログラミング言語の
種類に制約されない。In this embodiment, the background color, yellow, and green are used as the button colors, but the present invention is not limited to these as long as the colors are distinguished. Also, while FORTRAN applications have been described, the present invention is not limited by the type of programming language.
【0025】[0025]
【発明の効果】本発明によれば、高速の復帰・再実行を
保証しながら、計算機のリソース制約とプログラムの性
質に合わせた実行中断点の設定・解除が出来るようにな
り、必要最小限の中断点を用意して対話実行を進めるこ
とが出来る。According to the present invention, it becomes possible to set / cancel the execution interruption point according to the resource constraint of the computer and the nature of the program while guaranteeing the high speed restoration / re-execution, and the minimum necessary You can prepare a break point and proceed with interactive execution.
【図1】対話的実行システムの全体構成図。FIG. 1 is an overall configuration diagram of an interactive execution system.
【図2】中断点制御テーブルの構成例を示す図。FIG. 2 is a diagram showing a configuration example of an interruption point control table.
【図3】対話連絡サブルーチン(COMM)の動作を示
すフローチャート。FIG. 3 is a flowchart showing the operation of a dialogue communication subroutine (COMM).
【図4】対話制御プログラムの動作を示すフローチャー
ト。FIG. 4 is a flowchart showing the operation of a dialogue control program.
【図5】図4に続く動作を示すフローチャート。FIG. 5 is a flowchart showing an operation following FIG.
【図6】対話実行に即した中断点制御テーブルの内容の
変化を示す図。FIG. 6 is a diagram showing changes in the contents of a breakpoint control table in accordance with interactive execution.
1…対話制御プログラム、2…対話連絡サブルーチン
(COMM)、3…FORTRANアプリケーション、
4…プロセス間通信路、{11,12,13,14}:
中断点ボタン、15:進行インディケータフィールド、
16:ソースフィールド、17:復帰指示ボタン、1
8:進行指示ボタン、19:終了指示ボタン、20:中
断点番号フィールド、21:指定フラグフィールド、2
2:リカバリ用プロセス番号フィールド、23:ボタン
色コードフィールド、{30,31,32,33,3
4,35,36,37,321,322,323}:対
話連絡サブルーチンの動作部分、{40,41,42,
43,44,45,46,47,48,49,50,4
31,432,433,434,435,436,43
7,461,462,463,464,491,49
2,493,494,4631,4632}:対話制御
プログラムの動作部分。1 ... Dialogue control program, 2 ... Dialogue communication subroutine (COMM), 3 ... FORTRAN application,
4 ... Interprocess communication path, {11, 12, 13, 14}:
Breakpoint button, 15: progress indicator field,
16: Source field, 17: Return instruction button, 1
8: progress instruction button, 19: end instruction button, 20: interruption point number field, 21: designation flag field, 2
2: recovery process number field, 23: button color code field, {30, 31, 32, 33, 3
4, 35, 36, 37, 321, 322, 323}: operation part of dialogue contact subroutine, {40, 41, 42,
43,44,45,46,47,48,49,50,4
31,432,433,434,435,436,43
7,461,462,463,464,491,49
2,493,494,4631,4632}: Operation part of the dialogue control program.
Claims (1)
録済みの中断点への復帰が可能か否かを、中断点を示す
対話画面上のボタンの色で区別することを特徴とする中
断点表示方法。1. A method for interactively executing a program, wherein whether or not it is possible to return to a registered break point is distinguished by a color of a button on a dialog screen indicating the break point. Point display method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8002868A JPH09190363A (en) | 1996-01-11 | 1996-01-11 | Breakpoint display method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8002868A JPH09190363A (en) | 1996-01-11 | 1996-01-11 | Breakpoint display method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH09190363A true JPH09190363A (en) | 1997-07-22 |
Family
ID=11541347
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8002868A Pending JPH09190363A (en) | 1996-01-11 | 1996-01-11 | Breakpoint display method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH09190363A (en) |
-
1996
- 1996-01-11 JP JP8002868A patent/JPH09190363A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH05204859A (en) | Command storing system for os | |
| WO1994028483A1 (en) | Automatic switching between graphic user interface control and command line control | |
| JPH09190363A (en) | Breakpoint display method | |
| JPH05158672A (en) | Program start selection system using menu | |
| JP2001331261A (en) | Data input control method and storage medium with program related with the same method stored | |
| JP3143330B2 (en) | Programmable controller | |
| US5850510A (en) | Interpreter language processing device | |
| JP2001318796A (en) | Program execution control method using internal and external event driven system, recording medium and program preparation support system | |
| JP3182430B2 (en) | Man-machine interface device | |
| JP3075359B2 (en) | Program debugging start processing method | |
| JPH05108408A (en) | Breakpoint setting control method | |
| JP2509936B2 (en) | Output control device | |
| JPH05113817A (en) | Numerical controller | |
| JPH09223113A (en) | Information processing system | |
| JPH01229356A (en) | Message display processing system | |
| JPH01147639A (en) | Multi-programming debug device | |
| JPH06119149A (en) | Program start system | |
| JPH0628026B2 (en) | Input management method in multi-window | |
| JPH0546408A (en) | System for forcibly terminating designated program | |
| JPS6288053A (en) | character input device | |
| JPH0830422A (en) | Information processor and command resetting method for shortcut menu | |
| JPH0589049A (en) | Command executing device | |
| JPH0635648A (en) | Computer device | |
| JPH05173805A (en) | Event flag display system | |
| JPS6172339A (en) | Control system for execution and display of program |