JPH056294A - Dump sampling system - Google Patents
Dump sampling systemInfo
- Publication number
- JPH056294A JPH056294A JP3156857A JP15685791A JPH056294A JP H056294 A JPH056294 A JP H056294A JP 3156857 A JP3156857 A JP 3156857A JP 15685791 A JP15685791 A JP 15685791A JP H056294 A JPH056294 A JP H056294A
- Authority
- JP
- Japan
- Prior art keywords
- program
- dump
- storage device
- dump collection
- main
- 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
- 238000005070 sampling Methods 0.000 title 1
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 230000001747 exhibiting effect Effects 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、例えば内部記憶装置に
ある内容を外部記憶装置に複写するダンプ採取システム
に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a dump collection system for copying the contents of an internal storage device to an external storage device.
【0002】[0002]
【従来の技術】従来、例えば電子計算機におけるダンプ
機能は、一般に、主記憶装置の内容を外部記憶装置等へ
複写することをいい、電子計算機の分野ではよく利用さ
れている。このダンプ機能は、利用者がコンソールから
コマンドを入力することにより利用する方法と、主記憶
装置の内容を外部記憶装置に書き出すためのプログラム
を予め割り込みベクタテーブルに登録しておき、運用中
のプログラムから割り込みを発生させることにより利用
する方法とが考えられる。2. Description of the Related Art Conventionally, for example, a dump function in an electronic computer generally means copying the contents of a main storage device to an external storage device or the like, which is often used in the field of electronic computers. This dump function is used by the user by inputting a command from the console, and the program for writing the contents of the main storage device to the external storage device is registered in advance in the interrupt vector table, and the operating program It is conceivable to use it by generating an interrupt from.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、利用者
がコンソールからコマンドを入力してダンプ機能を利用
する方法は、実際に主記憶装置の内容を外部記憶装置に
複写するまでに時間的遅延が生じてしまため、利用者が
障害を発見してからダンプをしたのでは必要な情報が得
られなくなってしまうことがあった。However, in the method in which the user inputs a command from the console to use the dump function, there is a time delay before the contents of the main storage device are actually copied to the external storage device. Therefore, if the user discovers a failure and then dumps, the necessary information may not be obtained.
【0004】また、割り込みプログラムを使用してダン
プ機能を利用する方法では、プログラム上から割り込み
を発生させるために、割り込み命令をプログラム上に予
めコーディングしておく必要があった。Further, in the method of utilizing the dump function by using the interrupt program, it is necessary to previously code the interrupt instruction on the program in order to generate the interrupt from the program.
【0005】本発明は、上述した問題点を解消し、確実
にかつ正確にダンプ機能を発揮できるダンプ採取システ
ムを提供することを目的とする。An object of the present invention is to solve the above-mentioned problems and to provide a dump collection system capable of reliably and accurately exhibiting a dump function.
【0006】[0006]
【課題を解決するための手段】上記目的を達成するため
に、本発明のダンプ採取システムは、主プログラム中の
特定のビットに割当られたダンプ採取要求情報を参照
し、当該情報があるときにダンプ採取プログラムを実行
する計算機を備えたことを特徴とする。In order to achieve the above object, the dump collection system of the present invention refers to dump collection request information assigned to a specific bit in a main program, and when there is such information, It is characterized by having a computer for executing the dump collection program.
【0007】前記計算機は、特定のビットをメモリダン
プ採取要求情報を格納するビットに割り当てられている
命令コードを有した主プログラム、ダンプ採取プログラ
ムを記憶する主記憶装置と、前記主プログラムの実行に
際し、前記命令コード中にダンプ採取要求があるときに
前記ダンプ採取プログラムを実行する中央処理装置とか
らなることを特徴とする。The computer has a main program having an instruction code in which specific bits are assigned to bits for storing memory dump collection request information, a main storage device for storing the dump collection program, and a main program for executing the main program. And a central processing unit that executes the dump collection program when there is a dump collection request in the instruction code.
【0008】また、前記中央処理装置は、前記主プログ
ラム中の前記命令コードをデコードする際に、命令コー
ド中の前記ビットにダンプ採取要求があるときに現在実
行中の主プログラムを一時中断し、ダンプ採取プログラ
ムを実行して前記主記憶装置の内容を外部記憶装置に格
納する処理をするようにすることが好適である。Further, when decoding the instruction code in the main program, the central processing unit temporarily suspends the main program currently being executed when a dump collection request is made to the bit in the instruction code, It is preferable to execute a dump collection program to store the contents of the main storage device in an external storage device.
【0009】本発明は、上述のように構成してあるの
で、確実にかつ正確なタイミングでダンプ採取が可能と
なる。Since the present invention is constructed as described above, it is possible to collect dumps reliably and at an accurate timing.
【0010】[0010]
【実施例】次に、本発明について図面の実施例を参照し
て説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the embodiments of the drawings.
【0011】図1は、本発明のメモリダンプ採取システ
ムの一実施例を組み込んだ計算機の構造を示すブロック
図である。FIG. 1 is a block diagram showing the structure of a computer incorporating an embodiment of the memory dump collecting system of the present invention.
【0012】図1に示す計算機1は、主プログラム中の
特定のビットに割当られたダンプ採取要求情報を参照
し、当該情報があるときにダンプ採取プログラムを実行
する。この計算機1は、中央処理装置2と、主記憶装置
3と、外部記憶装置4と、これらを接続するシステムバ
ス5とからなる。The computer 1 shown in FIG. 1 refers to the dump collection request information assigned to a specific bit in the main program, and executes the dump collection program when there is such information. The computer 1 includes a central processing unit 2, a main storage device 3, an external storage device 4, and a system bus 5 connecting them.
【0013】主記憶装置3には、計算機1の上で動作す
る主プログラム6と、ダンプ採取プログラム7が記憶さ
れている。プログラム6を構成する命令コード中の特定
のビットは、ダンプ採取要求ビットとして、その命令が
中央処置装置2で実行されたときに、ダンプを採取する
か否かの情報を格納するために割り当てられる。中央処
理装置2は、主記憶装置4から命令コードを取り込み、
デコードする際にこのダンプ採取要求ビットを参照す
る。参照した結果、ダンプ採取が要求された場合、その
命令を実行後、中央処理装置2は、主プログラム6を再
開するのに必要な情報をセーブして、ダンプ採取プログ
ラム7へ制御を分岐させる。ダンプ採取プログラムで
は、主記憶装置3の内容を外部記憶装置4に書き出す処
理を行う。ダンプ採取プログラム7が終了したら、先に
セーブした情報を復帰させ、ダンプ採取以前に実行中だ
ったプログラム6を再開させる。The main storage device 3 stores a main program 6 operating on the computer 1 and a dump collection program 7. A specific bit in the instruction code configuring the program 6 is assigned as a dump collection request bit to store information on whether or not to collect a dump when the instruction is executed by the central processing unit 2. . The central processing unit 2 fetches the instruction code from the main memory 4,
Refer to this dump collection request bit when decoding. If dump collection is requested as a result of reference, after executing the instruction, the central processing unit 2 saves information necessary for restarting the main program 6 and branches the control to the dump collection program 7. The dump collection program writes the contents of the main storage device 3 to the external storage device 4. When the dump collection program 7 ends, the previously saved information is restored and the program 6 that was being executed before the dump collection is restarted.
【0014】なお、ダンプ採取要求ビットを参照した結
果、ダンプ採取要求されていない場合、中央処理装置2
は、主記憶装置3のプログラム6から次の命令コードを
取り込み同様の処理の実行を続ける。As a result of referring to the dump collection request bit, if the dump collection request is not issued, the central processing unit 2
Fetches the next instruction code from the program 6 in the main memory 3 and continues the same processing.
【0015】上述したように本実施例では、実行中のプ
ログラムから正確なタイミングで、主記憶装置の内容を
外部記憶装置へ書き出すことができるので、より正確な
メモリダンプ情報が得られることになる。しかも、本実
施例では、プログラム上の命令コードの特定のビットを
操作するだけで、元のプログラムを修正することなく、
メモリダンプが容易に採れることになる。As described above, in this embodiment, the contents of the main storage device can be written to the external storage device at an accurate timing from the program being executed, so that more accurate memory dump information can be obtained. . Moreover, in this embodiment, by only operating a specific bit of the instruction code on the program, without modifying the original program,
A memory dump can be easily collected.
【0016】[0016]
【発明の効果】以上説明したように本発明は、実行中の
プログラムから、正確なタイミングで、主記憶装置の内
容を外部記憶装置へ書き出すことができるので、より正
確なメモリダンプ情報が得られ、しかもプログラム上の
命令コードの特定のビットを操作するだけで、元のプロ
グラムを修正することなく、メモリダンプが容易に採れ
るという効果がある。As described above, according to the present invention, the contents of the main storage device can be written to the external storage device at an accurate timing from the program being executed, so that more accurate memory dump information can be obtained. Moreover, there is an effect that a memory dump can be easily taken without modifying the original program simply by operating a specific bit of the instruction code on the program.
【図1】本発明の実施例が適用される計算機のブロック
図である。FIG. 1 is a block diagram of a computer to which an embodiment of the present invention is applied.
1 計算機 2 中央処理装置 3 主記憶装置 4 外部記憶装置 5 システムバス 6 主プログラム 7 ダンプ採取プログラム 1 calculator 2 Central processing unit 3 main memory 4 External storage device 5 system bus 6 Main program 7 Dump collection program
Claims (3)
れたダンプ採取要求情報を参照し、当該情報があるとき
にダンプ採取プログラムを実行する計算機を備えたこと
を特徴とするダンプ採取システム。1. A dump collection system comprising a computer for referring to dump collection request information assigned to a specific bit in a main program and executing the dump collection program when there is such information.
ンプ採取要求情報を格納するビットに割り当てられてい
る命令コードを有した主プログラム、ダンプ採取プログ
ラムを記憶する主記憶装置と、前記主プログラムの実行
に際し、前記命令コード中にダンプ採取要求があるとき
に前記ダンプ採取プログラムを実行する中央処理装置と
からなることを特徴とする請求項1記載のダンプ採取シ
ステム。2. A main program having an instruction code in which a specific bit is assigned to a bit for storing memory dump collection request information, a main storage device for storing the dump collection program, and the main program The dump collection system according to claim 1, further comprising a central processing unit that executes the dump collection program when a dump collection request is included in the instruction code.
中の前記命令コードをデコードする際に、命令コード中
の前記ビットにダンプ採取要求があるときに現在実行中
の主プログラムを一時中断し、ダンプ採取プログラムを
実行して前記主記憶装置の内容を外部記憶装置に格納す
る処理をすることを特徴とする請求項2記載のダンプ採
取システム。3. The central processing unit, when decoding the instruction code in the main program, temporarily suspends the currently executing main program when a dump collection request is made to the bit in the instruction code, The dump collection system according to claim 2, wherein the dump collection program is executed to store the contents of the main storage device in an external storage device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3156857A JPH056294A (en) | 1991-06-27 | 1991-06-27 | Dump sampling system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3156857A JPH056294A (en) | 1991-06-27 | 1991-06-27 | Dump sampling system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH056294A true JPH056294A (en) | 1993-01-14 |
Family
ID=15636900
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3156857A Pending JPH056294A (en) | 1991-06-27 | 1991-06-27 | Dump sampling system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH056294A (en) |
-
1991
- 1991-06-27 JP JP3156857A patent/JPH056294A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4879646A (en) | Data processing system with a pipelined structure for editing trace memory contents and tracing operations during system debugging | |
| JPH10214203A (en) | Information processor | |
| JPH056294A (en) | Dump sampling system | |
| US5893928A (en) | Data movement apparatus and method | |
| JP2552738B2 (en) | Data processing device | |
| JPH0581087A (en) | Processor monitoring system | |
| JPH0259829A (en) | Microcomputer | |
| JPH0399338A (en) | Microprocessor | |
| JPS5894041A (en) | Debug backup device for high-class language | |
| JPH04328644A (en) | Debug back-up device | |
| JPH04167146A (en) | Address tracing system for information processor | |
| JPH0833825B2 (en) | Microprocessor | |
| JPH05265799A (en) | Data processor | |
| JPH01233628A (en) | Memory address conversion control circuit | |
| JPH0535499A (en) | Data processing device and data processing method | |
| JPH03129532A (en) | Microsequence circuit | |
| JPH03168845A (en) | Instruction execution control system | |
| JPH0113142B2 (en) | ||
| JPH02253336A (en) | Program starting system | |
| JPS60114944A (en) | Instruction address control system | |
| JPS59189452A (en) | Queue structure for data processor | |
| JPH0667982A (en) | Address conversion system | |
| JPS60112140A (en) | Access system of stack | |
| JPS60132249A (en) | data processing equipment | |
| JPS6349942A (en) | Arithmetic processing unit |