Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2978658B2 - Program development support device - Google Patents
[go: Go Back, main page]

JP2978658B2 - Program development support device - Google Patents

Program development support device

Info

Publication number
JP2978658B2
JP2978658B2 JP4314491A JP31449192A JP2978658B2 JP 2978658 B2 JP2978658 B2 JP 2978658B2 JP 4314491 A JP4314491 A JP 4314491A JP 31449192 A JP31449192 A JP 31449192A JP 2978658 B2 JP2978658 B2 JP 2978658B2
Authority
JP
Japan
Prior art keywords
data
program
address
predetermined area
stored
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.)
Expired - Fee Related
Application number
JP4314491A
Other languages
Japanese (ja)
Other versions
JPH06161737A (en
Inventor
健 中尾
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.)
NIPPON DENKI AISHII MAIKON SHISUTEMU KK
Original Assignee
NIPPON DENKI AISHII MAIKON SHISUTEMU KK
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 NIPPON DENKI AISHII MAIKON SHISUTEMU KK filed Critical NIPPON DENKI AISHII MAIKON SHISUTEMU KK
Priority to JP4314491A priority Critical patent/JP2978658B2/en
Publication of JPH06161737A publication Critical patent/JPH06161737A/en
Application granted granted Critical
Publication of JP2978658B2 publication Critical patent/JP2978658B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明はプログラム開発支援装置
に関し、特にマイクロ・コンピュータプログラム開発な
どに使用されるプログラム開発支援装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program development support device, and more particularly to a program development support device used for microcomputer program development.

【0002】[0002]

【従来の技術】マイクロ・コンピュータなどのプログラ
ム開発時、対象プログラムの所定域例えば外部割り込み
処理などにおいて、設計上の誤りやプログラム命令の記
述ミスなどにより、不正なデータの書き換えやデータ破
壊をしてしまうことがある。
2. Description of the Related Art When a program such as a microcomputer is developed, in a predetermined area of a target program, for example, external interrupt processing, illegal data is rewritten or destroyed due to a design error or a program instruction description error. Sometimes.

【0003】従来、この種のデータ破壊を検出する場合
には、対象プログラムの所定領域ごとにデータ破壊検出
用プログラムを作成して組み込み、プログラム開発支援
装置のブレーク機能などを用いて検出していた。
Conventionally, when detecting this type of data destruction, a data destruction detection program is created for each predetermined area of the target program, installed, and detected using a break function of a program development support device. .

【0004】次にこの方法の一例について図面を参照し
て説明する。図4は従来のプログラム開発支援装置の一
例を説明するためのブロック図である。このプログラム
開発支援装置は、対象プログラムのブレーク条件を設定
装置8と、対象プログラムのブレークを制御するブレー
ク制御装置9と、対象プログラムとそれが使用する記憶
領域を有する記憶装置7とを有している。
Next, an example of this method will be described with reference to the drawings. FIG. 4 is a block diagram for explaining an example of a conventional program development support device. This program development support device includes a device 8 for setting a break condition of a target program, a break control device 9 for controlling a break of the target program, and a storage device 7 having a target program and a storage area used by the target program. I have.

【0005】図5は図4のプログラム開発支援装置の使
用した動作フローチャートである。まずデータ破壊検査
プログラムについて説明する。データ破壊検査プログラ
ムは、(S14)対象プログラムの先頭アドレス実行時
に実行する検査プログラム1組込みと(S15)末尾ア
ドレス実行時に実行する検査プログラム2組込みの2工
程から構成される。
FIG. 5 is an operation flowchart used by the program development support apparatus of FIG. First, the data destruction inspection program will be described. The data destruction inspection program is composed of two steps: (S14) one inspection program to be executed when executing the start address of the target program, and (S15) two inspection programs to be executed when executing the last address.

【0006】検査プログラム1の処理内容は、(S1
7)まず対象プログラムの所定領域の先頭アドレス実行
時に、(S7)データ破壊の検査をしたいデータ領域の
値を記憶装置の空き領域に退避させる。
The processing content of the inspection program 1 is (S1
7) First, at the time of executing the start address of the predetermined area of the target program, (S7) the value of the data area to be inspected for data destruction is saved in a free area of the storage device.

