JPS59226955A - Program debug device - Google Patents

Program debug device

Info

Publication number
JPS59226955A
JPS59226955A JP58103155A JP10315583A JPS59226955A JP S59226955 A JPS59226955 A JP S59226955A JP 58103155 A JP58103155 A JP 58103155A JP 10315583 A JP10315583 A JP 10315583A JP S59226955 A JPS59226955 A JP S59226955A
Authority
JP
Japan
Prior art keywords
address
program
memory
comparison circuit
input
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
JP58103155A
Other languages
Japanese (ja)
Inventor
Toshio Awaji
淡路 俊夫
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP58103155A priority Critical patent/JPS59226955A/en
Publication of JPS59226955A publication Critical patent/JPS59226955A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To detect easily a broken area of a memory which is due to a fault produced during the program debug by providing plural address comparator and recording the input/output data between the check start and end addresses which are set previously. CONSTITUTION:A range of addresses to be checked is first set when a test is carried out. In other words, a check start address is set by a switch STA, and a check end address is set by a switch SPA respectively. Then the data between the set check start and end addresses is recorded in response to the traveling of the program via the 1st, 2nd and 3rd comparators ST.MAT, BL.MAT and SP.MAT respectively. In other words, the input/output data are all recorded in an RAM. With use of these data, a broken area of a memory which is due to a fault generated during the program debug can be detected compared with the conventional case.

Description

【発明の詳細な説明】 (a)0発明の技術分野 本発明はプログラム・デパック装置に係り、特に作成さ
れたプログラムをデパック中に破壊されたメモリを捜し
出す機能を有するプログラム・デパック装置に関するも
のである。
Detailed Description of the Invention (a) 0 Technical Field of the Invention The present invention relates to a program depacking device, and more particularly to a program depacking device having a function of searching for memory destroyed while depacking a created program. be.

山)、従来技術と問題点 データ処理装置を駆動させるプログラムを作成し、実際
に其のプログラムを走らせた場合、メモリを破壊する等
の種々のプログラム・ミスを生ずることがあり、此の為
プログラムをデパックする必要がある。
(Mountain), Prior Art and Problems When creating a program to drive a data processing device and actually running that program, various program errors may occur, such as destroying memory. need to be depacked.

此の様なプログラムのデパックは大変繁雑な仕事であり
、熟練を必要とすると云う欠点がある。
Depacking such a program is a very complicated job and requires skill.

(C)6発明の目的 本発明の目的は従来のプログラム作成の状況を改善する
為プログラム・デパック中に発生したメモリの破壊個所
を捜し出すプログラム・デノく・ツク装置を提供するこ
とである。
(C)6 OBJECTS OF THE INVENTION It is an object of the present invention to provide a program deblocking device for locating memory corruption locations that occur during program depacking in order to improve the conventional program creation situation.

(d)0発明の構成 上記の目的は本発明によれば、プロセ・ノサとメモリを
有するシステムに於いて前記プロセ・ノサから前記メモ
リをアクセスする信号の内少なくともアドレス情報及び
書込みデータ情報を受信し、且つ第一のアドレス比較回
路、第二のアドレス比較回路、第三のアドレス比較回路
を具備し、前記アドレス情報の全部又は一部を前記三個
のアドレス比較回路の一つの入力端に入力し、前記第一
のアドレス比較回路の他の入力端にチェ・ツクしようと
するプログラムのチェ・ツク開始番地を入力し、前記第
二のアドレス比較回路の他の入力端にチェ・ツクしよう
とするメモリのアドレスを入力し、前記第三のアドレス
比較回路の他の入力端にチェ・ツクしようとするプログ
ラムのチェ・ツク終了番地を入力し、前記第一のアドレ
ス比較回路が一致した時以降前記第二のアドレス比較回
路に於い−て一致−の取れた前記アドレス情報の書込み
データ情報を前記アドレス情報に従って該装置内のラン
ダム・アクセス・メモリに書込み、前記第三のアドレス
比較回路が一致した時に、前記書込み動作を停止するこ
とを特徴とするプログラム・デパック装置を提供するこ
とにより達成される。
(d)0 Structure of the Invention According to the present invention, in a system having a processor and a memory, at least address information and write data information of the signals for accessing the memory are received from the processor. and comprises a first address comparison circuit, a second address comparison circuit, and a third address comparison circuit, and inputs all or part of the address information to an input terminal of one of the three address comparison circuits. Then, the check start address of the program to be checked is input to the other input terminal of the first address comparison circuit, and the check start address of the program to be checked is input to the other input terminal of the second address comparison circuit. input the address of the memory to be checked, input the end address of the program to be checked into the other input terminal of the third address comparison circuit, and after the time when the first address comparison circuit matches, The second address comparison circuit writes the write data information of the address information, which has found a match, to the random access memory in the device according to the address information, and the third address comparison circuit finds a match. This is achieved by providing a program depacking device characterized in that the write operation is stopped when the write operation is performed.

