JPH04175835A - Debugging system for operating system - Google Patents

Debugging system for operating system

Info

Publication number
JPH04175835A
JPH04175835A JP2298345A JP29834590A JPH04175835A JP H04175835 A JPH04175835 A JP H04175835A JP 2298345 A JP2298345 A JP 2298345A JP 29834590 A JP29834590 A JP 29834590A JP H04175835 A JPH04175835 A JP H04175835A
Authority
JP
Japan
Prior art keywords
instruction
program
operating system
debugged
processing
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
JP2298345A
Other languages
Japanese (ja)
Inventor
Takeaki Ito
伊藤 武明
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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Solution Innovators 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 NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP2298345A priority Critical patent/JPH04175835A/en
Publication of JPH04175835A publication Critical patent/JPH04175835A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To execute a debugging operation system as a user program by preparing an instruction execution detecting-time processing program and executing a program which rewrites SVC instruction into an instruction which hardware treats as an instruction exception so as to debug it. CONSTITUTION:A supervisor call(SVC) instruction rewriting processing part 1-3-1-3 searches the SVC instruction of the debugging program on a memory and rewrites it into the instruction which generates the instruction exception. The instruction exception detecting-time processing program 1-3-2-1 is executed through the instruction exception detecting-time processing program registration processing part 1-2-1 of the operating system 1-2 when hardware detects the instruction exception in an instruction exception detecting processing part 1-1-1 or in an instruction execution protection processing part 1-1-2 at the time of the action of the debugging program on the memory. Thus, the debugging operating system is executed as a user program.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は計算機システムにおけるオペレーティングシス
テム、のデバグ方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a debugging method for an operating system in a computer system.

〔従来の技術〕[Conventional technology]

従来のオペレーティングシステムのデバク方式は、スー
パーバイザコール(以下SVCと記す)命令を実行する
と、本当のオペレーティングシステムのSVCプログラ
ムが動作したりオペレーティングシステムでしか実行で
きないハードウェア命令を発行するため、オペし−ディ
ングシステムに悪影響を与えるのでオペレーティングシ
ステムの利用者プログラムとして動作させるためには、
デバグするオペレーティングシステムプログラムのSV
C命令やオペレーティングシステムでしか実行出来ない
命令を他の命令に書き換えて実行する必要がある。また
デバグすオペレーティングシステムが動作するオペレー
ティングシステムを変更しデバグするオペレーティング
システム専用のオペレーティングシステムを作成してオ
ペレーティングシステムのデバグを行っていた。
In conventional operating system debugging methods, when a supervisor call (hereinafter referred to as SVC) instruction is executed, the SVC program of the real operating system runs or a hardware instruction that can only be executed by the operating system is issued. In order to run as a user program of the operating system, it is necessary to
SV of the operating system program to be debugged
It is necessary to rewrite C instructions and instructions that can only be executed by the operating system to other instructions and execute them. In addition, debugging of the operating system was carried out by changing the operating system on which the debugging operating system runs and creating an operating system specifically for the debugging operating system.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のオペレーティングシステムのデバグ方式
のうち、テバグづるオペレーティングシステムのSVC
命令やオペし一ティングシステムでし、か実行出来ない
命令を他の命令に書き換える方式では、SVC命令また
はオペレーティングシステムでしか実行できない命令領
域に書き換える命令か入らなかったりしシスタ条併が実
際のオペレーティングジステlいとして動刊する時と異
な−)でしまうため、ソースプログラムがら変更しなく
てはならないので複数のプ17グラムフアイルが同時に
存在してしまったり何度も:lンパイルしなくてはなら
ないとの欠点があり、またデバグするオ”ベレーティン
グシステムが動作するオペし−ディングシステムの側を
変更する方式では、システノ、ジェネレーションをしな
くてはならず重体試験などのオペレーティングシステム
の一部を詳細にデバグするために大規模な準備が必要と
なる欠点があった、 さらに、単にSVC命令を命令例外になる命令に書き換
えオペレーティングシステムでしか実行出来ない命令を
そのまま実行させ命令例外検出処理機ログラムで命令代
行処理を行うたけてはオペレーティングシステムが命令
例外の多重度を監視しているので、デバグするオペレー
ティングシステムを利用者プログラムとして実行するこ
とはできない欠点があった。
Among the conventional operating system debugging methods mentioned above, SVC of Tebugzuru operating system
In the method of rewriting instructions that cannot be executed by the operating system to other instructions, the instructions to be rewritten may not be included in the SVC instruction or instruction area that can only be executed by the operating system, and the system conditions may not be able to be executed by the actual operating system. This is different from when you move a program because of a problem (-), so you have to change the source program, so multiple program files exist at the same time, and you have to compile it many times. In addition, debugging the operating system that operates on the operating system side has the disadvantage that the system must be generated, and some parts of the operating system such as critical testing must be done. In addition, the instruction exception detection processor simply rewrites the SVC instruction to an instruction that becomes an instruction exception and executes the instruction that can only be executed by the operating system. When a program performs instruction proxy processing, the operating system monitors the multiplicity of instruction exceptions, which has the disadvantage that the operating system being debugged cannot be executed as a user program.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のデバグ方式は、命令例外検出処理機能と命令実
行保護処理機能とを有するハードウェアと、命令例外検
出時処理プログラム登録処理機能と命令例外検出時制御
移行処理機能と命令例外検出時処理プログラムよりの復
帰処理機能特に任意の箇所に命令例外検出時処理プログ
ラムよりの復帰ができる機能とを有するオペレーティン
グシステムとを有する計算機システムにおけるオペレー
ティングシステムのデバグ方式において、デバグするプ
ログラムを指定する制御文を解釈してデバグするプログ
ラムファイルを選択してメモリ上のデバグするプログラ
ムおよびアドレス情報テーブルをメモリ作業域上に作成
するデバグするプログラムのメモリロード処理部と、S
 V C番号とSVCプログラムの対応をとる制御文を