【0007】検査プログラム2の処理内容は、(S9)
所定領域の末尾アドレス実行時点でのデータ破壊の検査
をしたいデータ領域の値と検査プログラム1で記憶装置
の空き領域に記憶したデータとを比較して、(S21)
その結果一致しなかった場合は特定アドレスへ飛ばすと
いうものである。
The processing contents of the inspection program 2 are described in (S9)
The value of the data area to be checked for data destruction at the time of execution of the end address of the predetermined area is compared with the data stored in the free area of the storage device by the inspection program 1 (S21).
As a result, if they do not match, it is skipped to a specific address.

【0008】これら検査プログラムを、それぞれ対象プ
ログラムに組み込み、(S16)プログラム開発支援装
置のブレーク機能などを用いて検査プログラム2の特定
アドレスでブレーク(S10)させるように設定する。
[0008] Each of these check programs is incorporated into a target program, and (S16) a break is set at a specific address of the check program 2 (S10) using a break function of the program development support device.

【0009】(S4)以上の準備を行った上で、対象プ
ログラムを実行させる。(S19)そしてデータ破壊の
検査を行い検査を全て終了したら、(S20)データ破
壊検査プログラムを対象プログラムから消去していた。
(S4) After making the above preparations, the target program is executed. (S19) Then, the data destruction inspection is performed, and when all the inspections are completed, (S20) the data destruction inspection program is erased from the target program.

【0010】[0010]

【発明が解決しようとする課題】前述した従来のプログ
ラム開発支援装置は、マイクロ・コンピュータなどおけ
る対象プログラムの所定領域において、不正なデータの
書き換えや破壊を検出する場合に、データ破壊検出用の
プログラムを組み込み検査を行っていたため、非常に手
間がかかるという欠点があった。
The above-mentioned conventional program development support apparatus is a program for detecting data destruction when detecting unauthorized data rewriting or destruction in a predetermined area of a target program in a microcomputer or the like. However, there is a disadvantage that it takes a lot of time and labor because the inspection is performed by assembling.

【0011】本発明の目的は、対象プログラムの所定領
域において不正なデータの書き換えや破壊を自動検出す
るプログラム開発支援装置を提供することにある。
It is an object of the present invention to provide a program development support apparatus for automatically detecting unauthorized data rewriting or destruction in a predetermined area of a target program.

【0012】[0012]

【課題を解決するための手段】本発明のプログラム開発
支援装置は、記憶装置に記憶されている対象プログラム
の、所定領域の先頭アドレスと末尾アドレスとをあらか
じめ記憶し、前記対象プログラムが実行されて、前記先
頭アドレスに来た場合には先頭アドレス通過信号を、あ
るいは前記末尾アドレスに来たた場合には末尾アドレス
通過信号をそれぞれ出力するプログラム所定領域検出装
置と、所定のデータ格納領域のアドレスを記憶するアド
レス記憶装置と、前記アドレス記憶装置に記憶されてい
るアドレスに格納されているデータを記憶装置から読み
出すデータ読み出し装置と、前記プログラム所定領域検
出装置の出力により、前記データ読み出し装置が読み出
したデータを記憶するデータ記憶部と、前記データ記憶
装置に記憶されているデータと、前記データ読み出し装
置により読み出されたデータとを比較し、かつ比較結果
を出力するデータ比較装置と、前記データ比較装置の出
力によって、対象プログラムの実行ならびに停止の制御
を行う制御装置とを含んで構成されている。
A program development support apparatus according to the present invention stores in advance a start address and an end address of a predetermined area of a target program stored in a storage device, and executes the target program. A program predetermined area detection device that outputs a head address passing signal when the head address is reached, or a tail address passing signal when the tail address is reached, and an address of a predetermined data storage area. An address storage device for storing, a data reading device for reading data stored at an address stored in the address storage device from the storage device, and an output of the program predetermined area detection device, the data reading device reading the data. A data storage unit that stores data, and a data storage unit that is stored in the data storage device. Data comparing device that compares the data read by the data reading device and outputs a comparison result, and a control device that controls execution and stop of the target program by the output of the data comparing device. It is comprised including.

