JPS63143636A - Break point controller - Google Patents

Break point controller

Info

Publication number
JPS63143636A
JPS63143636A JP61291794A JP29179486A JPS63143636A JP S63143636 A JPS63143636 A JP S63143636A JP 61291794 A JP61291794 A JP 61291794A JP 29179486 A JP29179486 A JP 29179486A JP S63143636 A JPS63143636 A JP S63143636A
Authority
JP
Japan
Prior art keywords
breakpoint
execution
program
break point
memory
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
JP61291794A
Other languages
Japanese (ja)
Inventor
Yutaka Mikuriya
御厨 豊
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP61291794A priority Critical patent/JPS63143636A/en
Publication of JPS63143636A publication Critical patent/JPS63143636A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To efficiently attain the developing work of software by setting up a break point by means of a software using a memory. CONSTITUTION:Prior to the execution of a debugged program, a break point is previously stored in a memory 14. The addresses of the memory 14 correspond to the execution addresses of a program and the existence of execution stop and the comment of the break point are stored in all execution areas correspondingly to each instruction. Thereby, a flag is set up in an interruption bit 18 of an execution address to be stopped at its execution and the comment of the break point is entered in a break point entering bit 19. At the time of executing the program, a break point control device refers the contents of the memory 14 every time a CPU fetches an instruction. When the flag of the interruption bit 18 is detected, the CPU starts interruption processing, reads the break point type entering bit 19 and is turned to a break state.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明はソフトウェアの開発段階において。[Detailed description of the invention] [Industrial application field] This invention was made at the software development stage.