(e)0発明の実施例 第1図は本発明の一実施例を示すブロック図である。図
中CPUはプロセッサ、MEMはメモリ、10Cは入出
力装置、5BUSはシステム・ハス、PDBGは本発明
によるプログラム・デパック装置を示す。
(e) 0 Embodiment of the Invention FIG. 1 is a block diagram showing an embodiment of the invention. In the figure, CPU is a processor, MEM is a memory, 10C is an input/output device, 5BUS is a system bus, and PDBG is a program depacking device according to the present invention.

第2図は本発明に依るシステム・バスの一実施例を示す
図である。図中REQはバス・アクセス信号、ACKは
バス・アクセス信号REQに対する応答信号、MEM/
I OはメモリMEMへのアクセス又は入出力装置IO
Cへのアクセスを識別する信号、W/Rは書込み/読み
出しの識別信号、1/PLL’メモリMEMへアクセス
する時インストラクションIかオペランド(データ)P
かを識別する信号、A ddressはアドレス、Da
taはデータを夫々示す。
FIG. 2 is a diagram illustrating one embodiment of a system bus according to the present invention. In the figure, REQ is a bus access signal, ACK is a response signal to the bus access signal REQ, and MEM/
IO is access to memory MEM or input/output device IO
A signal that identifies access to C, W/R is a write/read identification signal, 1/PLL' When accessing memory MEM, instruction I or operand (data) P
A signal that identifies the
ta indicates data, respectively.

第3図の(alはプロセッサCPUがメモリMEMにデ
ータを書き込む時のシーケンスを示す図であり、第3図
のfb)はプロセッサCPUがメモリMEMからデータ
を読み出す時のシーケンスを示す図である。
FIG. 3 (al is a diagram showing a sequence when the processor CPU writes data to the memory MEM, and fb in FIG. 3 is a diagram showing a sequence when the processor CPU reads data from the memory MEM.

第4図は本発明に依るプログラム・デパック装置の構成
を示す図である。
FIG. 4 is a diagram showing the configuration of a program depacking device according to the present invention.

図中、CTLは制御回路、RAMはランダム・アクセス
・メモリ、ST−MATは第1のアドレス比較回路、B
L−MATは第2のアドレス比較回路、SP−MATは
第3のアドレス比較回路、FFはフリップ・フロップ回
路、G1、G2、G3は夫々アンド・ゲート、RVはア
ンプ、BLM。
In the figure, CTL is a control circuit, RAM is a random access memory, ST-MAT is a first address comparison circuit, and B
L-MAT is a second address comparison circuit, SP-MAT is a third address comparison circuit, FF is a flip-flop circuit, G1, G2, and G3 are AND gates, RV is an amplifier, and BLM.

STA、、SPA、、DSP、DPAは夫々スイッチ、
SELは選択回路、Lは表示ランプである。
STA, SPA, DSP, and DPA are switches, respectively.
SEL is a selection circuit, and L is an indicator lamp.

スイッチBLMはチェックしようとするメモリのアドレ
スを設定する為のスイッチ(例えば6単位)であり、ス
イッチSTAはチェックしようとするプログラムのチェ
ック開始番地を設定する為のスイッチ(例えば16単位
)であり、スイッチSPAはチェックしようとするプロ
グラムのチェック終了番地を設定する為のスイッチ(例
えば16単位)であり、スイッチDSPは外部からラン
ダム・アクセス・メモリRAMの内容を見たい時押すス
イッチで、スイッチDPAは其の時チェックしようとす
るメモリのアドレスを設定する為のスイッチ(例えば1
0i位)である。
The switch BLM is a switch for setting the address of the memory to be checked (for example, 6 units), and the switch STA is a switch for setting the check start address of the program to be checked (for example, 16 units), The switch SPA is a switch for setting the check end address of the program to be checked (for example, 16 units), the switch DSP is a switch that is pressed when you want to view the contents of the random access memory RAM from the outside, and the switch DPA is a switch that is pressed when you want to view the contents of the random access memory RAM from the outside. A switch (for example, 1) to set the memory address to be checked at that time.
0i position).