【0013】[0013]

【実施例】次に本発明について図面を参照して説明す
る。図1は本発明の第1実施例のプログラム開発支援装
置のブロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of a program development support device according to a first embodiment of the present invention.

【0014】本実施例のプログラム開発支援装置は、対
象プログラムの所定領域を検出するプログラム所定領域
検出装置1と、所定領域の先頭アドレス実行時にアドレ
ス記憶装置2で示されるエリアのデータを記憶装置7よ
りデータ記憶装置3へ格納するデータ読み出し装置5
と、末尾アドレス実行時にデータ記憶置3に記憶された
データと、アドレス記憶装置2で示されるエリアのデー
タとを比較するデータ比較装置4と、対象プログラムの
実行および停止の制御、比較データの入力制御およびデ
ータ比較制御する制御装置6とを有して構成されてい
る。図2は図1のブロックの動作を説明するためのフロ
ーチャートである。(S1)まず、ブレーク条件である
対象データ・メモリのアドレスをアドレス記憶置5に設
定する。(S2)所定領域の範囲を決める先頭アドレス
をプログラム所定領域検出装置1内の先頭アドレス記憶
部に設定する。(S3)所定領域の範囲を決める末尾ア
ドレスをプログラム所定領域検出装置1内の末尾アドレ
ス記憶部に設定する。(S4)制御装置6に制御開始要
求信号を送り対象プログラムを実行させる。(S5)プ
ログラム実行後はプログラム所定領域検出装置1により
所定領域の検出を行う。(S6)所定領域の先頭アドレ
スを判断した時点(S7)で、ブレーク条件の対象デー
タ・メモリの値をデータ記憶装置3に記憶させる。(S
8)末尾アドレスが実行されることを判断する。(S
9)そして、所定領域の先頭アドレス実行時にデータ記
憶装置3に一時退避した対象データ・メモリの値と、末
尾アドレス実行時の対象データ・メモリの値をデータ比
較装置4により比較する。(S10)その結果、不一致
なら対象プログラムの実行を停止する。(S11,S1
2)また、一致の場合は、通常のプログラムの命令によ
る実行動作を行う。そして(S5)へ戻る。
The program development support apparatus according to the present embodiment includes a program predetermined area detection device 1 for detecting a predetermined area of a target program, and a storage device 7 for storing data in an area indicated by the address storage device 2 when the start address of the predetermined region is executed. Data reading device 5 for storing data in data storage device 3
A data comparison device 4 for comparing the data stored in the data storage 3 at the time of execution of the end address with data in an area indicated by the address storage device 2, control of execution and stop of the target program, and input of comparison data And a control device 6 for performing control and data comparison control. FIG. 2 is a flowchart for explaining the operation of the block in FIG. (S1) First, the address of the target data memory as a break condition is set in the address storage 5. (S2) The start address for determining the range of the predetermined area is set in the start address storage unit in the program predetermined area detection device 1. (S3) The end address that determines the range of the predetermined area is set in the end address storage unit in the program predetermined area detection device 1. (S4) The control device 6 sends a control start request signal to execute the target program. (S5) After execution of the program, a predetermined area is detected by the program predetermined area detection device 1. (S6) At the time when the start address of the predetermined area is determined (S7), the value of the data memory targeted for the break condition is stored in the data storage device 3. (S
8) Judge that the end address is executed. (S
9) Then, the data comparison device 4 compares the value of the target data memory temporarily saved in the data storage device 3 at the time of executing the start address of the predetermined area with the value of the target data memory at the time of executing the end address. (S10) As a result, if they do not match, the execution of the target program is stopped. (S11, S1
2) In the case of a match, an execution operation is performed according to a normal program instruction. Then, the process returns to (S5).