解釈しアI・レス情報テーブルを参照しながらSVC番
号どアトしス対応テーブルを作成するSVC飛び先アド
レステーブル作成部と、メモリ1二のデハグするプI7
グラムのSVC命令をサーチし命令例外を発生させる命
令に書き換えるSVC命令書換処理部と、メモリ上のデ
バグするプログラムが動作した時にハードウェアが命令
例外検出処理部または命令実行保護処理部で命令例外を
検出した時にオペレーティングシステムの命令例外検出
時処理プログラム登録処理部を介して実行される命令例
外検出処理機能7グラムとを有する。
The debugging method of the present invention includes hardware having an instruction exception detection processing function and an instruction execution protection processing function, a processing program registration processing function when an instruction exception is detected, a control transfer processing function when an instruction exception is detected, and a processing program when an instruction exception is detected. Interpreting control statements that specify a program to be debugged in a debugging method for an operating system in a computer system that has an operating system that has a return processing function, especially a function that allows a return from the processing program when an instruction exception is detected at any location. a memory load processing unit for a program to be debugged which selects a program file to be debugged and creates a program to be debugged in memory and an address information table in a memory work area;
An SVC jump destination address table creation unit that interprets control statements that correspond to V C numbers and SVC programs and creates an SVC number to address correspondence table while referring to the address information table, and a dehugging unit for memory 12. I7
The SVC instruction rewrite processing unit searches for SVC instructions in the program and rewrites them to instructions that generate instruction exceptions, and the hardware detects instruction exceptions using the instruction exception detection processing unit or instruction execution protection processing unit when the program to be debugged in memory runs. The instruction exception detection processing function 7gram is executed via the instruction exception detection processing program registration processing section of the operating system when detected.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例の構成図である。本発明では
ハードウェア1−1は命令例外検出処理部1−1−1と
命令実行保護処理部1−1〜2とを有しており、オペレ
ーティングシステム1−2は命令例外検出時処理プログ
ラム登録処理部] −2−1と命令例外検出時処理プロ
グラム移行処理部1−2−2と命令例外検出時処理プロ
グラムよりの復帰処理部1−2−3とを有していること
が荊提条件となる。
FIG. 1 is a block diagram of an embodiment of the present invention. In the present invention, the hardware 1-1 includes an instruction exception detection processing unit 1-1-1 and instruction execution protection processing units 1-1 to 2, and the operating system 1-2 registers a processing program at the time of instruction exception detection. Processing unit] -2-1, a processing program transition processing unit 1-2-2 at the time of instruction exception detection, and a return processing unit 1-2-3 from the processing program at the time of instruction exception detection. becomes.

