JPH02230336A - Information processor - Google Patents

Information processor

Info

Publication number
JPH02230336A
JPH02230336A JP1050626A JP5062689A JPH02230336A JP H02230336 A JPH02230336 A JP H02230336A JP 1050626 A JP1050626 A JP 1050626A JP 5062689 A JP5062689 A JP 5062689A JP H02230336 A JPH02230336 A JP H02230336A
Authority
JP
Japan
Prior art keywords
address
instruction
destroyed
write
register
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
JP1050626A
Other languages
Japanese (ja)
Inventor
Masaki Okano
正樹 岡野
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 Corp
Original Assignee
NEC Corp
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 Corp filed Critical NEC Corp
Priority to JP1050626A priority Critical patent/JPH02230336A/en
Publication of JPH02230336A publication Critical patent/JPH02230336A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To accurately retrieve the existence address of a target write instruction in a short time by setting a destroyed address from an external panel when the address is destroyed by means of a program bug. CONSTITUTION:When the address is destroyed by the program bug, the destroyed address is stored in a register 30 when the address where the instruction being the cause exists is retrieved. When a mode which has been set in a maintenance mode setting part 10 is a debug mode, the content of the register 30 comes to the input of a comparison circuit 50 by an AND circuit 40. On the other hand, the content of a write address storage register 70 storing the write address comes to be the input of the comparison circuit 50 when an instruction which is accompanied by a write action is executed. When the compared result coincide in the comparison circuit 50, address coincident signals 55 and 56 are turned on and a debug interruption occurs in a debug interruption generation circuit 95. Thus, the instruction address where the instruction exists is accurately and easily seized.

Description