以下図に従って本発明の詳細な説明する。The present invention will be described in detail below with reference to the drawings.

本発明に依るプログラム・デパック装置P’DBGは試
験しようとするプログラムを走行させた侭で破壊された
メモリ個所を捜し出そうとするものであり、第1図に示
す様にプログラム・デパック装置PDBGをシステム・
バス5BUSに接続して使用され、システム・バス5B
USは第2図に示す様に構成されている。
The program depacking device P'DBG according to the present invention attempts to find a memory location that is destroyed while running a program to be tested, and as shown in FIG. 1, the program depacking device P'DBG The system
Used by connecting to bus 5BUS, system bus 5B
The US is configured as shown in FIG.

試験しようとするプログラムが走行すると、プロセッサ
CPUとメモリMEM間で授受するデータData %
アドレスAddressS識別信号1 /P、識別信号
W/R1識別信号M、EM/IO、バス・アクセス信号
REQ、及び応答信号ACKは夫々対応するバスに出力
される。
When the program to be tested runs, data is exchanged between the processor CPU and the memory MEM.
Address S identification signal 1/P, identification signal W/R1 identification signal M, EM/IO, bus access signal REQ, and response signal ACK are output to corresponding buses, respectively.

例えばプロセッサCPUからメモリMEMにデータを書
き込む時は、第3図の(a)に示す様に最初メモリME
Mへのアクセス又は入出力装置IOCへのアクセスを識
別する信号MEM/10、書込み/読み出しの識別信号
W/R、メモリMEMへアクセスする時インストラクシ
ョンIかオペランド(データ)Pかを識別する信号1/
P、メモリMEMの何処の番地に書き込むかを示すアド
レスAddress、及びデータDataの5種類の情
報が夫々のバスに出力され、次にバス・アクセス信号R
EQが対応するバスに出力され、上記動作の完了したと
考えられる時点に応答信号ACKが対応するバスに出力
される。
For example, when writing data from the processor CPU to the memory MEM, as shown in FIG.
Signal MEM/10 for identifying access to M or input/output device IOC, write/read identification signal W/R, signal 1 for identifying instruction I or operand (data) P when accessing memory MEM. /
Five types of information are output to each bus: P, an address indicating which address in the memory MEM to write to, and data Data, and then a bus access signal R is output.
EQ is output to the corresponding bus, and when the above operation is considered completed, a response signal ACK is output to the corresponding bus.

又プロセッサCPUがメモリMEMからデータを読み出
す時も、第3図の(b)に示す様に総ての情報は同じく
対応するバスに出力される。
Also, when the processor CPU reads data from the memory MEM, all information is similarly output to the corresponding bus, as shown in FIG. 3(b).

本発明に依るプログラム・デパック装置PDBGは此の
様なバスにブランチ接続される。
The program depacking device PDBG according to the invention is branch-connected to such a bus.

以下第4図に従って本発明に依るプログラム・デパック
装置PDBGの詳細を説明する。
The details of the program depacking device PDBG according to the present invention will be explained below with reference to FIG.

最初試験しようとするプログラムの何番地から何番地迄
をチェックしようとするかを設定する。
First, set the address to be checked in the program to be tested.