特に、オペレーティングシステム1−2の命令例外検出
時処理プログラムよりの復帰処理部1−2−3では命令
例外発生地点以外の任意の箇所に復帰できることが可能
である必要がある。本発明のデバグプログラム1−3は
、大きく分けて初期設定処理部]−3〜1と実行処理部
1−3−2から精成されている。
In particular, the return processing unit 1-2-3 from the instruction exception detection processing program of the operating system 1-2 needs to be able to return to any location other than the instruction exception occurrence point. The debug program 1-3 of the present invention is roughly divided into initialization processing sections]-3 to 1 and execution processing section 1-3-2.

初期設定処理部1、−3−1は、デバグするプログラム
をロードするメモリロード処理部1−3−]−1とSM
C飛び先アドレステーブル作成部1、−3−1−2とS
VC命令を例外命令へと書き換えるSVC命令書換処理
部1−3−1−3と命令例外検出時処理プログラム登録
処理]−3−1−4からなる。実行待処理部1−3−2
は、命令例外検出時処理プログラム1−3−2−1で精
成されている。
The initial setting processing unit 1, -3-1 includes a memory load processing unit 1-3-]-1 that loads a program to be debugged, and an SM
C jump destination address table creation unit 1, -3-1-2 and S
It consists of an SVC instruction rewrite processing unit 1-3-1-3 that rewrites a VC instruction to an exception instruction, and an instruction exception detection processing program registration process]-3-1-4. Execution waiting processing unit 1-3-2
is refined in the instruction exception detection processing program 1-3-2-1.

第2図に初期設定処理の説明図を示す。FIG. 2 shows an explanatory diagram of the initial setting process.

初期設定処理部1−3−1のうち、デバグするブロクラ
ムのメモリロード処理部1−3−1.−1はコンソール
コマンドまたはファイル上のデバグするプログラムを指
定する制御文1.−5−]を解釈してデバグするプログ
ラムファイル1−−4を選択しメモリ作業域2−1にメ
モリ上のデバグするプログラムl−1−1をロードしな
がらアドレス情報テーブル2−1−2をメモリ作業域2
−1に作成する。次にSMC飛び先アドレステーブル作
成部1−3−1−2はコンソールコマンドまたはファイ
ル上のSVC番号とSVCプログラムの対応をとる制御
文1−5−2を解釈してアドレス情報テーブルl−1−
2を参照しながらSVC番号とアドレス対応テーブル2
−1−3をメモリ作業域2−1に作成する。
Among the initial setting processing sections 1-3-1, the memory load processing section 1-3-1 for the block to be debugged. -1 is a console command or control statement 1 that specifies the program to debug on a file. -5-], select the program file 1--4 to be debugged, load the program l-1-1 to be debugged in the memory into the memory work area 2-1, and read the address information table 2-1-2. Memory work area 2
Create at -1. Next, the SMC jump destination address table creation unit 1-3-1-2 interprets the control statement 1-5-2 that corresponds between the SVC number on the console command or file and the SVC program, and creates an address information table l-1-
SVC number and address correspondence table 2 while referring to 2.
-1-3 is created in the memory work area 2-1.