【発明の詳細な説明】 皮丘圀1 本発明は情報処理装置に関し、特にプログラムデバグ機
能を有する情報処理装置に関する.良氷蓋韮 従来、破壊された番地に対する破壊原因となった書込み
命令が存在する番地を探索するために、プログラムリス
ト上で当該破壊された番地をオベランド番地とする書込
み命令を探し出す方法がある. また他の方法として次の様なものがある.実際にプログ
ラムを10〜100ステップ程度の小ステップ群ずつ走
行させ、走行後に被破壊番地をチェックして破壊されて
いなければ、次の小ステップ群に移行し、前記と同様の
操作を繰返す.そして、破壊原因となった書込み命令の
存在する番地範囲を次第に狭めてゆき、破壊原因となっ
た書込み命令の存在番地を最終的に得るという方法もあ
る.上述した従来の方法のうち前者の方法では、破壊さ
れた番地への破壊原因となった書込み命令をプログラリ
ストから探すのに、破壊された番地をオペランド番地と
する書込み命令をチェックしてゆくものであるが、人間
の不注意により見落として発見できない場合がある.ま
た、生成されるオペランド番地には、情報処理装置が走
行してから決定されるもの(レジスタによる番地修飾は
、レジスタ内の値がオペランド番地の一部となる)もあ
り、リスト上の目視だけでは限界がある.一方、実際に
プログラムを少しずつ走行させ目的とする命令を探すと
いう後者の方法では、10〜100ステップ程度の小ス
テップ群を実行しその都度、被破壊番地をチェックする
ものであるため、例えば、10,000ステップ程度の
プログラムでも、前記の動作を100回も、繰返すこと
になりデバグに多大の時間を要するという欠点がある.
i匪座1ヱ 本発明の目的は、正確かつ短時間に目的とする書込み命
令の存在番地を探索可能な情報処理装置を促供すること
である. 九肌血璽羞 本発明による情報処理装置は、書込み動作を実施してい
る命令の書込み番地を格納する格納手段と、予め設定さ
れた被破壊番地と前記書込み番地とが一致したときデバ
グ割込みを発生させる手段と、同じくこれ等両番地が一
致したとき前記書込み動作を実施し・た命令の存在する
番地を出力する手段とを有することを特徴とする. 衷■コ 次に、本発明の実施例を図面を参照して詳細に説明する
. 第1図は本発明の実施例のブロック図である.図におい
て、1は外部パネルであり、保守モード設定部10と被
破壊番地設定部20とを有している.30は被破壊番地
設定部20に予め設定された被破壊番地を格納するレジ
スタである.40は保守モード設定部10の出力とレジ
スタ30の内容とを2人力とするアンド回路であり、保
守モード設定部10に設定されたモードがデバグモード
の場合に、オンとなってレジスタ30の内容を導出する
. 50はこのアンド回路40の出力であるレジスタ30の
内容《被破壊番地)と書込み番地記憶レジスタ70の内
容とを比較する比較回路である.このレジスタ70には
書込み動作を伴う命令が実施されると、そのときの書込
み番地が一時格納される.この比較回#150の比較結
果である両レジスタ30.70の番地が一致を示した場
合、番地一致信号線55及び56が共にオンとなる.9
5はこの番地一致信号線56を受けてデバグ割込信号線
98をオンとするためのデバグ割込回路である. 60は書込み動作を伴う命令が実施されたときにその命
令の存在する番地を格納する書込み動作命令番地記憶レ
ジスタである.80はこのレジスタ60の内容と比較回
路50の番地一致信号I155とを2人力とするアンド
回路であり、このアンド回路80の出力が破壊動作命令
番地記憶レジスタ90へ導入される. かかる構成において、プログラムのバグによりある番地
が破壊された場合、その原因となった命令の存在する番
地を探索する時に、当該破壊された番地が予め設定部2
0により設定されレジスタ30に記憶される.このレジ
スタ30の内容は、保守モード設定部10に設定された
モードがデバグモードの場合は、アンF回路40により
、比較回路50の入力となる. 一方、書込動作を伴う命令が実施された場合に、その時
の書込番地を記憶する書込番地記憶レジスタ70の内容
が比較回路50の入力となる.この比較回路50では、
比較結果が一致した場合は比較回路50の出力である番
地一致信号線55及び56が共にオンとなる.デバグ割
込発生回路95は番地一致信号線56がオンの場合に、
デバグ割込信号線98をオンとしてデバグ割込みを発生
させる. また、書込動作を伴う命令が実施された場合に、その命
令の存在する番地を記憶する書込動作命令番地記憶レジ
スタ60の出力がアンド回路80の入力となっている.
一方比較回F#I50において比較結果が一致した場合
は、その出力である番地一致信号線55がオンとなり、
アンド回路80の入力となる.番地一致信号線55がオ
ンの場合は、書込動作命令番地記憶レジスタ60の内容
がアンド回路80の出力となり、書込動作を伴う命令が
実施された命令の存在する番地が破壊動作命令番地記憶
レジスタ90に出力され記憶されることになる. このように、本発明による情報処理装置では、被破壊番
地設定部20で設定した番地と書込番地記憶レジスタ7
0の番地とが一致したとき、デバグ割込み発生させるこ
とができ、この割込みに応じてデバグ用プログラムを起
動することができる.また、破壊動作を実施した命令の
存在番地を破壊動作命令番地記憶レジスタ90へ記憶す
ることも可能となる. 九肌ム皇1 本発明によれば、ある番地がプログラムバグにより破壊
された場合に、被破壊番地を外部パネルより設定するこ
とにより、その原因となった命令の存在する命令番地が
正確にかつ容易に捕捉でき、同時にデバグ割込みにより
デバグ用プログラムを起動させることができるという効
果がある.
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an information processing device, and particularly to an information processing device having a program debugging function. Conventionally, in order to search for the address where the write instruction that caused the destruction of the destroyed address exists, there is a method of searching the program list for a write instruction that makes the destroyed address the overland address. There are also other methods as follows. Actually, the program is run in small step groups of about 10 to 100 steps, and after each run, the destroyed address is checked and if it is not destroyed, the program moves to the next small step group and the same operations as above are repeated. Another method is to gradually narrow down the address range where the write instruction that caused the destruction exists, and finally obtain the address where the write instruction that caused the destruction exists. Among the conventional methods described above, in the former method, the program list is searched for the write instruction that caused the destruction to the destroyed address by checking for write instructions that have the destroyed address as the operand address. However, due to human carelessness, it may be overlooked and not discovered. Additionally, some of the generated operand addresses are determined after the information processing device is running (address modification by registers means that the value in the register becomes part of the operand address), so it can only be determined visually on the list. There is a limit. On the other hand, in the latter method of actually running the program little by little and searching for the target instruction, a group of small steps of about 10 to 100 steps are executed and the address to be destroyed is checked each time, so for example, Even in a program with about 10,000 steps, the above-mentioned operations have to be repeated 100 times, so debugging takes a lot of time.
An object of the present invention is to provide an information processing device that can accurately and quickly search for an address where a target write command exists. An information processing apparatus according to the present invention includes a storage means for storing a write address of an instruction executing a write operation, and a debug interrupt when a preset address to be destroyed matches the write address. and means for outputting the address where the instruction that executed the write operation exists when the two addresses match. Next, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram of an embodiment of the present invention. In the figure, reference numeral 1 denotes an external panel, which has a maintenance mode setting section 10 and a destruction address setting section 20. Reference numeral 30 is a register for storing the address to be destroyed that has been set in advance in the address to be destroyed section 20. Reference numeral 40 denotes an AND circuit that handles the output of the maintenance mode setting section 10 and the contents of the register 30 by two people, and when the mode set in the maintenance mode setting section 10 is the debug mode, it is turned on and the contents of the register 30 are input. Derive. 50 is a comparison circuit that compares the contents of the register 30 (destroyed address), which is the output of the AND circuit 40, and the contents of the write address storage register 70. When an instruction involving a write operation is executed, the write address at that time is temporarily stored in this register 70. If the addresses of both registers 30 and 70 show a match as a result of comparison #150, both address match signal lines 55 and 56 are turned on. 9
5 is a debug interrupt circuit for receiving this address match signal line 56 and turning on a debug interrupt signal line 98. Reference numeral 60 denotes a write operation instruction address storage register that stores the address at which an instruction involving a write operation exists when the instruction is executed. Reference numeral 80 denotes an AND circuit that combines the contents of this register 60 and the address match signal I155 of the comparator circuit 50, and the output of this AND circuit 80 is introduced into the destructive operation instruction address storage register 90. In such a configuration, if a certain address is destroyed due to a bug in the program, when searching for the address where the instruction that caused the problem exists, the destroyed address is preset in the setting section 2.
It is set by 0 and stored in the register 30. When the mode set in the maintenance mode setting section 10 is debug mode, the contents of this register 30 are input to the comparator circuit 50 by the unF circuit 40. On the other hand, when an instruction involving a write operation is executed, the contents of the write address storage register 70 that stores the write address at that time become input to the comparator circuit 50. In this comparison circuit 50,
If the comparison results match, address match signal lines 55 and 56, which are the outputs of the comparison circuit 50, are both turned on. When the address match signal line 56 is on, the debug interrupt generation circuit 95
Turn on the debug interrupt signal line 98 to generate a debug interrupt. Furthermore, when an instruction involving a write operation is executed, the output of the write operation instruction address storage register 60 that stores the address where the instruction exists is input to the AND circuit 80.
On the other hand, if the comparison results match in the comparison circuit F#I50, the output address match signal line 55 is turned on.
This becomes the input to the AND circuit 80. When the address match signal line 55 is on, the contents of the write operation instruction address storage register 60 become the output of the AND circuit 80, and the address where the instruction that has been executed with the write operation exists is the destructive operation instruction address storage. It will be output to register 90 and stored. As described above, in the information processing apparatus according to the present invention, the address set by the address to be destroyed setting unit 20 and the write address storage register 7
When the address 0 matches, a debugging interrupt can be generated, and a debugging program can be started in response to this interrupt. Furthermore, it is also possible to store the existing address of the instruction that executed the destructive operation in the destructive operation instruction address storage register 90. According to the present invention, when a certain address is destroyed due to a program bug, by setting the destroyed address from the external panel, the instruction address where the instruction that caused the destruction exists can be accurately and This has the advantage of being easy to capture, and at the same time allowing a debug program to be started using a debug interrupt.

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

