JPH0327451A - Real time operating system - Google Patents

Real time operating system

Info

Publication number
JPH0327451A
JPH0327451A JP1161629A JP16162989A JPH0327451A JP H0327451 A JPH0327451 A JP H0327451A JP 1161629 A JP1161629 A JP 1161629A JP 16162989 A JP16162989 A JP 16162989A JP H0327451 A JPH0327451 A JP H0327451A
Authority
JP
Japan
Prior art keywords
task
debugger
control
application
real
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1161629A
Other languages
Japanese (ja)
Inventor
Keiichiro Kuwatsuru
桑鶴 敬一郎
Atsushi Sugano
淳 菅野
Toshihiko Sone
俊彦 曽根
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1161629A priority Critical patent/JPH0327451A/en
Publication of JPH0327451A publication Critical patent/JPH0327451A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To debug the original motion of a task by making the control of a debugger task to be independent of multi-task control by means of the priority relation of a general application task. CONSTITUTION:When a real time operating system (OS) 1 receives a system call for starting the debugger task 7, the execution environment of the application task 8 is saved in a recording area which an executing pointer 20 designates, then, a request discrimination part 3 inputs it to a debugger task driving part 4. In the debugger task driving part 4, a debugger executing pointer 40 is acquired in spite of priority, and execution environment is restored from task control block (TCB) 41 of the debugger task 7 and control is shifted to the debugger task 7. Thus, control is shifted to the debugger task without conditions. Thus, the motion of the application task is prevented from stopping since the scheduling of the application task is independently continued via the request discrimination part 3 even while executing the debugger task.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、リアルタイムオペレーティングシステム(O
S)下のデバッガ処理とタスク制御を分離するリアルタ
イムOSに関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention is applicable to real-time operating systems (O
S) This relates to a real-time OS that separates the underlying debugger processing and task control.

従来の技術 従来より、リアルタイムOSが管理するタスク群はそれ
ぞれ優先度関係に基づいて処理を実行していくものであ
った。これらのタスク群は作成初期段階では誤動作が多
く、この段階で誤動作原因をリアルタイムOSの動作中
に調べるプログラムをデバノガプログラムという。
BACKGROUND OF THE INVENTION Conventionally, tasks managed by a real-time OS have been executed based on priority relationships. These task groups often malfunction in the initial stage of creation, and a program that investigates the cause of malfunctions at this stage while the real-time OS is running is called a devanoga program.

2 八−7 デバッガプログラムは、リアルタイムOSにより制御で
きなければならない。そのためデバッガプログラムはハ
ンドラでなくタスクとして作成し登録するのが一般的で
ある。
2 8-7 The debugger program must be controllable by the real-time OS. Therefore, debugger programs are generally created and registered as tasks rather than handlers.

発明が解決しようとする課題 しかし、従来の方法は、デバッグ対象であるタスク群の
1つにデバッガタスク自身も含まれることになり、タス
クの本来の動きが完全にはデバソグできないという課題
があった。
Problems to be Solved by the Invention However, in the conventional method, the debugger task itself was included in the group of tasks to be debugged, and there was a problem that the original movement of the task could not be completely debugged. .

そこで、本発明はタスク本来の動きをデバソグできるよ
うにすることを目的とする。
Therefore, it is an object of the present invention to enable debasogging of the original movement of a task.

課題を解決するための手段 上記目的を達成するため、デバッガプログラムをリアル
タイムOS下のタスク状態遷移規則とは独立した規則で
遷移するタスクとし、リアルタイム核にそのタスクを駆
動する部分を備えたものである。
Means for solving the problem In order to achieve the above purpose, the debugger program is a task that transitions according to rules independent of the task state transition rules under the real-time OS, and the real-time core is equipped with a part that drives the task. be.

作用 本発明は上記構戒において、リアルタイムOSはアプリ
ケーションタスク(つまり、デバノガタ3 べ−/ スク以、外のタスク)あるいは割込みハンドラからデバ
ッガタスク起動の要求を受けると、その要求を解釈し、
アプリケーションタスクのスケジづーリングは行なわず
に無条件にデバソガタスク駆動部によりデバッガタスク
の実行に制御を移すものである。
Effect of the present invention In the above-mentioned structure, when the real-time OS receives a request to start a debugger task from an application task (that is, a task other than Debanogata 3 Base/Screen) or an interrupt handler, it interprets the request,
The debugger task driver unconditionally transfers control to the execution of the debugger task without scheduling the application task.