次にSVC命令の書換処理部1−3−1−3は、SVC
命令を例外命令への書き換え処理部の説明図(第3図)
で示すように、メモリ上のデバグするプロゲラb、 2
−1−1の全プログラムをサーチしてSVC命令を検出
しそのSVC命令がSVC番号とアドレス対応テーブル
2−1−3に登録されていればSVC命令をハードウェ
ア1−1が命令例外とし、て扱う命令に書き換える。第
3図では(n n ri )および(mmm)かSVC
番号とアドレス対応テーブル2〜1−3に登録されてお
り(xxx>が登録されていない例であり、SVC命令
書き換え前3−1がSVC命令書き換え後3−2のよう
に書き換えられる。ここで、XXXはハードウェアが命
令例外として扱う命令である。
Next, the SVC instruction rewrite processing unit 1-3-1-3
Explanatory diagram of the processing unit that rewrites an instruction to an exception instruction (Figure 3)
As shown in , the progera to debug on memory b, 2
- If the entire program of 1-1 is searched and an SVC instruction is detected, and the SVC instruction is registered in the SVC number and address correspondence table 2-1-3, the hardware 1-1 treats the SVC instruction as an instruction exception. Rewrite the command to handle it as follows. In Figure 3, (n n ri ) and (mmm) or SVC
In this example, 3-1 is registered in number and address correspondence tables 2 to 1-3 and is not registered (xxx>), and 3-1 before SVC instruction rewriting is rewritten as 3-2 after SVC instruction rewriting. Here, , XXX are instructions that the hardware handles as instruction exceptions.

次に命令例外検出時処理プログラム登録処理]3−1−
4は、オペレーティングシステム1−2の命令例外検出
時処理プログラム登録処理部1−2−1を利用して命令
例外検出時処理プログラム1−3−2−1をオペレーテ
ィングシステム上に登録する。
Next, instruction exception detection processing program registration processing] 3-1-
4 registers the instruction exception detection processing program 1-3-2-1 on the operating system using the instruction exception detection processing program registration processing unit 1-2-1 of the operating system 1-2.

次にSVC命令書き換え後3−2のメモリ上のデバする
プログラム2−1−1に制御を移行してメモリ上のデバ
グするプログラム2−11を動作させる。
Next, after the SVC instruction is rewritten, control is transferred to the debugging program 2-1-1 on the memory 3-2, and the debugging program 2-11 on the memory is operated.

第4図はメモリ上のデバグするプログラム2−1−1が
動作した時の説明図である。この例では、メモリ上のデ
バグするプログラムがデバグするプログラム(SMC呼
び側)4−1とデバグするプログラム(SVCプログラ
ム)4−2の両方であるが必ずしも両方ともSVC命令
書き換え後3−2である必要がなく一方をデバグプログ
ラム1−3があらかじめ準備したSVC命令書き換え後
のプログラムであってもかまわない。
FIG. 4 is an explanatory diagram when the program 2-1-1 to be debugged on the memory operates. In this example, the program to be debugged in memory is both the program to be debugged (SMC caller) 4-1 and the program to be debugged (SVC program) 4-2, but both are not necessarily 3-2 after the SVC instruction has been rewritten. It is not necessary, and one of the programs may be a program after rewriting the SVC instructions prepared in advance by the debug program 1-3.

デバグするプログラム(SMC呼び側)4−1が起動さ
れ■のXXX(nnn)命令が実行されれるとXXX 
(nnn)命令はSVC命令書換処理部1−3−1−3
で例外命令に書き換えられているのでハードウェアの命
令例外検出処理部1−1−1で命令例外と認識しオペレ
ーティングシステムの命令例外検出時制御移行処理部1
−2−2で命令例外検出時処理プログラム登録処理1−
3−1−4で命令例外検出時処理プログラム登録処理部
1−2−1を利用して登録した命令例外検出時処理プロ
グラム登録処理プログラム1−3−2−1■に制御を移
行する。
When the program to be debugged (SMC caller) 4-1 is started and the XXX (nnn) instruction in ■ is executed, XXX
(nnn) instruction is SVC instruction rewrite processing unit 1-3-1-3
Since it has been rewritten as an exception instruction, the hardware instruction exception detection processing unit 1-1-1 recognizes it as an instruction exception, and the operating system's instruction exception detection control transfer processing unit 1
- In 2-2, instruction exception detection processing program registration processing 1 -
In step 3-1-4, control is transferred to the instruction exception detection processing program registration processing program 1-3-2-1■ registered using the instruction exception detection processing program registration processing section 1-2-1.

命令例外検出時処理プログラム1−3−2−1は第5図
命令例外検出時処理プログラムのフローチャートで示す
ように、命令例外を発生させた命令がSVC命令であれ
ば■でレジスタ類を退避しておき、■でSVC飛び先ア
ドレステーブル作成部13−1−2で作成したSVC番
号とアドレス対応テーブル2−1−3を参照し5VC(
nnn)のデバグするプログラム(SVCプログラム)
4−2の先頭アドレスを得て、■でオペレーティングシ
ステムの命令例外検出時処理プログラムよりの復帰処理
部1−2−3の復帰先を■で得たアドレスとしてデバグ
するプログラム<SVCプログラム)4−2へ復帰する
As shown in the flowchart of the instruction exception detection processing program 1-3-2-1, if the instruction that caused the instruction exception is an SVC instruction, the instruction exception detection processing program 1-3-2-1 saves the registers with 5VC (
nnn) program to be debugged (SVC program)
Obtain the start address of 4-2, and use (■) to set the return destination of the return processing unit 1-2-3 from the instruction exception detection processing program of the operating system to the address obtained in (■). Program to debug (<SVC program) 4- Return to 2.