被デバツグプログラムを実行したとき、非常にた(さん
の上記プログラム停止箇所(ブレークポイント)が設定
できるブレークポイント制御装置に関するものである。
This invention relates to a breakpoint control device that can set very specific program stop points (breakpoints) when a program to be debugged is executed.

開発したプログラムの動作確認(デバング)はプログラ
ムの不良箇所の検出、又プ四グラムカウンタ等の動作確
認を容易に行うために、上記プログラムを数段階に分割
して行う。したがって、上記プログラムの実行停止箇所
を制御するブレークポイント制御装置が必要となる。
The operation check (debugging) of the developed program is performed by dividing the program into several stages in order to easily detect defective parts of the program and check the operation of the program counter, etc. Therefore, a breakpoint control device is required to control the point at which execution of the program is stopped.

〔従来の技術〕[Conventional technology]

第5図は従来から用いられているブレークポイント制御
回路の一例である。図においてOIはエミュレータバス
、 e2L @、 64. QL @uo P U(O
entral Processing Unit)バス
(8)とインターフェースできるレジスタであυアドレ
スが個々に割付けられている。罰、(イ)、 (21,
(至)、 ((+1は、2つの入力を比較する比較器、
03は論理和回路である。
FIG. 5 shows an example of a conventionally used breakpoint control circuit. In the figure, OI is the emulator bus, e2L @, 64. QL @uo P U(O
These are registers that can interface with the internal processing unit (processing unit) bus (8) and are individually assigned υ addresses. Punishment, (a), (21,
(to), ((+1 is a comparator that compares two inputs,
03 is an OR circuit.

第5図において被デバツグプログラムを実行する前にあ
らかじめレジスタE、 03)、 124)、(ハ)、
@に任意の実行停止要因を記憶する。例えばレジスタの
には希望するブレークポイントの実行アドレスそしてレ
ジスタ(至)K16次の実行アドレスを又レジスタコ着
にはブレークポイントとして書き込み命令等任意のコマ
ンドを指定等が考えられる。
In FIG. 5, registers E, 03), 124), (c),
Store any execution stop factor in @. For example, it is conceivable to designate the desired breakpoint execution address and the next execution address of register (to) K16 in the register, and to designate any command such as a write command as a breakpoint in the register (to).

第5図に示す通多レジスタ02は比較器−とレジスタ(
ハ)は比較器−とレジスタc!4は比較器−と、レジス
タ(ハ)は比較器(至)とレジスタ(イ)は比較器C3
11とそれぞれ1組になっている。被デパックプログラ
ムを実行すると、エシュレータバスae上の実行アドレ
スやコマンド等の信号は比較器−,@、 (2L[有]
Onに入力し先にレジスタ器、(ハ)、(財)、(至)
、(イ)に設定したデータと逐次比較される。比較器−
,+28)。
The communication register 02 shown in FIG. 5 includes a comparator and a register (
C) is the comparator and register c! 4 is the comparator -, register (C) is the comparator (to), and register (A) is the comparator C3.
There are 11 sets each. When the program to be depacked is executed, signals such as execution addresses and commands on the escalator bus ae are sent to the comparators -, @, (2L [with]
Input to On and register first, (c), (goods), (to)
, is successively compared with the data set in (a). Comparator
, +28).

c2!I、(至)、01)の比較結果は論理和回路O3
によって論理和を取p、ブレークポイント検出時は計算
処理部に対して被デバツグプログラムの実行停止要求を
出力する。計算処理部は実行停止要求を受付けると上記
プログラムの実行を現状を維持したまま停止する。
c2! I, (to), 01) comparison result is OR circuit O3
The logical sum is calculated by p, and when a breakpoint is detected, a request to stop the execution of the program to be debugged is output to the calculation processing section. When the calculation processing unit receives the execution stop request, it stops the execution of the program while maintaining the current state.

従来のブレークポイント制御装置は、上記のように構成
されているため、ブレークポイントの数はレジスタのむ
よシ多く設定できない。
Since the conventional breakpoint control device is configured as described above, the number of breakpoints cannot be set to a value that is too large for the number of registers.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来のブレークポイント制御装置に設定できるブレーク
ポイントの数はレジスタ及び比較器の数に比例している
。したがってたくさんのブレークポイントを設定しよう
とした場合、レジスタ及び比較器の数が比例して増えて
しまうという問題点があった。
The number of breakpoints that can be set in a conventional breakpoint controller is proportional to the number of registers and comparators. Therefore, when attempting to set a large number of breakpoints, there is a problem in that the number of registers and comparators increases proportionally.

また、ブレークポイント制御装置がブレークポイントを
検出してOPHに割シ込み信号を送出した場合、CPU
はその割り込み信号に対応したブレークポイントの意味
またはタイプを判定することができない問題点があった
Also, if the breakpoint control device detects a breakpoint and sends an interrupt signal to OPH, the CPU
had the problem that it was not possible to determine the meaning or type of the breakpoint corresponding to the interrupt signal.

この発明はこのような問題点を解消するためになされた
ものであり非常にたくさんのブレークポイントを設定し
ても回路を大型化、複雑化すること無く機能を果たしま
た。ブレークポイントを検出したときOPUへの割シ込
み信号と一緒に、ブレークポイントタイプ信号を送出で
きるブレークポイント制御装置を得ることを目的とする
ものである。
This invention was made to solve these problems, and even if a large number of breakpoints are set, it can still function without making the circuit larger or more complicated. It is an object of the present invention to provide a breakpoint control device that can send a breakpoint type signal together with an interrupt signal to an OPU when a breakpoint is detected.

し問題点を解決するための手段〕 との発明にかかるブレークポイント制御装置はソフトウ
ェアによる制御手段と、ap’aとのデータインターフ
ェース手段とブレークポイントの条件判定手段とブレー
クポイントタイプの判定手段とを設けたものである。
The breakpoint control device according to the invention includes software control means, data interface means with ap'a, breakpoint condition determination means, and breakpoint type determination means. It was established.

〔作用〕[Effect]

この発明においては予じめメモリにブレークポイント及
びブレークポイントのタイプを格納しておき、プログラ
ムを実行すると、遂次メモリの内容を参照しブレークポ
イント検出時におけるCPHの割り込みを制御する。
In this invention, breakpoints and breakpoint types are stored in memory in advance, and when a program is executed, the contents of the memory are successively referenced to control CPH interrupts when a breakpoint is detected.

〔実施例〕〔Example〕

第1図はこの発明によるブレークポイント制御装置の一
実施例の全体構成図である。この実施例は第1図から明
らかなようにOP U fl)と各種■10ポート・ブ
リフエラル(周辺装置〕、メモリ等(2)を接続するC
PUバス(8)にブレークポイント制御装置(3)を接
続したものでろるつ インターフェース手段IJ /dブレークポイント制御
装置(3)がCPUバス(8)とインターフェース又は
モニタするための手段でろるっブレークポイント設定手
段+5)Fiブレークポイントの位置や条件を記憶し、
そしてブレークポイントタイプ設定手段16)はブレー
クポイントの意味や理由をコメントとして記憶しておく
っブレークポイント設定手段(5)及びブレークポイン
トタイプ設定手段(61はメモリ等の大容量の記憶装置
で実現する、上記の設定を完了し被デバツグプログラム
を実行するとブレークポイント判定手段+71[OPU
バス18)のエミュレーション情報を元にブレークポイ
ント設定手段(5)に記憶された内容を参解しブレーク
ポイントを検出すると実行停止要求信号(9)をOP 
U (1+に送出するように構成されている。
FIG. 1 is an overall configuration diagram of an embodiment of a breakpoint control device according to the present invention. As is clear from FIG.
A breakpoint control device (3) is connected to the PU bus (8) and is an interface means IJ /d A means for interfacing or monitoring the breakpoint control device (3) with the CPU bus (8). Point setting means + 5) Memorize the position and conditions of Fi breakpoints,
The breakpoint type setting means 16) stores the meaning and reason of the breakpoint as a comment.The breakpoint setting means (5) and the breakpoint type setting means (61) are realized by a large-capacity storage device such as memory. When the above settings are completed and the debugged program is executed, the breakpoint determination means +71 [OPU
Based on the emulation information of the bus 18), refer to the contents stored in the breakpoint setting means (5), and when a breakpoint is detected, the execution stop request signal (9) is opened.
U (1+).