実施例 以下、図を参照しながら本発明の一実施例につSのブロ
ック図である。図において1はタスクを管理するリアル
タイムOS、3はタスクからのシステムコール(要求)
の種類を判別する要求判別部、4はデバッガタスクを起
動あるいは停止させるためのデバッガタスク駆動部、6
は、タスクの実行環境を回復する実行環境回復部、8は
タスク起動要求を発′行するアプリケーションタスク、
10は起動されるアプリケーションタスク、9はキー人
力などにより起動要求を発行する割込み処理ハンドラ、
7はアプリケーション側から起動要求を受けて動くデバ
ッガタスク、20は実行中のアプリケーションタスクを
指すポインタ、40は実行中のデバッガタスクを指すポ
インタである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, referring to the drawings, there will be shown a block diagram of an S according to an embodiment of the present invention. In the figure, 1 is the real-time OS that manages tasks, and 3 is the system call (request) from the task.
4 is a debugger task driving unit for starting or stopping the debugger task;
8 is an execution environment recovery unit that recovers the task execution environment; 8 is an application task that issues a task startup request;
10 is an application task to be started, 9 is an interrupt processing handler that issues a start request by key human power, etc.;
Reference numeral 7 indicates a debugger task that operates upon receiving a startup request from the application side, 20 a pointer pointing to the application task being executed, and 40 a pointer pointing to the debugger task being executed.

上記構成において、以下その動作を説明する。The operation of the above configuration will be explained below.

図は、アプリケーションタスク8あるいは割込み処理ハ
ンドラ9からデバソガタスク7を起動する時のリアルタ
イムOSの動きを示すものであり、リアルタイムOSI
はアプリケーションタスク8あるいは割込みハンドラ9
からアプリケーションタスク10起動のシステムコール
(=要求)を受けると、実行中ポインタ20の指すアプ
リケーションタスク8のタスクコントロールブロック(
TCB)21にアプリケーションタスク8の実行環境を
退避し、スケジ,−y′5によりタスクの優先度に従い
制御をアプリケーションタスク10に切換える。これは
、一般のリアルタイムOSの処理の流れである。
The figure shows the behavior of the real-time OS when starting the devasoga task 7 from the application task 8 or the interrupt processing handler 9.
is application task 8 or interrupt handler 9
When a system call (=request) is received to start application task 10 from
The execution environment of the application task 8 is saved in the TCB) 21, and control is switched to the application task 10 according to the priority of the task using the schedule -y'5. This is the processing flow of a general real-time OS.

一方、リアルタイムOSIがアプリケーションタスク8
あるいは割込みハンドラ9からデバッガタスク7起動の
システムコールな受けると、実行中ポインタ20の指す
記録領域にアプリケーション5 ′\一/ タスク8の実行環境を退避するが、その後要求判別部3
により、デバッガタスク駆動部4にはいる。
On the other hand, real-time OSI is application task 8
Alternatively, when a system call to start the debugger task 7 is received from the interrupt handler 9, the execution environment of the application 5'\1/ task 8 is saved in the recording area pointed to by the running pointer 20, but after that, the request determination unit 3
As a result, the debugger task driver 4 is entered.

デバッガタスク駆動部4において、優先度とは無関係に
デバソガ実行中ポインタ40を取得し、実行環境部6で
デバクガタスク7のTCB41から実行環境を回復して
、制御をデバッガタスク7に移す。
A debugger task driving unit 4 acquires a debugger execution pointer 40 regardless of the priority, an execution environment unit 6 recovers the execution environment from the TCB 41 of the debugger task 7, and transfers control to the debugger task 7.