デバグするプログラム(SVCプログラム)4−2は、
そのSVC特有な処理をした後、■のSvC命令の次の
命令のアドレスを指定してハードウェアのSVCから復
帰命令が発行される。
The program to be debugged (SVC program) 4-2 is
After the SVC-specific processing is performed, a return instruction is issued from the hardware SVC by specifying the address of the next instruction after the SvC instruction (2).

■のハードウェアのSvCからの復帰命令はオペレーテ
ィングシステムでしか発行出来ない命令であるのでハー
ドウェアの命令実行保護処理部j〜1−2が動作し命令
例外が発生し、再び命令例外検出処理部ロクラム11−
2 1に制御か移行する。命令例外検出時処理プログラ
ム1、−3−2−1は命令例外か発生した命令かS V
 Cよりの復帰命令であるので■で格納したレジスタ類
を(7)で回復し2、■でSVCよりの復・掃命令に指
定した復帰先(■のSVC命令の次の命令)を命令例外
よりの復帰先としてオペレーティングシステムの命令例
外検出時処理プログラムよりの復帰処理部1−2−3に
通知する事で0)のSvC命令の次の命令に制御を移行
する事になる。
Since the hardware return instruction from SvC in (2) is an instruction that can only be issued by the operating system, the hardware instruction execution protection processing unit j~1-2 operates, an instruction exception occurs, and the instruction exception detection processing unit is activated again. Lokrum 11-
2 Control shifts to 1. Instruction exception detection processing program 1, -3-2-1 is an instruction exception or an instruction that has occurred.SV
Since this is a return instruction from C, the registers stored in ■ are restored in (7), and 2. In ■, the return destination specified for the SVC cleanup instruction (the next instruction of the SVC instruction in ■) is set as an instruction exception. By notifying the return processing unit 1-2-3 from the instruction exception detection processing program of the operating system as the return destination, control is transferred to the instruction next to the SvC instruction 0).

