JPS59202546A - Debugging device - Google Patents

Debugging device

Info

Publication number
JPS59202546A
JPS59202546A JP58076300A JP7630083A JPS59202546A JP S59202546 A JPS59202546 A JP S59202546A JP 58076300 A JP58076300 A JP 58076300A JP 7630083 A JP7630083 A JP 7630083A JP S59202546 A JPS59202546 A JP S59202546A
Authority
JP
Japan
Prior art keywords
memory
address
processor
program
data
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
JP58076300A
Other languages
Japanese (ja)
Inventor
Haruo Takagi
高木 治夫
Yoshinori Takahashi
義則 高橋
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.)
Omron Corp
Original Assignee
Tateisi Electronics Co
Omron Tateisi Electronics Co
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 Tateisi Electronics Co, Omron Tateisi Electronics Co filed Critical Tateisi Electronics Co
Priority to JP58076300A priority Critical patent/JPS59202546A/en
Publication of JPS59202546A publication Critical patent/JPS59202546A/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 attain the step execution of the high class language level by using a bit map memory storing a data of prescribed value to a bit corresponding to a head address of the high class language step. CONSTITUTION:Prior to the execution of a high class language symbolic step, a multiplexer 7 of a debugging device 1 is changed over so as to connect an address bus 14 of a processor 2 and an address input of the bit map memory 8 thereby bringing the state of the memory 8 into the write state. Further, a prescribed value (e.g., 1 to the head address and 0 to other addresses) of data is written into the memory 8 based on the head address table of each high class language step being output information from a compiler (not shown). Then, when the debugging operator requests for the execution of step from a keyboard 5, an output of an AND gate 12 goes to 1 only when an output of the memory 8 is at level 1 so as to break a processor 21 of an active machine 20.

Description

【発明の詳細な説明】 (発明の分野) 本発明は、プロセッサを備えた機器サーなわら実機に疑
続され、この実機のプログラムデバッグを行なうデバッ
グ装置に関し、特に高級言語で作成された制御プログラ
ムをデバッグする際に、高級言語レベルのステップ実行
を可能としたデバッグ装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of the Invention) The present invention relates to a debugging device that is connected to an actual device including a processor and performs program debugging of the actual device, and in particular, relates to a debugging device that debugs a program of the actual device, especially when a control program written in a high-level language is used. This invention relates to a debugging device that enables step execution at a high-level language level when debugging.

(発明の背景) 従来、高級言語レベルでのステップ実行を行なう方法と
して、例えば特殊デバッグ用のマシンコードを挿入して
ステップ実行を行なうなどの方法が知られている。しか
し、このような方法によると、実際に使用するプログラ
ムと異なるプログラムをデバッグ対象としなければなら
ず、また、デバッグ用のオブジェクトとしてコンパイラ
に特別な指示を与える必要があるなどの不便さがあった
(Background of the Invention) Conventionally, as a method of performing step execution at a high-level language level, a method is known in which, for example, machine code for special debugging is inserted and step execution is performed. However, with this method, there are inconveniences such as the need to debug a program different from the program actually used, and the need to give special instructions to the compiler as a debug object. .

(発明の目的) 本発明は、上述の従来形における問題点に鑑み、デバッ
グ装置において、実際に使用覆るプログラムのままで高
級言語レベルでのステップ実行を可能と覆ることを目的
とする。
(Object of the Invention) In view of the above-mentioned problems with the conventional system, an object of the present invention is to enable step execution at a high-level language level using a program actually used in a debugging device.