このような処理により、アプリケーションタスク群がど
のような制御処理中であっても、デバッガタスク起動の
要求(システムコール)があれば無条件に(タスクの優
先度には関係なく)デバッガタスクに制御が移る。また
、デバッガタスク実行中でもアプリケーションタスクの
スケジューリングは、要求判別部3経由で独立に継続さ
れているので、アプリケーションタスクの動きを停止さ
せることはない。
Through this process, no matter what kind of control processing is being performed on the application task group, if there is a request (system call) to start the debugger task, control will be given to the debugger task unconditionally (regardless of the priority of the task). will move. Further, even during execution of the debugger task, the scheduling of the application task is continued independently via the request determination unit 3, so the operation of the application task is not stopped.

発明の効果 以上のように本発明の効果としては、デバッガタスクの
制御を一般のアプリケーションタスクの優先度関係によ
るマルチタスク制御から独立させることができ、リアル
タイムOSとしての効果は6 ・・一ノ 大きい。
Effects of the Invention As described above, the effect of the present invention is that the control of debugger tasks can be made independent of multitask control based on the priority relationship of general application tasks, and the effect as a real-time OS is 6... .

OSのブロック図である。FIG. 2 is a block diagram of an OS.

Claims (1)

【特許請求の範囲】[Claims] 少なくともデバッガタスクを備え、リアルタイム核の中
にデバッガタスク駆動部と駆動要求判別部を設けたこと
を特徴とするリアルタイムオペレーティングシステム。
A real-time operating system comprising at least a debugger task, and a debugger task drive section and a drive request determination section provided in a real-time core.
JP1161629A 1989-06-23 1989-06-23 Real time operating system Pending JPH0327451A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1161629A JPH0327451A (en) 1989-06-23 1989-06-23 Real time operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1161629A JPH0327451A (en) 1989-06-23 1989-06-23 Real time operating system

Publications (1)

Publication Number Publication Date
JPH0327451A true JPH0327451A (en) 1991-02-05

Family

ID=15738819

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1161629A Pending JPH0327451A (en) 1989-06-23 1989-06-23 Real time operating system

Country Status (1)

Country Link
JP (1) JPH0327451A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05165671A (en) * 1991-12-17 1993-07-02 Mitsubishi Electric Corp Program debugging device
JPH07160530A (en) * 1993-12-03 1995-06-23 Nec Corp Debugging system
EP0709777A2 (en) 1994-09-26 1996-05-01 Nec Corporation Method of and apparatus for debugging multitask programs

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05165671A (en) * 1991-12-17 1993-07-02 Mitsubishi Electric Corp Program debugging device
JPH07160530A (en) * 1993-12-03 1995-06-23 Nec Corp Debugging system
EP0709777A2 (en) 1994-09-26 1996-05-01 Nec Corporation Method of and apparatus for debugging multitask programs
EP0709777A3 (en) * 1994-09-26 1996-10-02 Nec Corp Method of and apparatus for debugging multitask programs
US5805892A (en) * 1994-09-26 1998-09-08 Nec Corporation Method of and apparatus for debugging multitask programs

Similar Documents

Publication Publication Date Title
JP2692609B2 (en) Multitask program debugging method and apparatus
JP3339482B2 (en) Distributed debugging apparatus, debugging method, and recording medium recording control program
US6324684B1 (en) Processor having real-time execution control for debug functions without a debug monitor
US20010034751A1 (en) Real-time OS simulator
JP2002014841A (en) Debugger kernel system
JPS62184544A (en) Virtual computer system
JP2972640B2 (en) Window system object program preloading method and recording medium recording program for the method
JPH0327451A (en) Real time operating system
US6002870A (en) Method and apparatus for non-damaging process debugging via an agent thread
JPS62139020A (en) Rising system for computer system
JPH06149615A (en) Event recording system
JPH0328933A (en) Task control method
JPH10293690A (en) Object program preload method for window system and recording medium recorded with program for the same
JPH03122726A (en) Operation interruption/restart system for computer system
JPH0283633A (en) Controller for utility program
JPS6029844A (en) Switching system for program mode
JPH0758470B2 (en) Virtual machine interrupt control method
JP2545763B2 (en) Restart method of batch processing in hot standby system
JPH06236349A (en) Command script interpretation processor
JPH02202635A (en) Task control method
JPH03129530A (en) Program control system
JPH03103926A (en) Interface method for prolog interpreter compiler
JPS6116344A (en) Conversational debugging processing system
JPS63158632A (en) System program execution system in interpreter system
JP2000276372A (en) Processor