なお、デバグするオペレーティングシステムの終了はS
VC命令であるので終了するためのデバグするプログラ
ム(SVCプログラム〉4−2をデバグプログラム1−
3側で準備しておけば終了処理も実現される。
In addition, to exit the operating system to be debugged, press S.
Since it is a VC instruction, the program to be debugged to terminate (SVC program> 4-2) is debugged program 1-
If preparation is made on the third side, the termination process can also be realized.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、ハードウェアの命令例外
検出処理部と命令実行保護処理部と、オペレーティング
システムの命令例外検出時処理プログラム登録処理部と
、命令例外検出時制御移行処理部と命令例外検出時処理
プログラムよりの復帰処理部とを利用した命令例外検出
時処理プログラムを準備しSVC命令をハードウェアが
命令例外として扱う命令に書き換えたデバグするプログ
ラムを実行させることにより、デバグするプログラムお
よびオペレーティングシステムを修正することなくオペ
レーティングシステムのプログラムをデバグできる効果
がある。また、本デバグプログラムがオペレーティング
システムの利用者として同時に複数個動作可能なオペレ
ーティングシステム上で動作するのであれば、オペレー
ティングシステムのプログラムを同時に複数個をデバグ
できる効果がある。
As described above, the present invention includes an instruction exception detection processing section and an instruction execution protection processing section of hardware, an instruction exception detection processing program registration processing section of an operating system, a control transfer processing section upon instruction exception detection, and an instruction exception detection processing section. The program to be debugged and the operating system can be debugged by preparing an instruction exception detection processing program using the return processing unit from the detection processing program and executing the debugging program in which the SVC instruction has been rewritten to an instruction that the hardware handles as an instruction exception. It has the effect of debugging operating system programs without modifying the system. Moreover, if this debug program runs on an operating system that can run multiple programs at the same time as an operating system user, there is an effect that multiple programs of the operating system can be debugged at the same time.

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

第1図は本発明の構成図、第2図は初期設定処理の説明
図、第3図はS V C命令を例外命令への書き換え処
理部の説明図、第4図は実際に本発明のデバグプログラ
ムか動作した時の説明図、第5図は命令例外検出時処理
プログラムのフローチャートである。 1−1・・・ハードウェア、]−−−1〜1・・・命令
例外検出処理部、1−1−2・・・命令実行保護処理部
、1−=2・・・オペレーティングシステム、1−2−
1・・・命令例外検出時処理プログラム登録処理部、1
−2−2・・・命令例外検出時制御移行処理部、1−2
−3・・・命令例外検出時処理プログラムよりの復帰処
理部、1−3・・・デバグプログラム、1−3−1・・
・初期設定処理部、1−3−1−1・・・メモリロード
処理部、1−3−1−2・・・S V C飛び先アドレ
ステーブル作成部、]、 −]3−1−3−S VC命
令書換処理部、1−3−1−4・・・命令例外検出時処
理プログラム登録処理、1−3−2・・・実行処理部、
1−3−2−1・・・命令例外検出時処理プログラム、
1−4・・・デバグするプログラムファイル、1−5・
・・入力制御文、l−5−1・・・デバグするブ17グ
ラムを指定する制御文、1−5−2・・・S■C番号と
SVCプログラムの対応をとる制御文、2−1・・・メ
モリ作業域、l−1−1・・・メモリ上のデバクするプ
ログラム、2−1−2・・アドレス情報テーブル、2−
1−3・・・SVC番号とアドレス対応テーブル、3−
1・・・SVC命令書き換え前、3−2・・・SVC命
令書き換え後、・4−1・・・テハグするプログラム(
SVC呼び側)、4−2・・・デバグするプログラム(
SVCプログラム)。
Fig. 1 is a block diagram of the present invention, Fig. 2 is an explanatory diagram of initial setting processing, Fig. 3 is an explanatory diagram of a processing unit that rewrites an S V C instruction to an exception instruction, and Fig. 4 is an illustration of the actual configuration of the present invention. FIG. 5 is an explanatory diagram when the debug program operates, and FIG. 5 is a flowchart of the processing program when an instruction exception is detected. 1-1...Hardware,] ---1 to 1...Instruction exception detection processing unit, 1-1-2...Instruction execution protection processing unit, 1-=2...Operating system, 1 -2-
1...Instruction exception detection processing program registration processing unit, 1
-2-2...Control transition processing unit upon detection of instruction exception, 1-2
-3...Return processing unit from instruction exception detection processing program, 1-3...Debug program, 1-3-1...
- Initial setting processing section, 1-3-1-1... Memory load processing section, 1-3-1-2... SVC jump destination address table creation section, ], -] 3-1-3 -S VC instruction rewrite processing unit, 1-3-1-4...Instruction exception detection processing program registration process, 1-3-2...Execution processing unit,
1-3-2-1...Instruction exception detection processing program,
1-4...Program file to be debugged, 1-5.
... Input control statement, l-5-1... Control statement that specifies the program to be debugged, 1-5-2... Control statement that corresponds between the S■C number and the SVC program, 2-1 ...Memory work area, l-1-1...Program to be debugged on memory, 2-1-2...Address information table, 2-
1-3...SVC number and address correspondence table, 3-
1... Before SVC instruction rewriting, 3-2... After SVC instruction rewriting, 4-1... Program to be hugged (
SVC caller), 4-2...Program to be debugged (
SVC program).

Claims (1)

