JPS6282437A - Control system for interruption of debug in information processor - Google Patents
Control system for interruption of debug in information processorInfo
- Publication number
- JPS6282437A JPS6282437A JP60222737A JP22273785A JPS6282437A JP S6282437 A JPS6282437 A JP S6282437A JP 60222737 A JP60222737 A JP 60222737A JP 22273785 A JP22273785 A JP 22273785A JP S6282437 A JPS6282437 A JP S6282437A
- Authority
- JP
- Japan
- Prior art keywords
- comparison
- interrupt
- debugging
- comparison information
- address
- 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
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は情報処理装置に関し、特に情報処理装置におけ
るデバッグ割込みの制御方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an information processing device, and particularly to a control method for debug interrupts in an information processing device.
従来、情報処理装置において、プログラムの論理的ミス
やハードウェアの故障に起因して引き起こされる誤動作
の解析のために、メモリアクセス動作に着目してデバッ
グ作業を実行することが行なわれている。このようなデ
バッグ作業に対し従来は、検出したいメモリリクエスト
の種類やアクセスアドレスをセットする特殊なレジスタ
を有し、デバッグモードにセットされた情報処理装置の
プログラムの実行に伴い所望のメモリアクセスが為され
たときにそれを検出し、ソフトウェアにデバッグ割込み
条件の発生を報告するようなハードウェアサポートが備
えられていた。2. Description of the Related Art Conventionally, in information processing devices, debugging work has been carried out by focusing on memory access operations in order to analyze malfunctions caused by logical mistakes in programs or hardware failures. Conventionally, for such debugging work, a special register is used to set the type of memory request to be detected and the access address. hardware support was provided to detect when a debug interrupt condition occurred and report it to software.
このような従来のデバッグ方式は、メモリの特定アドレ
スへのアクセス自体がデバッグすべき問題点と直接に結
びついた動作である場合には充分に役立つものである。Such conventional debugging methods are fully useful when accessing a specific address in memory itself is an operation directly related to the problem to be debugged.
しかし、その特定のアドレスへアクセスする/、°−ス
が複数存在するとき(,1、その何れにおいてもデバッ
グ割込みが報告され得るので、実際には無意味なケース
なのかどうかをソフトウIアのデバッグ割込み処理ルー
チン内で判定したりする必要がzトL2る。この判定は
、例えばメモリへの書込みリクエストでのアト[ノス一
致が報告されたときには、そのアトトノスのデータがど
ういう値に書き換えられたかということが重要な判定+
41となることが多い。このようなデータのチェックは
ソフトウェアにより可能であるが、所望のケースが出現
する簡に余分なデハソグ割込みの処理が動作することに
より、1IIl常モードでは発)−トシでいた情報収集
したい/、−−スがデバッグモードでは1■1現しなく
な−って、結局せっかくのデバッグ機能が有効に活用さ
れないという欠点がある。However, if there are multiple accesses to that particular address (1), a debug interrupt can be reported for any of them, so it is important to check whether this is actually a meaningless case or not. It is necessary to make a judgment within the debug interrupt processing routine.This judgment is performed, for example, when an attonos match is reported in a write request to memory, what value was the attonos data rewritten to? This is an important decision +
It is often 41. Although it is possible to check such data using software, if the desired case occurs, it is easy to operate the processing of the extra dehasogging interrupt, which is generated in normal mode. The problem is that the debugging function is not used effectively in the debug mode, and the debugging function is not used effectively.
本発明の目的(4、実環境と変わらない状態を再現しな
がら所望のリクエストを捕捉してデハソグ割込みを起動
することができるようにすることにある。The purpose of the present invention (4) is to make it possible to capture a desired request and activate a dehasog interrupt while reproducing the same state as the actual environment.
本発明ロー1〕記目的を達成するために、メモリリクエ
ストのコマンドおよびアドレスに関する比較情報を保持
する第1の比較情報保持手段と、書込めデータに関する
比較情報を保持する第2の比較情報保持手段と、
情I[i処理装置で発生するメモリリクエストのコマン
ドおよびアl゛レスと前記第1の比較情報保持手段に保
持された比較情報を比較する第1の比較手段と、
前記情報処理装置で発生ずる書込みデータと前記第2の
比較悄1保持手段に保持された比較情報吉を比較する第
2の比較手段と、
前記第1の比較手段と前記第2の比較手段とで所定の比
較結果が得られたときにデハソグ割込み起動の制御信壮
を発生ずるデバッグ割込み起動手段とを設ける。In order to achieve the object of the present invention, the first comparison information holding means holds comparison information regarding commands and addresses of memory requests, and the second comparison information holding means holds comparison information regarding write data. and a first comparing means for comparing the command and address of a memory request generated in the information processing device with the comparison information held in the first comparison information holding means; a second comparison means for comparing the generated write data and the comparison information held in the second comparison holding means; and a predetermined comparison result between the first comparison means and the second comparison means. A debugging interrupt activation means is provided which generates a control message for activating the debugging interrupt when the debugging interrupt is obtained.
第1の比較情報保持手段にコマンドの種類として書込み
コマンドを、アドレスとしてその特定のアドレスをそれ
ぞれ保持させ、第2の比較情報保持手段に比較用データ
を保持さ1!、月つ、デバッグ割込み起eh手段が第1
および第2の比較手段の双方で一致が検出されたときに
デバッグ割込みを起動するようにしてよンくと、ある特
定のアドレスに対し−に記比較用データと同一のデータ
が書込まれるようなメモリリクエストが発生したときに
デバッグ割込みが起動される。The first comparison information holding means holds the write command as the command type and the specific address as the address, and the second comparison information holding means holds the comparison data.1! , the debug interrupt generating means is the first
If a debug interrupt is activated when a match is detected by both the first comparison means and the second comparison means, the same data as the above comparison data will be written to a specific address. A debug interrupt is triggered when a memory request occurs.
デバッグ割込み起動手段が第1の比較手段で一致力(+
食出され■つ第2の比較手段で一致が検出されないとき
にデバッグ割込みを起動するようにしておけば、ある特
定のアドレスにある比較用データ以外のデータが書込ま
れたときにデバッグ割込みを起動することができる。The debug interrupt activation means uses the first comparison means to match the matching power (+
If the debug interrupt is activated when the second comparison means does not detect a match, the debug interrupt can be activated when data other than the comparison data at a specific address is written. Can be started.
図は本発明の実施例における情報処理装置の要部ブロッ
ク図であり、1は演算の制御や実行などの主要回路を全
て含む演算制御部、2は演算制御部1の内部にあって、
主記憶装置3とのインタフェイスを有するメモリアクセ
ス制御部、4は実際のメモリアクセスのコマンド及びア
ドレスとの比較情報を保持するための比較コマンド・ア
ドレスレジスタ、5はメモリアクセスが書込みコマンド
の場合における実際の書込みデータとの比較情報を保持
するための比較データレジスタ、6はメモリアクセス制
御部2から信号線201を通して主記憶装置3に送出さ
れるコマンドとアドレスを比較コマンド・アドレスレジ
スタ4に保持された比較情報と比較するための比較回路
、7はメモリアクセス制御部2から信月綿202を通し
て主記憶装置3に送出される書込みデータを比較データ
レジスタ5に保持された比較情報と比較するための比較
回路、8はアンドゲートである。このアンドゲート8の
出力801がデバッグ割込み起動の制御信号として演算
制御部1へ送出されている。The figure is a block diagram of main parts of an information processing device according to an embodiment of the present invention, in which 1 is an arithmetic control unit including all main circuits for controlling and executing arithmetic operations, 2 is inside the arithmetic control unit 1,
A memory access control unit having an interface with the main storage device 3; 4 a comparison command/address register for holding comparison information with actual memory access commands and addresses; 5 a memory access control unit for use when the memory access is a write command; A comparison data register 6 holds comparison information with actual write data, and a comparison data register 6 compares the command and address sent from the memory access control unit 2 to the main storage device 3 through the signal line 201 and is held in the command/address register 4. A comparison circuit 7 is used to compare the write data sent from the memory access control unit 2 to the main storage device 3 through the Shinzuki cotton 202 with the comparison information held in the comparison data register 5. The comparison circuit 8 is an AND gate. An output 801 of this AND gate 8 is sent to the arithmetic control section 1 as a control signal for activating a debug interrupt.
本実施例の情報処理装置におけるデハソグ割込みの起動
の制御は、以下のようにして行なわれる。The activation of the dehasog interrupt in the information processing apparatus of this embodiment is controlled as follows.
今、検出したいメモリリクエストが書込みのコマントで
然も特定アドレスが予め分かっている特定のデータパタ
ーンに書き換えられたときだけデバッグ割込みを起こし
たいとする。このようなことは、例えばあるプログラム
を動かすと本来はあり得ないような特殊なパターンで特
定アト!/スの内容が乱されるといった現象が発生ずる
ときに有効であり、従来よりデバッグに非常に時間がか
かる事象の一つである。Suppose now that the memory request to be detected is a write command, and that we want to cause a debug interrupt only when a specific address is rewritten to a specific data pattern that is known in advance. For example, when you run a certain program, this kind of thing can be identified by a special pattern that would never occur in the first place! This is effective when a phenomenon occurs in which the contents of the /space are disturbed, and this is one of the events that conventionally takes a very long time to debug.
上記のようなデバッグ割込のを行なわせる場合、先ずプ
ログラムによって検出したいメモリリクエストのコマン
ドとアクセスするアドレス値を比較情報として比較コマ
ンド・アドレスレジスタ4に信号線101を介して格納
し、また上記特定のデータパターンを比較情報として比
較データレジスタ5に信号線102を介して格納する。When performing a debug interrupt as described above, first, the command of the memory request to be detected by the program and the address value to be accessed are stored as comparison information in the comparison command/address register 4 via the signal line 101. The data pattern is stored as comparison information in the comparison data register 5 via the signal line 102.
そしてデバッグモードをセットすることによりアントゲ
−1・8の入力信号線104を“1”とし、以後比較四
NR6+7による比較一致信号601,701のチェッ
クが開始される。なお、このとき比較回路7の動作を有
効にするためにプログラムの指定により信号線103を
“1”にしておく。Then, by setting the debug mode, the input signal lines 104 of the anime games 1 and 8 are set to "1", and thereafter, the comparison match signals 601 and 701 are started to be checked by the comparison 4NR6+7. At this time, in order to enable the operation of the comparator circuit 7, the signal line 103 is set to "1" as specified by the program.
上記の状態で、問題となっているプログラムを実行開始
する。このプログラムは正常な状態でも比較コマンド・
アドレスレジスタ4にセットされているアドレスに対し
て書込みが行なわれるが、そのアドレスに対しメモリア
クセス制御部2から信号綿202を介して送出されるデ
ータが正常であれば、比較データレジスタ5との一致が
とれないからアンドゲート8の出力801は“0”であ
り、余分なデバッグ割込みは発生しない。従って、デバ
ッグモードを設定していない通常の動作モードで起きた
のと同じ環境が保証される。一方、所望のメモリリクエ
スト、即ちこの場合は予期していなかったルーチンでの
異常データ (特定アドレスに対する特定のデータパタ
ーン)の書込みなどが発汁すると、比較回路6.7の出
力601,701が共に“1″となってアンドゲート8
の出力801によりデバッグ割込みがかけられ、プログ
ラムのバグ乃至はハードウェアの障害をつきとめる貴重
な情報を得ることが可能となる。In the above state, start executing the program in question. Even under normal conditions, this program cannot use the comparison command.
Writing is performed to the address set in the address register 4, but if the data sent to that address from the memory access control unit 2 via the signal wire 202 is normal, the data is written to the address set in the comparison data register 5. Since there is no match, the output 801 of the AND gate 8 is "0", and no extra debugging interrupt is generated. Therefore, the same environment as would occur in normal operating mode without setting debug mode is guaranteed. On the other hand, when a desired memory request occurs, that is, in this case, an unexpected routine writes abnormal data (a specific data pattern to a specific address), the outputs 601 and 701 of the comparison circuit 6.7 are both becomes “1” and gate 8
A debugging interrupt is generated by the output 801, and it becomes possible to obtain valuable information for identifying program bugs or hardware failures.
なお」−記の実施例では、比較回路7は主記憶装置3へ
の書込みデータと比較データレジスタ5の保持データと
の一致を検出するとその出カフ01が“1”となるよう
構成し、比較情報と同一データが書込まれたときにデバ
ッグ割込みを起動するようにしたが、例えば比較回路7
が不一致を検出したときにその出カフ01を“1”とす
るよう構成するか或いはアンドゲート8の入力信号線7
01上の信号を反転してアンドゲート8に入力する構成
にすることにより、ある特定アドレスが本来期待されて
いる特定の値以外で破壊されるようなケースが発生した
ときにデバッグ割込みを起動するように構成することも
できる。In the embodiment described in "-", the comparator circuit 7 is configured so that when it detects a match between the data written to the main memory 3 and the data held in the comparison data register 5, the output 01 becomes "1", and the comparison circuit 7 The debug interrupt is activated when the same data as the information is written, but for example, when the comparison circuit 7
When detecting a mismatch, the output cuff 01 is set to "1", or the input signal line 7 of the AND gate 8
By configuring the signal on 01 to be inverted and input to AND gate 8, a debug interrupt will be activated when a specific address is destroyed with a value other than the originally expected specific value. It can also be configured as follows.
また、メモリリクエストのコマンドが読出しコマンドの
場合は、信号線103を0”にして比較回路7の出カフ
01をデータに関係なく常に“1”とすることにより、
比較回路6の出力の状態のみに応じてデータ割込みを発
生させることができる。In addition, if the memory request command is a read command, by setting the signal line 103 to 0 and setting the output cuff 01 of the comparison circuit 7 to 1 regardless of the data,
A data interrupt can be generated depending only on the state of the output of the comparison circuit 6.
以上説明したように、本発明は、メモリの特定のアドレ
スへの書込みリクエストに関して、書込みデータの内容
に従ってデハソグ割込みの起動をコントロールすること
により、実環境と変わらない状態を再現しながら所望の
リクエストを捕捉してデバッグ割込みを起動することが
可能となり、デバッグ効率を向上させ得る効果がある。As explained above, the present invention controls the activation of a dehasog interrupt according to the content of the write data regarding a write request to a specific address in memory, thereby allowing the desired request to be executed while reproducing the same state as the actual environment. It becomes possible to capture and activate a debugging interrupt, which has the effect of improving debugging efficiency.
図は本発明の実施例における情報処理装置の要部ブロッ
ク図である。
図において、1は演算制御部、2はメモリアクセス制御
部、3は主記憶装置、4は比較コマンド・アドレスレジ
スタ、5は比較データレジスタ、6.7は比較回路、8
はアンドゲート、801はデータ割込み起動の制御信号
である。The figure is a block diagram of main parts of an information processing device according to an embodiment of the present invention. In the figure, 1 is an arithmetic control unit, 2 is a memory access control unit, 3 is a main memory, 4 is a comparison command/address register, 5 is a comparison data register, 6.7 is a comparison circuit, and 8
is an AND gate, and 801 is a control signal for activating a data interrupt.
Claims (1)
較情報を保持する第1の比較情報保持手段と、 書込みデータに関する比較情報を保持する第2の比較情
報保持手段と、 情報処理装置で発生するメモリリクエストのコマンドお
よびアドレスと前記第1の比較情報保持手段に保持され
た比較情報とを比較する第1の比較手段と、 前記情報処理装置で発生する書込みデータと前記第2の
比較情報保持手段に保持された比較情報とを比較する第
2の比較手段と、 前記第1の比較手段と前記第2の比較手段とで所定の比
較結果が得られたときにデバッグ割込み起動の制御信号
を発生するデバッグ割込み起動手段とを具備したことを
特徴とする情報処理装置におけるデバッグ割込み制御方
式。[Claims] First comparison information holding means for holding comparison information regarding commands and addresses of memory requests; second comparison information holding means for holding comparison information regarding write data; a first comparing means for comparing a command and address of a memory request with comparison information held in the first comparison information holding means; and write data generated in the information processing device and the second comparison information holding means. a second comparing means for comparing comparison information held in the first comparing means, and generating a control signal for activating a debug interrupt when a predetermined comparison result is obtained by the first comparing means and the second comparing means. 1. A debug interrupt control method for an information processing device, comprising a debug interrupt activation means for activating a debug interrupt.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60222737A JPS6282437A (en) | 1985-10-08 | 1985-10-08 | Control system for interruption of debug in information processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60222737A JPS6282437A (en) | 1985-10-08 | 1985-10-08 | Control system for interruption of debug in information processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS6282437A true JPS6282437A (en) | 1987-04-15 |
Family
ID=16787108
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60222737A Pending JPS6282437A (en) | 1985-10-08 | 1985-10-08 | Control system for interruption of debug in information processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6282437A (en) |
-
1985
- 1985-10-08 JP JP60222737A patent/JPS6282437A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0638864B1 (en) | Development support system for microcomputer with internal cache | |
| JPS6282437A (en) | Control system for interruption of debug in information processor | |
| JPS6282438A (en) | Control system for interruption of debug in information processor | |
| KR100238174B1 (en) | Parallel processor system | |
| JP2653412B2 (en) | How to set breakpoints | |
| JPH0581087A (en) | Processor monitoring system | |
| JP2684966B2 (en) | I/O processor debug unit | |
| JPS6270947A (en) | Control system for debug interruption | |
| JP2754899B2 (en) | Return address monitoring circuit of debug device | |
| JP3102381B2 (en) | Task debugging device, task debugging method, and recording medium therefor | |
| JPS59183443A (en) | Debug device | |
| JPH01175045A (en) | Address match detecting method | |
| JPH0782447B2 (en) | DMA data transfer control device | |
| JPH0324640A (en) | Debugging system for information processor | |
| JPH02264339A (en) | information processing equipment | |
| JPS61211746A (en) | Program executing control system | |
| JPH04235641A (en) | Development support device for microprocessor | |
| JPH0635760A (en) | Buffer device with trace function | |
| JPH0432418B2 (en) | ||
| JPS61194531A (en) | Instruction execution controller | |
| JPH03168845A (en) | Instruction execution control system | |
| JPH01187645A (en) | Microprogram running stop system | |
| JPH05151021A (en) | Debugging system using debugger with built-in resident area | |
| JPS60207937A (en) | Data processor | |
| JPH0362233A (en) | Address match timing tracing mechanism |