JPH06103105A - Simultaneous debug processor for inter-task shared routine - Google Patents
Simultaneous debug processor for inter-task shared routineInfo
- Publication number
- JPH06103105A JPH06103105A JP4249654A JP24965492A JPH06103105A JP H06103105 A JPH06103105 A JP H06103105A JP 4249654 A JP4249654 A JP 4249654A JP 24965492 A JP24965492 A JP 24965492A JP H06103105 A JPH06103105 A JP H06103105A
- Authority
- JP
- Japan
- Prior art keywords
- task
- inter
- debug
- simultaneous
- interrupt
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、タスク間共有ルーチン
同時デバッグ処理装置に関し、特に、オンラインプログ
ラム等で各端末のトランザグションがそれぞれ1タスク
に割り当てられて、個別の独立した処理を実行する実行
環境におけるタスク間共有ルーチン同時デバッグ処理装
置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an inter-task shared routine simultaneous debug processing device, and in particular, a transaction of each terminal is assigned to one task by an online program or the like to execute individual independent processing. The present invention relates to an inter-task shared routine simultaneous debug processing device in an execution environment.
【0002】[0002]
【従来の技術】従来のタスク間共有ルーチン同時デバッ
グ処理装置は、タスク間共有ルーチンを利用したプログ
ラムの使用時に、1端末すなわち1タスクでデバッグを
開始し、プログラム実行の停止等を行うと、他タスクも
同様に停止してしまうために、デバッグが1端末に限ら
れ、他の端末では、デバッグの終了まで待たねばならな
い。2. Description of the Related Art A conventional inter-task shared routine simultaneous debug processing device, when using a program utilizing an inter-task shared routine, starts debugging with one terminal, that is, one task, and stops the execution of the program. Since the task also stops, the debugging is limited to one terminal, and the other terminals have to wait until the end of debugging.
【0003】[0003]
【発明が解決しようとする課題】上述した従来のタスク
間共有ルーチン同時デバッグ処理装置では、タスク間で
共有するプログラムを複数のタスクで同時にデバッグす
る場合に、各タスクから要求される停止点の設定がラン
ダムに発生し、1つのプログラム内に複数のタスクの停
止点の設定のための割り込み命令が書き込まれるので、
各タスクでの停止点の設定のための割り込み命令の書き
込み動作及びもとの命令の退避並びに回復動作に際し
て、複数のタスクからの同時書き込みを回避するための
排他制御が必要となっている。In the conventional inter-task sharing routine simultaneous debug processing device described above, when a program shared between tasks is simultaneously debugged by a plurality of tasks, a stop point required by each task is set. Occurs randomly, and interrupt instructions for setting the stop points of multiple tasks are written in one program.
Exclusive control for avoiding simultaneous writing from a plurality of tasks is required at the time of writing an interrupt instruction for setting a stop point in each task and saving and restoring the original instruction.
【0004】また、従来のタスク間共有ルーチン同時デ
バッグ処理装置では、1つのプログラム中に複数のタス
クの割り込み命令が書き込まれるために、割り込みの発
生時に、自タスク以外のものを無視し、プログラムを停
止せずに実行を継続しなければならないので、自タスク
向け停止点の割り込みの識別が必要となっている。Further, in the conventional inter-task shared routine simultaneous debug processing device, since interrupt instructions of a plurality of tasks are written in one program, when an interrupt occurs, the non-self task is ignored and the program is executed. Since the execution must be continued without stopping, it is necessary to identify the interrupt at the stop point for the invoking task.
【0005】[0005]
【課題を解決するための手段】第1の発明のタスク間共
有ルーチン同時デバッグ処理装置は、タスク間共有ルー
チンを用いて複数のタスクで同時にデバッグを実行する
場合に、各タスク毎に独立したデバッグ環境を与えるた
めのタスク間共有ルーチン同時デバッグ処理装置におい
て、プログラムデバッグ時に、停止点設定のための割り
込み命令書き込み動作及びもとの命令の退避並びに回復
動作に際して、マルチタスクによる同時書き込みの回避
を行う排他制御部を有して構成されている。According to a first aspect of the present invention, there is provided an inter-task shared routine simultaneous debug processing device, wherein when a plurality of tasks are simultaneously debugged using an inter-task shared routine, independent debugging is performed for each task. Simultaneous debugging routine between tasks for providing environment avoids simultaneous writing by multitasking in interrupt instruction writing operation for setting breakpoint and original instruction saving and restoring operation in program debugging It has an exclusive control unit.
【0006】また、第2の発明のタスク間共有ルーチン
同時デバッグ処理装置は、第1の発明のタスク間共有ル
ーチン同時デバッグ処理装置において、割り込み命令書
き込み後の割り込み事象発生時に、自タスク向けの割り
込みを識別して、停止または続行の判定制御を行う停止
制御部を有して構成されている。Further, the inter-task shared routine simultaneous debug processing apparatus of the second invention is the inter-task shared routine simultaneous debug processing apparatus of the first invention, in which an interrupt for its own task occurs when an interrupt event occurs after writing an interrupt instruction. And a stop control unit for performing stop / continuation determination control.
【0007】[0007]
【実施例】次に、本発明の実施例について図面を参照し
て説明する。Embodiments of the present invention will now be described with reference to the drawings.
【0008】図1は、割り込み命令書き込み動作のため
の排他制御部を有する第1の発明の一実施例を示すブロ
ック図である。また、図2は、割り込み事象発生時の停
止制御部を有する第2の発明の一実施例を示すブロック
図である。FIG. 1 is a block diagram showing an embodiment of the first invention having an exclusive control unit for writing an interrupt instruction. Further, FIG. 2 is a block diagram showing an embodiment of the second invention having a stop control unit when an interrupt event occurs.
【0009】図1に示すように、割り込み命令書き込み
動作は、次に示すように行われる。As shown in FIG. 1, the interrupt instruction write operation is performed as follows.
【0010】タスク1が30行目に停止点の設定を要
求すると、排他制御部3は、他タスク2からの書き込み
動作を待たせるためにプログラムをロックする。When the task 1 requests the setting of the stop point on the 30th line, the exclusive control unit 3 locks the program in order to make the writing operation from the other task 2 wait.
【0011】割り込み発生命令を30行目に書き込む
と、同時に元の実行命令を命令退避エリア6に保存し、
タスク名等の識別情報も記録する。When the interrupt generation instruction is written in the 30th line, the original execution instruction is simultaneously saved in the instruction save area 6,
Also record identification information such as the task name.
【0012】タスク2から90行目に停止点の設定要
求がされると、排他制御部3は、プログラムがすでにロ
ックされているので待ちに入る。タスク1での書き込み
動作が完了すると、排他制御部3は、プログラムをアン
ロックし、他のタスク2の書き込み待ちを解除する。When a stop point setting request is issued from the task 2 to the 90th line, the exclusive control unit 3 waits because the program is already locked. When the write operation in task 1 is completed, the exclusive control unit 3 unlocks the program and releases the write wait of another task 2.
【0013】タスク2は、待ち状態から解除され、タ
スク1と同様にして、90行目に割り込み命令を書き込
み、命令退避エリア6に所定の情報を記録する。The task 2 is released from the waiting state, the interrupt instruction is written on the 90th line, and predetermined information is recorded in the instruction save area 6 in the same manner as the task 1.
【0014】図2に示すように、割り込み発生時の動作
は、以下に示すように行われる。As shown in FIG. 2, the operation when an interrupt occurs is performed as follows.
【0015】タスク1でプログラムの30行目を実行
すると、割り込みが発生し、この事象は、停止制御部4
で認識される。When the 30th line of the program is executed in task 1, an interrupt occurs, and this event is caused by the stop control unit 4
Recognized in.
【0016】停止制御部4は、割り込み事象の発生し
た行番号から命令退避エリア6を参照し、タスク1に関
する割り込みであることを認識する。さらに、現在実行
中のタスク名がタスク1であることから、自タスク向け
の割り込みであると判断し、プログラムを停止する。プ
ログラム停止後に、継続の実行を要求すると、命令退避
エリア6のもとの命令を実行し、プログラムを続行す
る。The stop control unit 4 refers to the instruction save area 6 from the line number at which the interrupt event occurred, and recognizes that the interrupt is related to task 1. Furthermore, since the name of the task currently being executed is task 1, it is determined that the interrupt is for its own task, and the program is stopped. When the continuation is requested after the program is stopped, the original instruction in the instruction save area 6 is executed and the program is continued.
【0017】続いて、タスク1でプログラムの実行が
継続されると、90行目で割り込み事象が発生し、停止
制御部4でこの事象が認識される。Then, when the program continues to be executed in task 1, an interrupt event occurs at the 90th line and the stop control unit 4 recognizes this event.
【0018】停止制御部4は、割り込み事象がどのタ
スクで発生したかを判断し、タスク2で発生した事象で
あり、命令退避エリア6の90行目のタスク名と、自タ
スク名(タスク1)が異なることから、プログラムを停
止せずに、元の命令を継続して実行する。The stop control unit 4 judges in which task the interrupt event occurred, and the event occurred in the task 2. The task name in the 90th line of the instruction save area 6 and the own task name (task 1 ) Are different, continue the original instruction without stopping the program.
【0019】タスク2の実行においても、割り込み事
象の発生時に、停止制御部4が動作し、他タスクの影響
を受けることなく、並行処理で独立したデバッグ環境を
実現する。Also in the execution of task 2, the stop control unit 4 operates when an interrupt event occurs, and an independent debug environment is realized by parallel processing without being affected by other tasks.
【0020】[0020]
【発明の効果】以上説明したように、本発明のタスク間
共有ルーチン同時デバッグ処理装置では、オンラインプ
ログラム等に対して端末毎に1タスクが割り当てられ、
互いに独立した処理として実行されるので、各端末に独
立したデバッグ環境を提供し、複数の端末での同時のデ
バッグを可能にしたことにより、メモリの使用効率の向
上およびデバッグ時の生産性の大幅な向上等の効果があ
る。As described above, in the inter-task shared routine simultaneous debug processing apparatus of the present invention, one task is assigned to each terminal for an online program,
Since they are executed as independent processes, each terminal is provided with an independent debug environment, enabling simultaneous debugging on multiple terminals, which improves memory usage efficiency and significantly improves productivity during debugging. There is an effect such as various improvements.
【図1】第1の発明の一実施例を示すブロック図であ
る。FIG. 1 is a block diagram showing an embodiment of a first invention.
【図2】第2の発明の一実施例を示すブロック図であ
る。FIG. 2 is a block diagram showing an embodiment of the second invention.
1,2 タスク 3 排他制御部 4 停止制御部 5 タスク間共有ルーチン 6 命令退避エリア 1, 2 tasks 3 exclusive control unit 4 stop control unit 5 shared task routine 6 instruction save area
Claims (2)
スクで同時にデバッグを実行する場合に、各タスク毎に
独立したデバッグ環境を与えるためのタスク間共有ルー
チン同時デバッグ処理装置において、 プログラムデバッグ時に、停止点設定のための割り込み
命令書き込み動作及びもとの命令の退避並びに回復動作
に際して、マルチタスクによる同時書き込みの回避を行
う排他制御部を有することを特徴とするタスク間共有ル
ーチン同時デバッグ処理装置。1. An inter-task shared routine simultaneous debug processor for providing an independent debug environment for each task when a plurality of tasks are simultaneously debugged by using the inter-task shared routine. An inter-task shared routine simultaneous debug processing apparatus having an exclusive control unit for avoiding simultaneous writing by multitasking at the time of writing an interrupt instruction for setting a stop point and saving and restoring the original instruction.
発生時に、自タスク向けの割り込みを識別して、停止ま
たは続行の判定制御を行う停止制御部を有することを特
徴とする請求項1記載のタスク間共有ルーチン同時デバ
ッグ処理装置。2. The inter-task task according to claim 1, further comprising a stop control unit for identifying an interrupt for an own task and performing stop / continuation determination control when an interrupt event occurs after writing an interrupt instruction. Shared routine simultaneous debug processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4249654A JPH06103105A (en) | 1992-09-18 | 1992-09-18 | Simultaneous debug processor for inter-task shared routine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4249654A JPH06103105A (en) | 1992-09-18 | 1992-09-18 | Simultaneous debug processor for inter-task shared routine |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH06103105A true JPH06103105A (en) | 1994-04-15 |
Family
ID=17196238
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP4249654A Withdrawn JPH06103105A (en) | 1992-09-18 | 1992-09-18 | Simultaneous debug processor for inter-task shared routine |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH06103105A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9292395B2 (en) | 2010-12-07 | 2016-03-22 | Nec Corporation | Debug stub server, debug method, and program |
-
1992
- 1992-09-18 JP JP4249654A patent/JPH06103105A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9292395B2 (en) | 2010-12-07 | 2016-03-22 | Nec Corporation | Debug stub server, debug method, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7992042B2 (en) | Debug support device, and program for directing computer to perform debugging method | |
JPH02171934A (en) | Virtual machine system | |
JPH06103105A (en) | Simultaneous debug processor for inter-task shared routine | |
JPH0433130A (en) | Multi-chip constituting method | |
JP2954006B2 (en) | Emulation device and emulation method | |
JP2550708B2 (en) | Debug method | |
JP3102381B2 (en) | Task debugging device, task debugging method, and recording medium therefor | |
JPS62290942A (en) | Debugger starting system | |
JP3087481B2 (en) | In-circuit emulator | |
JPH03158936A (en) | Testing method for program | |
JPS61288232A (en) | Output instruction control system | |
JP2626119B2 (en) | Microcomputer development support equipment | |
JP3159155B2 (en) | Method and apparatus for debugging program | |
CN114661543A (en) | Method and device for eliminating interrupt false triggering of multi-core DSP | |
JPH02110744A (en) | Information processor | |
JPH0232651B2 (en) | ||
JPS61282937A (en) | Information processing device | |
JPH01147640A (en) | Multi-programming debug device | |
JPH04199336A (en) | Microcomputer | |
JPH04264632A (en) | Execution tracing system for parallel arithmetic processing unit | |
JPH04302346A (en) | Multiprocessor system | |
JPH03288941A (en) | Debugging device | |
JPH0652482B2 (en) | Sequence controller | |
JPH05151021A (en) | Debugging system using debugger with built-in resident area | |
JPH0226246B2 (en) |
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: 19991130 |