第1図は本発明の実施例のブロック図である.主要部分
の符号の説明 20・・・・・・被破壊番地設定部 30・・・・・・被破壊番地記憶レジスタ50・・・・
・・比較回路 60・・・・・・書込み動作命令番地記憶レジスタ70
・・・・・・書込み番地記憶レジスタ95・・・・・・
デバグ割込発生回路
FIG. 1 is a block diagram of an embodiment of the present invention. Explanation of symbols of main parts 20...Destroyed address setting section 30...Destroyed address storage register 50...
... Comparison circuit 60 ... Write operation command address storage register 70
...Write address storage register 95...
Debug interrupt generation circuit

Claims (1)

【特許請求の範囲】[Claims] (1)書込み動作を実施している命令の書込み番地を格
納する格納手段と、予め設定された被破壊番地と前記書
込み番地とが一致したときデバグ割込みを発生させる手
段と、同じくこれ等両番地が一致したとき前記書込み動
作を実施した命令の存在する番地を出力する手段とを有
することを特徴とする情報処理装置。
(1) Storage means for storing the write address of the instruction executing the write operation; means for generating a debug interrupt when a preset address to be destroyed matches the write address; an information processing apparatus comprising: means for outputting an address where an instruction that executed the write operation exists when the instructions match.
JP1050626A 1989-03-02 1989-03-02 Information processor Pending JPH02230336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1050626A JPH02230336A (en) 1989-03-02 1989-03-02 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1050626A JPH02230336A (en) 1989-03-02 1989-03-02 Information processor

Publications (1)

Publication Number Publication Date
JPH02230336A true JPH02230336A (en) 1990-09-12

Family

ID=12864191

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1050626A Pending JPH02230336A (en) 1989-03-02 1989-03-02 Information processor

Country Status (1)

Country Link
JP (1) JPH02230336A (en)

Similar Documents

Publication Publication Date Title
JPS5886648A (en) Tracing device
JPH02230336A (en) Information processor
JP3213792B2 (en) Logic simulation verification method
JP2977951B2 (en) Arithmetic unit
JPH02235150A (en) Information processor
JPH06202907A (en) Debug support device
JPH06103110A (en) Breakpoint setting system
JPS63163543A (en) Information processor
JPH04140851A (en) Diagnostic system for information processor
JPS6270947A (en) Control system for debug interruption
JPH01287486A (en) Test pattern program generating device
JPS5952349A (en) Instruction pre-fetch controller
JPS60147849A (en) System for debugging microprogram
JPS62154035A (en) System developing supporting device
JPH02242444A (en) Debugging mechanism for information processor
JPS61240342A (en) Microprogram controller
JP2001067245A (en) Simulation method and simulation device
JPS63191243A (en) Collection system for jump history data
JPS6140648A (en) Break point setting device
JPH0573347A (en) Emulation device
JPS62127949A (en) Debug system for digital signal processing processor
JPH0258135A (en) Information processor
JPH02242445A (en) Debugging mechanism for information processor
JPS638949A (en) Program inspection device
JPH02188840A (en) Data processor