次に上記実施例の動作を第2図〜第4図を参照しながら
説明するっ第2図はブレークポイント制御装置(3)の
回路構成図、第3図はメモリ0沿のメモリフオーマント
を示すっ又第4図にはブレークポイント制御装置の動作
フローチャートを示す。
Next, the operation of the above embodiment will be explained with reference to FIGS. 2 to 4. FIG. 2 shows the circuit configuration of the breakpoint control device (3), and FIG. 3 shows the memory formant along memory 0. Also shown in FIG. 4 is an operational flowchart of the breakpoint control device.

被デバツグプログラムを実行する前にメモリ04)にブ
レークポイントを記憶する、メモ1月14のアドレスは
上記プログラムの実行アドレスに対応しておシ、全実行
エリアについて1命令づつに対応して実行停止の有無と
ブレークポイントのコメントを記憶する、したがって実
行の停止を希望する実行アドレスには、第3図に示す割
込みbitQ81にフラグを立て、ブレークポイント記
入bitQ!lにはブレークポイントのコメントを記入
するつ次に上記プログラムを実行するとブレークポイン
ト制御装置はo P U filが命令をフェツチする
ごとに、メモIJ(141の内容を参照する7割込みピ
ント081rri直接にOPHの割込み入力端子に接続
しているので9割込みピント08のフラグを検出すると
0PUfllは割込み処理を開始しメモリ(141のブ
レークポイントタイプ記入ビット09を読込みブレーク
状態となろう再度プログラムが実行されると同様の動作
をプログラム終了まで繰り返す、 以上説明した内容を第4図のフローチャートに示す、 ステップ8,0はブレークポイントをメモリ(14に設
定する期間でろシブレークポイントの設定が終了すると
被デバツグプログラムの実行をステップCで開始する。
Before executing the program to be debugged, store a breakpoint in memory 04). The address in Memo January 14 corresponds to the execution address of the above program, and executes one instruction at a time for all execution areas. At the execution address where you want to memorize the presence or absence of a stop and the breakpoint comment, and therefore want to stop execution, set a flag in interrupt bit Q81 shown in FIG. When the above program is executed each time the above program is executed, the breakpoint control device directly writes the interrupt pin 081rri, which refers to the contents of the memo IJ (141), every time o P U fil fetches an instruction. Since it is connected to the interrupt input terminal of OPH, when the flag of 9 interrupt pin 08 is detected, 0PUflll starts interrupt processing, reads the breakpoint type entry bit 09 of memory (141), and enters the break state.The program is executed again. The same operation as above is repeated until the end of the program. The content explained above is shown in the flowchart in Figure 4. Step 8, 0 is a period for setting breakpoints in memory (14). Execution of the program begins at step C.

ステップdでは現実行アドレスがブレークポイントであ
るか判断する。ブレークポイントでない場合は9次の実
行アドレスを実行する。ブレークポイントである場合O
PHに割込み要求をステップθで実施してメモリ(+4
1からブレークポイントタイプ記入ピットa9をステッ
プfで読み、ステップgでブレークする。再度プログラ
ムの実行が開始されると次の実行アドレスを実行する。
In step d, it is determined whether the actual row address is a breakpoint. If it is not a breakpoint, execute the 9th execution address. O if it is a breakpoint
An interrupt request is made to the PH in step θ, and the memory (+4
1 to read the break point type entry pit a9 in step f, and break in step g. When program execution starts again, the next execution address is executed.

このような動作をプログラム終了までステップhで監視
される。
Such operations are monitored in step h until the end of the program.

〔発明の効果〕〔Effect of the invention〕

以上のようにこの発明によればブレークポイントの設定
を従来のハードウェアで対処していたものをメモリを用
いたソフトウェアで対処するようにしたので回路を複雑
にすることなくブレークポイントが多(設定できまた。
As described above, according to the present invention, breakpoint settings, which were handled by conventional hardware, are now handled by software using memory, so many breakpoints can be set without complicating the circuit. I can do it again.

ブレークポイントの性格全判断できるのでソフトウェア
開発作業が効率的に行なえる。
Since the characteristics of breakpoints can be fully determined, software development work can be carried out efficiently.

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

第1図はこの発明によるブレークポイント制御装置の一
笑流側の全体構成図、第2図はブレークポイント制御装
置本体の構成図、第3図はその構成品であるメモリのフ
ォーマットを示す図、第4図はこの発明の動作フローチ
ャート、第5図は従来のブレークポイント制御装置の回
路図で必る。 図において+13[OP U、 +31はブレークポイ
ント制御装置、18)はOPUバス、(9)は実行停止
要求信号。 a■はエミュレータバス、αBはアドレスバス、α2F
iデータバス、aSはインターフェース回路である。 なお図中同一あるいは相当部分は同一符号を付して示し
である。
FIG. 1 is an overall configuration diagram of the first part of the breakpoint control device according to the present invention, FIG. 2 is a configuration diagram of the main body of the breakpoint control device, FIG. 3 is a diagram showing the format of the memory that is a component of the device, and FIG. FIG. 4 is an operational flowchart of the present invention, and FIG. 5 is a circuit diagram of a conventional breakpoint control device. In the figure, +13 [OPU, +31 is a breakpoint control device, 18) is an OPU bus, and (9) is an execution stop request signal. a■ is the emulator bus, αB is the address bus, α2F
The i data bus, aS, is an interface circuit. In addition, the same or corresponding parts in the figures are indicated by the same reference numerals.

Claims (1)

【特許請求の範囲】[Claims] ソフトウェア開発時に行なうプログラムのデバング作業
において上記プログラムの実行を行なう計算機処理部の
ブレークポイントおよびブレークポイントの状態を設定
記憶する記憶部と、プログラム実行段階で現実行アドレ
スがブレークポイントであるか否かを上記記憶部の内容
をもとに判定し、ブレークポイントであるときプログラ
ム実行停止要求信号を上記計算機処理部に出力するブレ
ークポイント判定手段と、上記計算機処理部と上記記憶
部、および上記計算機処理部と上記ブレークポイント判
定手段との情報の授受を行うインターフェース手段とを
具備したことを特徴とするブレークポイント制御装置。
In program debugging work performed during software development, there is a storage unit that sets and stores breakpoints and breakpoint states for the computer processing unit that executes the program, and a storage unit that stores the breakpoint status at the program execution stage. a breakpoint determination means that determines based on the contents of the storage section and outputs a program execution stop request signal to the computer processing section when the breakpoint is reached; the computer processing section, the storage section, and the computer processing section; and interface means for exchanging information with the breakpoint determining means.
JP61291794A 1986-12-08 1986-12-08 Break point controller Pending JPS63143636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61291794A JPS63143636A (en) 1986-12-08 1986-12-08 Break point controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61291794A JPS63143636A (en) 1986-12-08 1986-12-08 Break point controller

Publications (1)

Publication Number Publication Date
JPS63143636A true JPS63143636A (en) 1988-06-15

Family

ID=17773514

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61291794A Pending JPS63143636A (en) 1986-12-08 1986-12-08 Break point controller

Country Status (1)

Country Link
JP (1) JPS63143636A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100452056C (en) * 2007-06-25 2009-01-14 威盛电子股份有限公司 System and method for resolving memory content

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100452056C (en) * 2007-06-25 2009-01-14 威盛电子股份有限公司 System and method for resolving memory content

Similar Documents

Publication Publication Date Title
KR940011670B1 (en) Interrupt controller
JPS63111545A (en) Microprocessor for debug
US5257269A (en) Error controller for use in debugging microprocessor
JPS63143636A (en) Break point controller
JPS59183443A (en) Debug device
JPH0283749A (en) Internal interruption control system for microprocessor
JP2684966B2 (en) I / O processor debug device
JPS6211745B2 (en)
JPH04262426A (en) Microprocessor
JPH0635760A (en) Buffer device with tracing function
JPS6091458A (en) Program debug device of microprocessor
JPH0333939A (en) Microprocessor
JPH04330549A (en) Controller
JPH02144744A (en) Lsi with external memory diagnozing function
JPH0721767B2 (en) Emulation method
JPH05151021A (en) Debugging system using debugger with built-in resident area
JPS61210441A (en) Bug detecting method for program
JPH0477883A (en) Single chip microcomputer
JPH0782447B2 (en) DMA data transfer control device
JPH01161544A (en) Program tracing system
JPS61201344A (en) Microcomputer
JPS58175062A (en) Debugging processing method
JPH01114945A (en) Tracing system for data processor
JPH03168845A (en) Instruction execution control system
JPH0375909B2 (en)