即ちスイッチSTAによりチェック開始番地を設定し、
スイッチSPAによりチェック終了番地を設定し、スイ
ッチBLMによりチェックしたいメモリのアドレスを設
定する。
That is, the check start address is set by switch STA,
The check end address is set by the switch SPA, and the address of the memory to be checked is set by the switch BLM.

以上の状態にして試験しようとするプログラムを第1図
のプロセッサCPUにロードし、プログラムを走らせる
A program to be tested under the above conditions is loaded into the processor CPU shown in FIG. 1, and the program is run.

プログラムが走行して第1のアドレス比較回路ST−M
ATに於いてスイッチSTAにより設定された開始番地
と一致し、同時にメモリMEMへのアクセス信号が制御
回路C’TLに印加されてt2信号が出力されとデー1
−G2F経由フリップ・フロップ回路FFがセットされ
る。
When the program runs, the first address comparison circuit ST-M
At the same time, the access signal to the memory MEM is applied to the control circuit C'TL, and the t2 signal is outputted, and the data 1 is output.
- Flip-flop circuit FF via G2F is set.

次に第2のアドレス比較回路BL−MATに於いて設定
したアドレスと一致するアドレスに入出力する命令が来
ると、第2のアドレス比較回路BL・MATは出力信号
を出し、更にバス・アクセス信号REQが制御回路CT
Lに印加されてt1信号が出力されと、ゲー1=G1は
開き、書込み可能信号(WE)を出し、其の時のデータ
Dataをランダム・アクセス・メモリRAMに書き込
む。
Next, when a command to input/output an address that matches the address set in the second address comparison circuit BL-MAT comes, the second address comparison circuit BL-MAT outputs an output signal and also outputs a bus access signal. REQ is control circuit CT
When the t1 signal is output by applying the t1 signal to L, the gate 1=G1 opens, outputs a write enable signal (WE), and writes the data at that time into the random access memory RAM.

プログラムが更に進行して設定した終了番地になると第
3のアドレス比較回路SP−MATに於いて一致出力を
出し、同様にゲートG3経由フリップ・フロップ回路F
Fをリセツトするのでランダム・アクセス・メモリRA
Mへの書き込みは停止される。
When the program progresses further and reaches the set end address, the third address comparison circuit SP-MAT outputs a match output, and similarly passes through the gate G3 to the flip-flop circuit F.
Since F is reset, random access memory RA
Writing to M is stopped.

此の様に設定したチェック開始番地から終了番地迄の間
に所定のアドレスに入出力したデータを総てランダム・
アクセス・メモリRAMに書き込まれるので、この資料
を利用すれば従来に比し容易にプログラムの欠点を捜し
出すことが出来る。
All the data input and output to the specified address between the check start address and end address set in this way will be randomly generated.
Since the information is written to the access memory RAM, using this material it is easier to find faults in the program than in the past.

尚スイッチDPA、DSP、及び選択回路SELはラン
ダム・アクセス・メモリRAMの内容を見たい時使用す
る操作部である。
The switches DPA, DSP, and selection circuit SEL are operating units used when viewing the contents of the random access memory RAM.

(f)0発明の効果 以上詳細に説明した様に本発明によれば、プログラム・
デパック中に発生したメモリの破壊個所を容易に捜し出
すことが出来ると云う大きい効果がある。
(f) Effects of the invention As explained in detail above, according to the present invention, the program
This has a great effect in that it is possible to easily find the location of memory corruption that occurred during depacking.

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