【0015】次に図1のブロックの他の動作について図
3のフローチャートを用いて説明する。(S1)まず、
ブレーク条件である対象データ・メモリのアドレスをア
ドレス記憶置2に設定する。(S2)次に、所定領域の
範囲を決める先頭アドレスをプログラム所定領域検出装
置1内の先頭アドレス記憶部に設定する。(S4)制御
装置6に制御開始要求信号を送り対象プログラムを実行
させる。(S5)プログラム実行後は、プログラム所定
領域検出装置1により先頭アドレス記憶部に記憶されて
いるアドレスから始まり復帰命令が現れるまでの領域を
所定領域として自動的に検出を行う。
Next, another operation of the block of FIG. 1 will be described with reference to the flowchart of FIG. (S1) First,
The address of the target data memory which is a break condition is set in the address storage 2. (S2) Next, the start address for determining the range of the predetermined area is set in the start address storage unit in the program predetermined area detection device 1. (S4) The control device 6 sends a control start request signal to execute the target program. (S5) After executing the program, the program predetermined area detection device 1 automatically detects an area starting from the address stored in the head address storage unit until the return instruction appears as a predetermined area.

【0016】(S6)所定領域の先頭アドレスを判断し
た時点で、(S7)ブレーク条件の対象データ・メモリ
の値をデータ記憶装置3に記憶させる。(S13)次
に、復帰命令が実行されることを判断する。(S9)そ
して、所定領域の先頭アドレス実行時にデータ記憶装置
3に一時退避した対象データ・メモリの値と、現在の対
象データ・メモリの値をデータ比較装置4により比較す
る。(S10)その結果、不一致なら対象プログラムの
実行を停止する。(S11,S12)また、一致の場合
は、通常のプログラムの命令による実行動作を行い、そ
して(S5)へ戻る。
(S6) When the start address of the predetermined area is determined, (S7) the value of the data memory subject to the break condition is stored in the data storage device 3. (S13) Next, it is determined that the return instruction is executed. (S9) Then, the data comparison device 4 compares the value of the target data memory temporarily saved in the data storage device 3 when the head address of the predetermined area is executed with the current value of the target data memory. (S10) As a result, if they do not match, the execution of the target program is stopped. (S11, S12) In the case of a match, an execution operation is performed according to a normal program instruction, and the process returns to (S5).

【0017】[0017]

【発明の効果】以上説明したように本発明のプログラム
開発支援装置は、マイクロ・コンピュータなどにおける
対象プログラムの所定領域において、不正なデータの書
き換えや破壊を検出する場合に、データ破壊検出用のプ
ログラムを作成し組み込んで検査をすることなく、対象
プログラムの所定領域の不正なデータの書き換えや破壊
を、容易に発見することが出来るという効果を有する。
As described above, the program development support apparatus of the present invention is a program for detecting data destruction when detecting unauthorized data rewriting or destruction in a predetermined area of a target program in a microcomputer or the like. This makes it possible to easily detect rewriting or destruction of unauthorized data in a predetermined area of the target program without performing inspection by creating and incorporating the data.

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

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

【図2】図1のブロックの動作の一例を説明するための
フローチャートである。
FIG. 2 is a flowchart for explaining an example of the operation of the block in FIG. 1;

【図3】図1のブロックの動作の他の例を説明するため
のフローチャートである。
FIG. 3 is a flowchart for explaining another example of the operation of the block in FIG. 1;

【図4】従来のプログラム開発支援装置の一例を示すブ
ロック図である。
FIG. 4 is a block diagram showing an example of a conventional program development support device.

【図5】図4のブロックの動作の一例を説明するための
フローチャートである。
FIG. 5 is a flowchart illustrating an example of the operation of the block in FIG. 4;

【符号の説明】[Explanation of symbols]