(発明の構成および効果) 本発明は、ブレーク機能を有するデバッグ装置において
、実機のプログラムメモリのアドレス空間に対応しかつ
高級言語ステップの先頭アドレスに対応するビットに所
定値のデータを記憶したビットマツプメモリを用いるこ
とにより該先頭アドレスごとにブレーク動作を行なうこ
とによって高級言語レベルでのステップ実行ずなわち高
級シンボリックステップ実行を可能にするという構想に
基づくもので、本発明によると、実稼動状態のプログラ
ム機械コードのままで高級言語レベルでのデバッグを行
なうことができる。また、高級言語デバッガとしてステ
ップ実行可能であると同時に制御プログラムを実時間モ
ードで実行させることも可能である。
(Structure and Effects of the Invention) The present invention provides a debugging device having a break function that uses a bit map that stores data of a predetermined value in bits that correspond to the address space of the program memory of an actual machine and correspond to the start address of a high-level language step. This invention is based on the concept of enabling step execution at a high-level language level, that is, high-level symbolic step execution, by performing a break operation at each start address using memory. It is possible to debug the program machine code at a high-level language level. Furthermore, it is possible to perform step execution as a high-level language debugger, and at the same time, it is also possible to execute control programs in real-time mode.

(実施例の説明) 以下、図面により本発明の詳細な説明する。(Explanation of Examples) Hereinafter, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明の1実施例に係わるデバッグ装置の概
略を示す。同図のデバッグ装置1はプロセッサ(CPU
2)2、メモリ3、数字表示器またはCTR等で構成さ
れる表示器4、キーボード5、■ミュレーションインタ
ーフエース回路6、マルチプレクサ7、ビットマツプメ
モリ8、コン1〜ロール回路9、フリップフロップ10
.ブレークコン1へロール回路11、アンドゲート12
等を具備する。デバッグの対象となるブdグラムを実行
する実機20は、プロセラ+llCPU1)21および
該プロセッサ21の制御プログラムが格納されたプログ
ラムメモリ22を具備する。プロセッサ21とメモリ2
2とはコントロールバス23、アドレスバス24および
データバス25を含むシステムバスによって接続されて
いる。実I! 20のコントロールバス23、アドレス
バス24およびデータバス25はそれぞれデバッグ装置
1のコントロールバス13、アドレスバス14およびデ
ータバス15にデバッグ装置1のエミュレーションイン
ターフェース回路6を介して接続されている。
FIG. 1 schematically shows a debugging device according to an embodiment of the present invention. The debug device 1 in the figure is a processor (CPU)
2) 2. Memory 3, display 4 consisting of a numeric display or CTR, etc., keyboard 5, simulation interface circuit 6, multiplexer 7, bitmap memory 8, controller 1 to roll circuit 9, flip-flop 10
.. Breakcon 1 to roll circuit 11, and gate 12
etc. The actual machine 20 that executes the program to be debugged includes a processor+11CPU 1) 21 and a program memory 22 in which a control program for the processor 21 is stored. Processor 21 and memory 2
2 are connected to each other by a system bus including a control bus 23, an address bus 24, and a data bus 25. Real I! The 20 control buses 23, address buses 24, and data buses 25 are connected to the control bus 13, address bus 14, and data bus 15 of the debug device 1, respectively, via the emulation interface circuit 6 of the debug device 1.

また、実m20のアドレスバス24はデバッグ装置1の
マルチプレクサ7に接続されている。
Further, the address bus 24 of the real m20 is connected to the multiplexer 7 of the debug device 1.

ビットマツプメモリ8は、実機20のプログラムメモリ
22のアドレスバスに対応したビット数を有づるメモリ
であり、例えばプログラムメモリ22が64にバイトの
容量を有する場合にはごツー1〜マツプメモリは64に
ビットの容量を有する。
The bitmap memory 8 is a memory whose number of bits corresponds to the address bus of the program memory 22 of the actual machine 20. For example, if the program memory 22 has a capacity of 64 bytes, the map memory 8 has a number of bits corresponding to 64 bytes. It has a capacity of

マルチプレクサ7は、実は20のアドレスバス24とデ
バッグ装置1のアドレスバス14の内いずれかをピッ1
へマツプメモリ8のアドレス入力に切換接続するだめの
ものである。
The multiplexer 7 actually selects one of the 20 address buses 24 and the address bus 14 of the debug device 1.
This is for switching connection to the address input of the hemap memory 8.

次に第1図のデバッグ装置の動作を第2図のフローチせ
一トを参照して説明する。
Next, the operation of the debugging device shown in FIG. 1 will be explained with reference to the flowchart shown in FIG.

第1図の回路においては、高級言語シンボリックステッ
プ実行に先立って、デバッグ装置1のマルチプレクサ7
がプロセッサ2のアドレスバス14どビットマツプメモ
リ8のアドレス入力とを接続するように切り換えるとと
もにコントロール回路9からビットマツプメモリ8に書
込信号Wを印加してビットマツプメモリ8を書込状態に
する。
In the circuit shown in FIG. 1, the multiplexer 7 of the debugging device 1 is
switches to connect the address bus 14 of the processor 2 with the address input of the bitmap memory 8, and also applies a write signal W to the bitmap memory 8 from the control circuit 9 to put the bitmap memory 8 into a write state. .

そして、図示しないコンパイラからの出ノj情報である
各高級言語ステップの先頭アドレステーブルに基づいて
、ビットマツプメモリ8にはプロセッサ2のアドレスバ
ス14およびデータパスコ5からこの先頭アドレスに対
応するアドレスに所定値のデータを書込む。所定値のデ
ータとしては、例えば、前記先頭アドレスに対応するア
ドレスに111 I+が書込まれる。また、他のアドレ
スには110 I+が書込まれる。
Then, based on the start address table of each high-level language step, which is output information from a compiler (not shown), the bitmap memory 8 receives an address corresponding to this start address from the address bus 14 of the processor 2 and the data passcode 5. Write data of predetermined value. As the predetermined value data, for example, 111 I+ is written to the address corresponding to the start address. Furthermore, 110 I+ is written to other addresses.

このようにして、ピッ1−マツプメモリ8に高級言語ス
テップのすべての先頭アドレスに対して所定値のデータ
が書込まれた後、デバッグオペレータがキーボード5等
を介して被デバツグプログラムに対するステップ実行要
求を行なうと、以下のように実機20の高級言語シンポ
リンクステップ実行を行なう。すなわち、プロセッサ2
は書込信号を遮断してビットマツプメモリ8を読出状態
にし、マルチプレクサ7を実1120のアドレスバス2
4とビットマツプメモリ8のアドレス入力とを接続する
状態に設定し、コントロール回路9を介してフリップフ
ロップ10をセットしてデバッグ装置1をステップ°実
行モードに切り換えた後、コントロール回路9を通じて
ブレークコントロール回路11に実120のプロセッサ
21のラン信号を送出する。これにより、プロセッサ2
1はブレークコン1〜ロール回路11よりラン信号が与
えられ実機20のプログラムを実行する。
In this way, after predetermined data values have been written to the pin 1-map memory 8 for all the start addresses of the high-level language steps, the debug operator issues a step execution request to the program to be debugged via the keyboard 5 or the like. When this is done, the high-level language sympolink step execution of the actual machine 20 is performed as follows. That is, processor 2
interrupts the write signal, puts the bitmap memory 8 in the read state, and connects the multiplexer 7 to the address bus 2 of the real 1120.
4 and the address input of the bitmap memory 8 are connected, and the flip-flop 10 is set via the control circuit 9 to switch the debugging device 1 to step execution mode, and then the break control is performed via the control circuit 9. The run signal of the actual 120 processors 21 is sent to the circuit 11. This allows processor 2
1 receives a run signal from the break controller 1 to the roll circuit 11 and executes the program of the actual machine 20.

この時、実機20のプロセッサ21からプログラムメモ
リ22がアクセスされて命令の実行が行なわれるが、プ
ロセッサ21からアドレスバス24を介してメモリ22
に入力されるアドレスデータはマルチプレクサ7を介し
てヒツトマツプメモリ8のアドレス入力に印加される。
At this time, the program memory 22 is accessed from the processor 21 of the actual machine 20 and instructions are executed.
The address data input to the address data is applied to the address input of the hit map memory 8 via the multiplexer 7.