第1図は本発明の一実施例を示すブロック図である。 第2図は本発明に依るシステム・バスの一実施例を示す
図である。 第3図の(alはプロセッサCPUがメモリMEMにデ
ータを書き込む時のシーケンスを示す図であり、第3図
の(blはプロセッサCPUがメモリMEMからデータ
を読み出す時のシーケンスを示す図である。 第4図は本発明に依るプログラム・デパック装置の構成
を示す図である。 阜 1 目 ¥−2旧 峯 、3 日 (α) (h)
FIG. 1 is a block diagram showing one embodiment of the present invention. FIG. 2 is a diagram illustrating one embodiment of a system bus according to the present invention. (al in FIG. 3 is a diagram showing a sequence when the processor CPU writes data to the memory MEM, and (bl in FIG. 3 is a diagram showing a sequence when the processor CPU reads data from the memory MEM. Fig. 4 is a diagram showing the configuration of the program depacking device according to the present invention.

Claims (1)

【特許請求の範囲】[Claims] プロセッサとメモリを有するシステムに於いて前記プロ
セッサから前記メモリをアクセスする信号の内少なくと
もアドレス情報及び書込みデータ情報を受信し、且つ第
一のアドレス比較回路、第二のアドレス比較回路、第三
のアドレス比較回路を具備し、前記アドレス情報の全部
又は一部を前記三個のアドレス比較回路の一つの入力端
に入力し、前記第一のアドレス比較回路の他の入力端に
チェックしようとするプログラムのチェック開始番地を
入力し、前記第二のアドレス比較回路の他の入力端にチ
ェックしようとするメモリのアドレスを入力し、前記第
三のアドレス比較回路の他の入力端にチェックしようと
するプログラムのチェック終了番地を入力し、前記第一
のアドレス比較回路が一致した時以降前記第二のアドレ
ス比較回路に於いて一致の取れた前記アドレス情報の書
込みデータ情報を前記アドレス情報に従って該装革内の
ランダム・アクセス・メモリに書込み、前記第三のアド
レス比較回路が一致した時に、前記書込み動作を停止す
ることを特徴とするプログラム・デパック装置。
A system having a processor and a memory, which receives at least address information and write data information among signals for accessing the memory from the processor, and further comprises a first address comparison circuit, a second address comparison circuit, and a third address. A program comprising a comparison circuit, inputting all or part of the address information to one input terminal of the three address comparison circuits and checking the other input terminal of the first address comparison circuit. Input the check start address, input the address of the memory to be checked into the other input terminal of the second address comparison circuit, and input the address of the memory to be checked into the other input terminal of the third address comparison circuit. Input the check end address, and after the first address comparison circuit matches, the second address comparison circuit writes the write data information of the address information that matches according to the address information. A program depacking device that writes to a random access memory and stops the write operation when the third address comparison circuit matches.
JP58103155A 1983-06-09 1983-06-09 Program debug device Pending JPS59226955A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58103155A JPS59226955A (en) 1983-06-09 1983-06-09 Program debug device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58103155A JPS59226955A (en) 1983-06-09 1983-06-09 Program debug device

Publications (1)

Publication Number Publication Date
JPS59226955A true JPS59226955A (en) 1984-12-20

Family

ID=14346610

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58103155A Pending JPS59226955A (en) 1983-06-09 1983-06-09 Program debug device

Country Status (1)

Country Link
JP (1) JPS59226955A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7689667B2 (en) * 2002-02-21 2010-03-30 International Business Machines Corporation Protocol to fix broken links on the world wide web

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7689667B2 (en) * 2002-02-21 2010-03-30 International Business Machines Corporation Protocol to fix broken links on the world wide web

Similar Documents

Publication Publication Date Title
JPS5813932B2 (en) Storage device multiple use control method
JPS59226955A (en) Program debug device
JPS60549A (en) Memory testing system
JPH01155452A (en) System for confirming connection of data processing system
JPH06309185A (en) Information processor
JPS6041150A (en) Storage device control system
JPH0793225A (en) Memory check system
JP3190694B2 (en) Diagnostic method for local memory
JPH03126147A (en) Test system for external storage device
JP2000330733A (en) Disk array device
JPS6258354A (en) Test method for main memory
JPS61228544A (en) Write protection system
JPS61138344A (en) Debugging system
JPS63187444A (en) Test equipment for magnetic tape device
JPH0619631A (en) Initialization system for storage device
JPH07122857B2 (en) Information processing equipment
JPS63136238A (en) Microprogram control device
JPS58182761A (en) Data checking system
JPH0480860A (en) Program loading system
JPH08123734A (en) Methods for checking occurrence of data destruction in data storing area and program runaway and methods for searching causes of data destruction occurrence and program runaway
JPS6091457A (en) Program test system
JPS63200248A (en) Memory access processing system
JPS617947A (en) Control storage device
JPS59111551A (en) Operation recorder
JPH01321529A (en) Initial diagnostic system for device