1 プログラム所定領域検出装置 2 アドレス記憶装置 3 データ記憶装置 4 データ比較装置 5 データ読み出し装置 6 制御装置 7 記憶装置 DESCRIPTION OF SYMBOLS 1 Program predetermined area detection device 2 Address storage device 3 Data storage device 4 Data comparison device 5 Data reading device 6 Control device 7 Storage device

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 記憶装置に記憶されている対象プログラ
ムの所定領域の先頭アドレスと末尾アドレスとをあらか
じめ記憶し、前記対象プログラムが実行されて、前記先
頭アドレスに来た場合には先頭アドレス通過信号を、あ
るいは前記末尾アドレスに来たた場合には末尾アドレス
通過信号をそれぞれ出力するプログラム所定領域検出装
置と、所定のデータ格納領域のアドレスを記憶するアド
レス記憶装置と、前記アドレス記憶装置に記憶されてい
るアドレスに格納されているデータを記憶装置から読み
出すデータ読み出し装置と、前記プログラム所定領域検
出装置の出力により、前記データ読み出し装置が読み出
したデータを記憶するデータ記憶部と、前記データ記憶
装置に記憶されているデータと、前記データ読み出し装
置により読み出されたデータとを比較し、かつ比較結果
を出力するデータ比較装置と、前記データ比較装置の出
力によって、対象プログラムの実行ならびに停止の制御
を行う制御装置と、を含むことを特徴とするプログラム
開発支援装置。
1. A head address and a tail address of a predetermined area of a target program stored in a storage device are stored in advance, and when the target program is executed and the head address is reached, a head address passing signal is provided. Or a program predetermined area detection device that outputs a tail address passing signal when the end address is reached, an address storage device that stores an address of a predetermined data storage region, and a program that is stored in the address storage device. A data reading device for reading data stored at an address being read from a storage device, a data storage unit for storing data read by the data reading device according to an output of the program predetermined area detection device, Stored data, read by the data reading device A data comparison device that compares the data with the data and outputs a comparison result; and a control device that controls execution and stop of the target program by the output of the data comparison device. apparatus.
JP4314491A 1992-11-25 1992-11-25 Program development support device Expired - Fee Related JP2978658B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4314491A JP2978658B2 (en) 1992-11-25 1992-11-25 Program development support device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4314491A JP2978658B2 (en) 1992-11-25 1992-11-25 Program development support device

Publications (2)

Publication Number Publication Date
JPH06161737A JPH06161737A (en) 1994-06-10
JP2978658B2 true JP2978658B2 (en) 1999-11-15

Family

ID=18053942

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4314491A Expired - Fee Related JP2978658B2 (en) 1992-11-25 1992-11-25 Program development support device

Country Status (1)

Country Link
JP (1) JP2978658B2 (en)

Also Published As

Publication number Publication date
JPH06161737A (en) 1994-06-10

Similar Documents

Publication Publication Date Title
JP3124278B2 (en) Inspection method of memory cell contents of program memory
JP2978658B2 (en) Program development support device
JPH05257815A (en) Central processing unit
JPS61220030A (en) Software discriminating system
JP3019346B2 (en) Data processing device
JP2754899B2 (en) Return address monitoring circuit of debug device
JPS6269329A (en) Detecting system for breakage position of memory
JP2624798B2 (en) Processing unit debugging mechanism
JPH06103110A (en) Breakpoint setting system
JP2642975B2 (en) One-chip microcomputer with built-in EEPROM
JPH0540637A (en) Load system for basic input/output ststem
JPH05233359A (en) Debugging device
JPH0635757A (en) CPU abnormality detection device
JPH064412A (en) Local memory inspecting/correcting circuit
JPS595931B2 (en) Address stop method for arithmetic processing system
JPS6227421B2 (en)
JPS63150732A (en) Program running supervisory equipment
JPS59191662A (en) Detecting system for program runaway
JPH02235151A (en) Detecting/correcting system for invalid data in program execution
JPH05100898A (en) Program debugging system
JPH04337847A (en) Program check method
JPH11110207A (en) Information processor
JPH04369751A (en) Memory collapse detection system
JPS61223952A (en) Retry function confirming system of data processor
JPH05241903A (en) Detecting system for program fault

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990817

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees