JPS59163653A - Debug device - Google Patents
Debug deviceInfo
- Publication number
- JPS59163653A JPS59163653A JP58036557A JP3655783A JPS59163653A JP S59163653 A JPS59163653 A JP S59163653A JP 58036557 A JP58036557 A JP 58036557A JP 3655783 A JP3655783 A JP 3655783A JP S59163653 A JPS59163653 A JP S59163653A
- Authority
- JP
- Japan
- Prior art keywords
- data
- memory
- address
- bus
- computer system
- 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
- 238000001514 detection method Methods 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
(発明の分野)
本発明は、例えばマイクロプロセッサ等のプロセッサを
実装した機器のデバッグを行なうデ・2ツグ装置に関し
、特に実機コンピュータのメモリの特定のアドレスに特
定のデータの書き込みが行なわれる場合にブレーク動作
を行なうようにしたデバッグ装置に関する。DETAILED DESCRIPTION OF THE INVENTION (Field of the Invention) The present invention relates to a debugging device for debugging a device in which a processor such as a microprocessor is mounted, and in particular, the present invention relates to a debugging device for debugging a device equipped with a processor such as a microprocessor. The present invention relates to a debug device that performs a break operation when a write is performed.
(発明の背景)
従来形のデバッグ装置に設けられたブレーク機能は、主
に以下のいずれかの条件が成立した場合に実機コンピュ
ータシステムを停止させる等のブレーク動作を行なって
いた。(Background of the Invention) A break function provided in a conventional debug device mainly performs a break operation such as stopping an actual computer system when any of the following conditions is satisfied.
A1実機コンピュータシステムのメモリの特定アドレス
にある命令を実行した場合
Bs8mコンピュータシステムのメモリの特定アドレス
にあるデータを参照した場合
このような従来形の装置においては1.上記Bの条件に
よるブレークは、特定アドレスにあるデータが参照され
たことのみで行なわれ、該データの内容はブレーク条件
の判定の対照とならず該データの格納されたアドレスの
みがブレーク条件とされていた。そのため、前記従来形
においては実機コンピュータシステムのメモリの特定ア
ドレスに格納されたデータが予め指定された単数または
複数の所定値である場合にのみブレークが必要なときに
も上記Bの条件でブレークさせ参照アビレスのデータが
該所定値になっているか否かを人手により判定していた
ため余分のブレークが発生しデバッグの効率が悪くなる
という不都合があった。A1 When an instruction at a specific address in the memory of an actual computer system is executed When data at a specific address in the memory of a Bs8m computer system is referenced In such a conventional device, 1. A break under condition B above is performed only when data at a specific address is referenced, and the contents of the data are not used as a basis for determining the break condition; only the address where the data is stored is considered as the break condition. was. Therefore, in the conventional type, even when a break is required only when the data stored at a specific address in the memory of the actual computer system is one or more predetermined values, the break is made under condition B above. Since it is manually determined whether or not the reference Aviles data is at the predetermined value, there is an inconvenience that an extra break occurs and debugging efficiency deteriorates.
(発明の目的〕
本発明の目的は、前述の従来形における問題点に鑑み、
ブレーク機能を有するデバッグ装置において、実機コン
ピュータシステムのメモリの特定のアドレスに所定値の
データの筈き込みが行なわれる場合のみブレーク動作が
行なわれるようにし、無用のブレークの発生を防止する
と共にデバッグの効率を向上させることにある。(Object of the invention) In view of the problems in the conventional type described above, the object of the present invention is to
In a debugging device that has a break function, the break operation is performed only when data of a predetermined value is placed in a specific address of the memory of the actual computer system, thereby preventing the occurrence of unnecessary breaks and improving debugging. The goal is to improve efficiency.
(発明の構成および効果)
本発明は、ブレーク機能を有するデバッグ装置において
、1核デバツグ装置に実機コンピュータシステムのデー
タバス上のデータ信号をアドレスとして用いるビットマ
ツプメモリを設けるという構想に基づくものであり、こ
のような構想を用いることにより実機コンピュータシス
テムのメモリの特定アト9レスノスめ定められた値のデ
ータが書き込まれる場合にのみブレーク動作を行なイつ
しめることが可能になり、無用のブレークの発生が防止
されると共にデバッグの効率が向上する。(Structure and Effects of the Invention) The present invention is based on the concept of providing a single-core debugging device with a bitmap memory that uses a data signal on a data bus of an actual computer system as an address in a debugging device having a break function. By using such a concept, it becomes possible to perform a break operation only when data with a predetermined value is written to the memory of a real computer system, thereby avoiding unnecessary breaks. The occurrence of this problem is prevented and debugging efficiency is improved.
(実施クリの説明〕
以下図面により本発明の詳細な説明する。第1図は、本
発明の1実施例に係わるデバッグ装置の概略の構成を示
す。同図において、デバッグ装置1はプロセッサ2、マ
ルチプレクサ3、ビットマツプメモリ4、比1咬回路5
、レジスタ6、ブレークポイントコントロール回路7、
アンドゲート8等によって構成される。また、デバッグ
されるべきプログラムを実行する実機コンピュータ10
は、プロセッサ11および図示しないメモリ等を具備す
る。デバッグ装置1は、実機コンピュータ10のプロセ
ッサ11に接続されたデータ/ぐス12、アト9レスノ
ス13、およびコントロールバス14等によって実機コ
ンピュータ10と接続されている。ビットマツプメモリ
4は、実機コンピュータ10のプロセッサ11が8ビツ
トのものである場合は例えば256×1ビツトの記憶容
量のものが使用される。ビットマツプメモリ4のアドレ
ス入力にはマルチプレクサ3を介して実機コンピュータ
10のデータバス12あるいはデフ2ツグ装置1のプロ
セッサ2に接続されたアト9レスノよス15が接続され
る。レジスタ6は、ブレークすべきアドレス値を格納す
るものであり、比較回路5は、レジスタ6の内容と実機
コンピュータ10のアビレスバス13上のデータとの比
較を行なうものである。レジスタ6へのアドレスデータ
の書き込みはプロセッサ2からデバッグ装置1のデータ
バス16を介して行なわれる。(Explanation of Implementation Criteria) The present invention will be described in detail below with reference to the drawings. Fig. 1 shows a schematic configuration of a debugging device according to an embodiment of the present invention. In the figure, a debugging device 1 includes a processor 2, a processor 2, Multiplexer 3, bitmap memory 4, ratio 1 bit circuit 5
, register 6, breakpoint control circuit 7,
It is composed of AND gate 8 and the like. Also, an actual computer 10 that executes a program to be debugged.
includes a processor 11 and a memory (not shown). The debug device 1 is connected to the real computer 10 through a data/bus 12, an at9/res node 13, a control bus 14, etc., which are connected to the processor 11 of the real computer 10. If the processor 11 of the actual computer 10 is 8 bits, the bitmap memory 4 has a storage capacity of, for example, 256.times.1 bit. The address input of the bitmap memory 4 is connected via the multiplexer 3 to the data bus 12 of the real computer 10 or to the address 15 connected to the processor 2 of the differential gear device 1. The register 6 stores the address value to be broken, and the comparison circuit 5 compares the contents of the register 6 with the data on the Aviles bus 13 of the actual computer 10. Address data is written to the register 6 from the processor 2 via the data bus 16 of the debug device 1.
第2図を参照して第1図の装置の動作を説明する。オ(
レータは、まず、図示しないキーボードを介してデバッ
グ装置のプロセッサ2にブレークすべきアドレス1直お
よびデータ]直を入力する。プロセッサ2はこの入力情
報にしたがってデータバス16を介してブレークすべき
アドレス値を格納亥る。ま・た、アドレスバス15およ
びマルチプレクサ3を介してビットマツプメモリ4のア
ドレス入力にブレークすべきデータ値を入力し、該デー
タ値で表わされるアドレスのビットをオン、例えば′1
″とする。この時、指定以外のビットはオフ、例えはO
11とする。もし、ブレークすべきデータ値が複数ある
場合は、ビットマツプメモリ4の複数のアドレスのビッ
トがそれぞれオンとされる。次に、実機コンピュータ1
0によりデバッグの対象となるプログラムを実行させる
。これにより、実機コンピュータ10のアト9レスバス
13およびデータバス12上にそれぞれ該プログラムの
各命令に応じてアドレス値およびデータ値が表われる。The operation of the apparatus shown in FIG. 1 will be explained with reference to FIG. O(
The controller first inputs the address 1 and data 1 to be broken into the processor 2 of the debugging device via a keyboard (not shown). Processor 2 stores the address value to be broken via data bus 16 in accordance with this input information. In addition, a data value to be broken is input to the address input of the bitmap memory 4 via the address bus 15 and the multiplexer 3, and the bit at the address represented by the data value is turned on, for example '1'.
''. At this time, bits other than the specified one are off, for example, O
11. If there are multiple data values to be broken, the bits at multiple addresses in the bitmap memory 4 are respectively turned on. Next, the actual computer 1
0 causes the program to be debugged to be executed. As a result, address values and data values appear on the address bus 13 and data bus 12 of the actual computer 10, respectively, in accordance with each instruction of the program.
デバッグ装置1においては、比較回路5によりレジスタ
6に格納されたアト9レス値と実機コンピュータ10の
アビレスバス13上のアドレスデータとが比較される。In the debugging device 1, the comparison circuit 5 compares the address value stored in the register 6 with the address data on the Aviles bus 13 of the real computer 10.
もし両者が一致すれば、比較回路5は例えば高しくルの
信号を出力してアンドゲート8の1つの入力に印加する
。また、実機コンピュータ10のデータバス12上のデ
ータ信号がマルチプレクサ5を介してビットマツプメモ
リ4のアドレス入力に印加される。ビットマツプメモリ
4は該データ値をアドレスとして読み出しを行ない該ア
ビレスのビットがオンであれは高レベルの信号を出力し
てアンドゲート8に印加する。さらに、この時実機コン
トロ−ル10のコントロールバス14からアント9ゲー
ト8に入力されるメモリ書き込み信号が高し梗ルであれ
は、すなわち実機コン、ピユータ10においてメモリ書
き込み中であれば、アンドゲート8の出力が高レベルと
なり、該高レベルの信号はブレークポイント検出信号と
してブレークポイントコントロール回路7およびプロセ
ッサ2に入力される。ブレークポイントコントロール回
路7は、該ブレークポイント検出信号の入力に応じて実
機コンピュータ10のプロセッサ11をホールトさせる
。このようにして、実機コンピュータ10のメモリの所
定のアドレスにおけるデータが参照され、該データが予
め指定された値であり、かつ実機コントロ−ル10のメ
モリが書き込み中であれはブレーク動作か行なわれる。If they match, the comparator circuit 5 outputs, for example, a high signal and applies it to one input of the AND gate 8. Further, the data signal on the data bus 12 of the real computer 10 is applied to the address input of the bitmap memory 4 via the multiplexer 5. The bitmap memory 4 reads out the data value as an address and outputs a high level signal to be applied to the AND gate 8 if the abiles bit is on. Furthermore, if the memory write signal inputted from the control bus 14 of the actual machine control 10 to the ant 9 gate 8 at this time is high and low, that is, if the actual machine computer 10 is writing to memory, the AND gate 8 becomes high level, and the high level signal is input to the breakpoint control circuit 7 and processor 2 as a breakpoint detection signal. The breakpoint control circuit 7 halts the processor 11 of the real computer 10 in response to the input of the breakpoint detection signal. In this way, data at a predetermined address in the memory of the real computer 10 is referenced, and if the data is a prespecified value and the memory of the real machine controller 10 is being written, a break operation is performed. .
なお、プロセッサ2からビットマツプメモリ4およびマ
ルチプレクサノ゛3に入力されている薔き込み信号Wは
ビットマツプメモリ4の書き込みモードと読み出しモー
ドとの切り換えを行なうと共に、マルチプレクサ3の入
力の切り換え動作を制御するために使用される。Note that the input signal W input from the processor 2 to the bitmap memory 4 and the multiplexer 3 switches the bitmap memory 4 between the write mode and the read mode, and also switches the input of the multiplexer 3. used to control.
第1図は本発明の1実施例に係わるデバッグ装置の構成
を示す概略的ブロック回路図、そして第2図は第1図の
装置の動作を説明するためのフローチャートである。
1・・・・・デバッグ装置、2・・・・・・プロセッサ
、3・・・・・・マルチプレクサ、4・・・・・・ピッ
I・マツプメモリ、5・・・・・・比較回路、6・・・
・・・レジスタ、7・・・・・・ブレークポイントコン
トロール回路、8・・・・・・アント9ゲート、10・
・・・・・実機コンピュータ、11・・・・・・プロセ
ッサ、12・・・・・・データバス、13・・・・・・
アビレスバス、14・・・・・・コントロールバス、1
5・・・・・・アドレス入力、16・・・・・・データ
バス。
特許出願人 立石電機株式会社
代理人 弁理士 伊東辰雄
代理人 弁理士 伊東哲也FIG. 1 is a schematic block circuit diagram showing the configuration of a debugging device according to an embodiment of the present invention, and FIG. 2 is a flowchart for explaining the operation of the device shown in FIG. DESCRIPTION OF SYMBOLS 1...Debug device, 2...Processor, 3...Multiplexer, 4...PiI map memory, 5...Comparison circuit, 6 ...
...Register, 7...Break point control circuit, 8...Ant 9 gate, 10.
... Actual computer, 11 ... Processor, 12 ... Data bus, 13 ...
Aviles bus, 14... Control bus, 1
5...Address input, 16...Data bus. Patent applicant Tateishi Electric Co., Ltd. Agent Patent attorney Tatsuo Ito Agent Patent attorney Tetsuya Ito
Claims (1)
信号およびコントロール信号を取出してプログラムデバ
ッグを行なうデバッグ装置であって、該デバッグ装置は
ブレークすべきアビレス値を格納するレジスタと、ブレ
ークすべきデータ値に対応するアドレスのビットに所定
値のデータを記憶したビットマツプメモリと、実機コン
ピュータシステムからのアドレス信号と該レジスタから
読み出したアドレス信号との一致を検出する比較回路と
を具備し、実機コンピュータシステムの動作時に該比較
回路で一致が検出され、実機コンピュータシステムのデ
ータ信号をアト9レスとして読み出した該ビットマツプ
メモリの出力が前記所定値であり、かつ実機コンピュー
タシステムのメモリが書き込み中である場合にブレーク
動作を行なうことを特徴とするデバッグ装置。A debugging device that debugs a program by extracting at9res signals, data signals, and control signals from an actual computer system, and the debugging device has a register that stores an abyss value that should be broken, and a register that corresponds to the data value that should be broken. It is equipped with a bitmap memory that stores data of a predetermined value in the address bits to be read, and a comparison circuit that detects a match between the address signal from the actual computer system and the address signal read from the register, and the operation of the actual computer system. When a match is detected in the comparator circuit, the output of the bitmap memory from which the data signal of the actual computer system is read out as at9less is the predetermined value, and the memory of the actual computer system is in the process of writing, a break occurs. A debug device characterized by performing operations.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58036557A JPS59163653A (en) | 1983-03-08 | 1983-03-08 | Debug device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58036557A JPS59163653A (en) | 1983-03-08 | 1983-03-08 | Debug device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS59163653A true JPS59163653A (en) | 1984-09-14 |
Family
ID=12473053
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP58036557A Pending JPS59163653A (en) | 1983-03-08 | 1983-03-08 | Debug device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS59163653A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08221299A (en) * | 1995-02-16 | 1996-08-30 | Nec Corp | Program evaluation device |
JP2008175027A (en) * | 2007-01-22 | 2008-07-31 | Hitachi Constr Mach Co Ltd | Construction machine frame structure |
-
1983
- 1983-03-08 JP JP58036557A patent/JPS59163653A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08221299A (en) * | 1995-02-16 | 1996-08-30 | Nec Corp | Program evaluation device |
JP2008175027A (en) * | 2007-01-22 | 2008-07-31 | Hitachi Constr Mach Co Ltd | Construction machine frame structure |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS63111545A (en) | Microprocessor for debug | |
US6581120B1 (en) | Interrupt controller | |
JPS59163653A (en) | Debug device | |
JPS59165158A (en) | Debugging device | |
US5218606A (en) | Current-spare switching control system | |
JPH0581087A (en) | Processor monitoring system | |
JPS60233743A (en) | Fault detecting circuit of computer system | |
JP3110222B2 (en) | Microcomputer | |
JPS608962A (en) | Storage information temporary failure detection method | |
JP3019336B2 (en) | Microprocessor development support equipment | |
JPH04115339A (en) | Memory error processing system | |
JPS5891598A (en) | Data processor | |
JPS59202546A (en) | Debugging device | |
JPH02302855A (en) | Memory control system | |
JPS60225941A (en) | Microprogram control device | |
JPS61138344A (en) | Debugging system | |
JPH07319724A (en) | Emulation cpu | |
JPS6175939A (en) | Duplicate garbage collector malfunction detection circuit | |
JPH04182839A (en) | Debugging system for microprogram | |
JPS62256138A (en) | Data processor | |
JPH04365145A (en) | Memory fault processing method | |
JPH0498329A (en) | Fault recovery system | |
JPH01154259A (en) | Data trace system | |
JPS6043745A (en) | computer system | |
JPH03168845A (en) | Instruction execution control system |