このため、ピッ1ヘマツプメモリ8は、実態20におい
てアクセスされたプログラムメモリ22のアドレスと同
じアドレスによってアクセスされその読出出力が出力端
子0tJTを介してアンドゲート12の一方の入力に印
加される。アンドゲート12の他方の入力にはフリップ
フロップ10の出力が印加されているが、このフリップ
フロップ10はステップ実行の要求がなされたときセッ
トされているから、ビットマツプメモリ8の出力が高級
言語ステップの先頭アドレスを示す位置すなわちレヘル
゛′1″のときアンドゲート12の出ツノがレヘル” 
1 ”になる。これによりブレークコン1〜ロール回路
11は実機20のプロセッサ21をブレークさせるとと
もにブレークの発生をデバッグ装置1のプロセッサ2に
知らせる。このブレークがずなわら高級言語ベースでの
1ステツプの終了時点である。、 FJ″Cいてフリッ
プフロップ10をリセッ1−シて初期状態に戻し、一連
の高級言語シンボリッ、クステップ実行動作を終了する
Therefore, the p1 hemmap memory 8 is accessed by the same address as the address of the program memory 22 accessed in the embodiment 20, and its read output is applied to one input of the AND gate 12 via the output terminal 0tJT. The output of the flip-flop 10 is applied to the other input of the AND gate 12. Since this flip-flop 10 is set when a step execution request is made, the output of the bitmap memory 8 is applied to the high-level language step. In other words, when the position indicating the first address of ``1'' is level, the output of the AND gate 12 is ``level''.
As a result, the break controller 1 to the roll circuit 11 break the processor 21 of the actual device 20 and notify the processor 2 of the debugging device 1 of the occurrence of the break. , FJ''C, the flip-flop 10 is reset to its initial state, and a series of high-level language symbolic step execution operations are completed.

なお、デバッグ装置1がステップ実行モー1〜に設定さ
れていない場合、実機20のプロセッサ21がラン指示
されたときは、フリップフロップ10がリセットされて
いるので、上記手順にJ:るブレークの発生は起きず、
従って実時間モートによる被デバツグプログラムの実行
が可能である。
Note that if the debug device 1 is not set to step execution mode 1~, the flip-flop 10 is reset when the processor 21 of the actual device 20 is instructed to run, so a break occurs in the above procedure. didn't happen,
Therefore, the program to be debugged can be executed by a real-time mote.

なお、上述の実施例においてはデバッグ装置とは別個の
コンパイラを用いているが、このデバッグ装置にコンパ
イラ(傾面を持たせるようにしてもよい。
In the above-described embodiment, a compiler separate from the debugging device is used, but the debugging device may also have a compiler (inclined).

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

第1図は本発明の1実施例に係るデバッグ装置の概略の
構成を示すブロック図、第2図は第1図のデバッグ装置
の動作説明のためのフローチャートである。 1・・・デバッグ装置、2・・・プロセラ゛す、8・・
・ビットマツプメモリ、11・・・ブレークコントロー
ル回路、13.23・・・コントロールバス、14.2
4・・・アドレスバス、15.25・・・データバス、
2o・・・実機、21・・・プロセッサ、22・・・プ
ログラムメモリ。 特許出願人 立石電機株式会社 代理人 弁理士 伊東辰雄 代理人 弁理士 伊東哲也
FIG. 1 is a block diagram showing a general 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 debugging device shown in FIG. 1. 1...Debug device, 2...Processor, 8...
・Bitmap memory, 11...Break control circuit, 13.23...Control bus, 14.2
4...address bus, 15.25...data bus,
2o... Actual machine, 21... Processor, 22... Program memory. Patent applicant Tateishi Electric Co., Ltd. Agent Patent attorney Tatsuo Ito Agent Patent attorney Tetsuya Ito

Claims (1)

【特許請求の範囲】[Claims] 1、プロセッサと、高級言語により作成されコンパイル
された該プロセッサの制御プログラムを記憶したプログ
ラムメモリとを具備する実機の、システムバスもしくは
該プロセッサのリード端子からアドレス信号、データ信
号およびコントロール信号を取出してプログラムデバッ
グを行なうデバッグ装置であって、該デバッグ装置は、
該プログラムメモリのアドレス空間に対応しかつ各高級
言語ステップの先頭アドレスに対応するビットに所定値
のデータを記憶したビットマツプメモリを具備し、該実
機を動作させることにより該プログラムメモリがアクセ
スされたときアクセスされたメモリアドレスによって該
ビットマツプメモリをアクセスし、該ビットマツプメモ
リから該所定値のデータが読出されたとぎブレーク動作
を行なうことにより高級言語シンボリックステップ実行
を行なうことを特徴とするデバッグ装置。
1. Retrieving address signals, data signals, and control signals from a system bus or a read terminal of the processor of an actual machine that includes a processor and a program memory that stores a control program for the processor created and compiled in a high-level language. A debug device for debugging a program, the debug device comprising:
A bitmap memory is provided in which predetermined value data is stored in bits corresponding to the address space of the program memory and corresponding to the start address of each high-level language step, and the program memory is accessed by operating the actual machine. A debugging device characterized in that the bitmap memory is accessed according to a memory address accessed at the time, and a break operation is performed when data of the predetermined value is read from the bitmap memory, thereby performing high-level language symbolic step execution. .
JP58076300A 1983-05-02 1983-05-02 Debugging device Pending JPS59202546A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58076300A JPS59202546A (en) 1983-05-02 1983-05-02 Debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58076300A JPS59202546A (en) 1983-05-02 1983-05-02 Debugging device

Publications (1)

Publication Number Publication Date
JPS59202546A true JPS59202546A (en) 1984-11-16

Family

ID=13601514

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58076300A Pending JPS59202546A (en) 1983-05-02 1983-05-02 Debugging device

Country Status (1)

Country Link
JP (1) JPS59202546A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61180342A (en) * 1985-02-06 1986-08-13 Omron Tateisi Electronics Co Step execution system for high level language
JPS61213936A (en) * 1985-03-18 1986-09-22 Omron Tateisi Electronics Co Step execution system for high-level language program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61180342A (en) * 1985-02-06 1986-08-13 Omron Tateisi Electronics Co Step execution system for high level language
JPS61213936A (en) * 1985-03-18 1986-09-22 Omron Tateisi Electronics Co Step execution system for high-level language program

Similar Documents

Publication Publication Date Title
US5132971A (en) In-circuit emulator
JPH06314213A (en) Debugging device
JPH011039A (en) In-circuit emulator
JPH11110255A (en) Software debugging device and method
JPS59202546A (en) Debugging device
JPH0477833A (en) Integrated circuit provided with debugging environment
JP2005353020A (en) Simulation system for computer program
JPS59202547A (en) Debugging device
JPH0550016B2 (en)
JPS59202548A (en) Debugging device
JPH0581087A (en) Processor monitoring system
JPS59202550A (en) Debugging device
JPS61163445A (en) Computer development support system
JPH04123235A (en) Debugging method and system for microprogram
JPS63271542A (en) Rom debugger
JPS59163653A (en) Debug device
JPH01145740A (en) Emulator for multi-process
JPS59103158A (en) Debug system of digital signal processing program
JPS59151250A (en) Debugging device
JPS59151247A (en) Testing device of information processing device
JPH05342377A (en) Microcomputer
JPS59158449A (en) Debugging device
JPH05204710A (en) Event tracer
JPH0573358A (en) Coverage system and emulator
JPS63289653A (en) In-circuit emitter