【特許請求の範囲】  命令例外検出処理機能と命令実行保護処理機能とを有
するハードウェアと、 命令例外検出時処理プログラム登録処理機能と命令例外
検出時制御移行処理機能と命令例外検出時処理プログラ
ムよりの復帰処理機能特に任意の箇所に命令例外検出時
処理プログラムよりの復帰ができる機能とを有するオペ
レーティングシステムとを有する計算機システムにおけ
るオペレーティングシステムのデバグ方式において、 デバグするプログラムを指定する制御文を解釈してデバ
グするプログラムファイルを選択してメモリ上のデバグ
するプログラムおよびアドレス情報テーブルをメモリ作
業域上に作成するデバグするプログラムのメモリロード
処理部と、 スーパーバイザコール番号とスーパーバイザコールプロ
グラムの対応をとる制御文を解釈しアドレス情報テーブ
ルを参照しながらスーパーバイザコール番号とアドレス
対応テーブルを作成するスーパーバイザコール飛び先ア
ドレステーブル作成部と、 メモリ上のデバグするプログラムのスーパーバイザコー
ル命令をサーチし命令例外を発生させる命令に書き換え
るスーパーバイザコール命令書換処理部と、 メモリ上のデバグするプログラムが動作した時にハード
ウェアが命令例外検出処理部または命令実行保護処理部
で命令例外を検出した時にオペレーティングシステムの
命令例外検出時処理プログラム登録処理部を介して実行
される命令例外検出時処理プログラムとを有するオペレ
ーティングシステムのデバグ方式。
[Scope of claims] Hardware having an instruction exception detection processing function and an instruction execution protection processing function, a processing program registration processing function when an instruction exception is detected, a control transfer processing function when an instruction exception is detected, and a processing program when an instruction exception is detected. In a debugging method for an operating system in a computer system that has a return processing function, especially a function that allows a return from the processing program when an instruction exception is detected at any location, a control statement that specifies the program to be debugged is interpreted. A control statement that selects a program file to be debugged and creates a program to be debugged in memory and an address information table in a memory work area, a memory load processing section of the program to be debugged, and a control statement that corresponds between a supervisor call number and a supervisor call program. A supervisor call destination address table creation unit that interprets the address information table and creates a supervisor call number and address correspondence table while referring to the address information table, and an instruction that searches for a supervisor call instruction in the program to be debugged in memory and generates an instruction exception. The supervisor call instruction rewrite processing unit to be rewritten and the instruction exception detection processing program registration of the operating system when the hardware detects an instruction exception in the instruction exception detection processing unit or instruction execution protection processing unit when the program to be debugged in memory runs. A debugging method for an operating system having an instruction exception detection processing program executed via a processing unit.
JP2298345A 1990-11-02 1990-11-02 Debugging system for operating system Pending JPH04175835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2298345A JPH04175835A (en) 1990-11-02 1990-11-02 Debugging system for operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2298345A JPH04175835A (en) 1990-11-02 1990-11-02 Debugging system for operating system

Publications (1)

Publication Number Publication Date
JPH04175835A true JPH04175835A (en) 1992-06-23

Family

ID=17858474

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2298345A Pending JPH04175835A (en) 1990-11-02 1990-11-02 Debugging system for operating system

Country Status (1)

Country Link
JP (1) JPH04175835A (en)

Similar Documents

Publication Publication Date Title
EP0340453A3 (en) Instruction handling sequence control system
US20040261064A1 (en) Speculative compilation
JP2526020B2 (en) Exception condition processing method and apparatus
US6131109A (en) Multitask processor, a multitask processing method, a multitask processing display method and a storage medium for processing by correlating task and object
Ma et al. M-JavaMPI: A Java-MPI binding with process migration support
JPH04175835A (en) Debugging system for operating system
JP3339708B2 (en) Event recording method
JP2560467B2 (en) Post-processing management method
JPS63253441A (en) User program and task managing system for debugger
JPS63158632A (en) System program execution system in interpreter system
JP3159155B2 (en) Method and apparatus for debugging program
JPH10133901A (en) Test support tool
JPH0392915A (en) Initialization processing method for ram
JPS63163636A (en) Executing system for parallel processing
JPH01251239A (en) Debugging device
JPH03246734A (en) Method and device for checking jump destination address of debugger
JPH06214828A (en) Interactive debug controller
Naidu First-Class Continuations in Java PV Thatayya Naidu and CR Muthukrishnan Department of Computer Science and Engineering, Indian Institute of Technology, Chennai 600 036
JPS6116344A (en) Conversational debugging processing system
JPH03271839A (en) Program operation analyzing system
JPH02113336A (en) Asynchronous exception acquisition system
JPH04348412A (en) Interruption clearing system for application of power supply
JPH0433135A (en) Program system for debugging
Dorman et al. Seamless thread and execution context migration within a Java virtual machine environment
JPH05127945A (en) Program execution situation analysis system