JPH03282739A - Debugging control system - Google Patents

Debugging control system

Info

Publication number
JPH03282739A
JPH03282739A JP2083454A JP8345490A JPH03282739A JP H03282739 A JPH03282739 A JP H03282739A JP 2083454 A JP2083454 A JP 2083454A JP 8345490 A JP8345490 A JP 8345490A JP H03282739 A JPH03282739 A JP H03282739A
Authority
JP
Japan
Prior art keywords
program
address
instruction
designated
control
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
JP2083454A
Other languages
Japanese (ja)
Inventor
Tatsuo Miyazaki
宮崎 立雄
Shoei Yamashita
山下 昇栄
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
NEC Solution Innovators Ltd
Original Assignee
NEC Corp
NEC Software Hokuriku 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 NEC Corp, NEC Software Hokuriku Ltd filed Critical NEC Corp
Priority to JP2083454A priority Critical patent/JPH03282739A/en
Publication of JPH03282739A publication Critical patent/JPH03282739A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To debug in program inspite of the number of testers and even if there is no tester by providing a start means which starts a program to be debugged from a designated address, an instruction saving means and the like. CONSTITUTION:An input means 11 inputting the address for stopping the control of the program in the middle of execution and a table 13 storing information for retrieving the idle area of the designated program from the address are provided. Then, a retrieval means 12 retrieving the idle area of the designated program, the start means 17 starting the program to be debugged a transfer means 14 transferring the start means 17 to the idle area and the instruction saving means 15 saving the instruction of the designated address are provided. Furthermore, an instruction embedding means 16 which embeds an instruction calling the start means 17 to the designated address, a recovery means 18 which recovers the saved instruction to the original address, and a storage means 19 for storing the inputted address are provided. Thus, the control of the program in the middle of execution can be stopped at a certain timing and debug can be executed even if there is no tester.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデバック制御方式に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a debug control method.

〔従来の技術〕[Conventional technology]

プログラム開発においては、製造されたプログラムが処
理手順に従って正しく制御するか否かを試験するために
、プログラムテスト工程においてプログラムを試験的に
実行させ、その結果が正しくない場合にはプログラムの
ソースリストで調べる。それでも原因が判明しない場合
には、実行中のプログラムに対しであるタイミングで制
御をストップさせ、そのタイミングにおいて正しく制御
が行われているかのチエツクをする。
During program development, in order to test whether the manufactured program controls correctly according to the processing procedure, the program is run on a trial basis during the program test process, and if the result is incorrect, the program source list is investigate. If the cause is still not determined, control of the program being executed is stopped at a certain timing, and a check is made to see if control is being performed correctly at that timing.

従来、プログラムテスト工程において実行中のプログラ
ムの制御をあるタイミングでストップさせる場合、試験
器をCPUパッケージに接続しハード的な割込みにより
ストップさせていた。
Conventionally, when stopping control of a program being executed at a certain timing in a program testing process, a tester is connected to a CPU package and the control is stopped using a hardware interrupt.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述したように実行中のプロ、ダラムの制御をあるタイ
ミングでストップさせる方式は試験器を使って行ってい
たため、試験器がない場合は行うことができなかった。
As mentioned above, the method of stopping the control of the running Pro and Durham at a certain timing was done using a tester, so it could not be done without a tester.

また試験器がある場合でもCPUパッケージに接続する
作業のための手間がかかる。
Furthermore, even if a tester is available, it takes time and effort to connect it to the CPU package.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のデバック制御方式は、実行中のプログラムの制
御を停止するためのアドレスを入力する入力手段と、前
記入力手段により指定されたアドレスから指定プログラ
ムの空き領域を検索するための情報を格納したテーブル
と、前記テーブルから指定プログラムの空き領域を検索
する検索手段と、デバック処理を実行するプログラムを
起動させる起動手段と、前記検索手段より求めた空き領
域に前記起動手段を転送する転送手段と、前記入力手段
により指定されたアドレスの命令を退避する命令退避手
段と、前記起動手段を呼び出す命令を指定されたアドレ
スに埋込む命令埋込手段と、前記命令退避手段により退
避された命令をもとのアドレスへ回復する回復手段と、
入力されたアドレスを記憶しておくための記憶手段とを
有する。
The debugging control method of the present invention includes an input means for inputting an address for stopping control of a program being executed, and information for searching a free area of the designated program from the address designated by the input means. a table, a search means for searching the table for a free space for a designated program, a starting means for starting a program that executes debugging, and a transfer means for transferring the starting means to the free space found by the search means; an instruction saving means for saving an instruction at an address specified by the input means; an instruction embedding means for embedding an instruction to call the activation means at the specified address; and an instruction saving means for saving the instruction saved by the instruction saving means. a recovery means for recovering to the address of
and storage means for storing the input address.

〔実施例〕〔Example〕

本発明について図面を参照して詳細に説明する。 The present invention will be explained in detail with reference to the drawings.

第1図は本発明のデバック制御方式の一実施例の構成を
示すブロック図である。同図においてデバック制御方式
1は、キーボード4とメモリ2と外部記憶装置3とに接
続され、入力手段11と検索手段12と空き領域検索テ
ーブル13と転送手段14と命令退避手段15と命令埋
込手段16と起動手段17と命令回復手段18と記憶手
段19とを含んで構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the debug control method of the present invention. In the figure, a debug control method 1 is connected to a keyboard 4, a memory 2, and an external storage device 3, and includes an input means 11, a search means 12, a free space search table 13, a transfer means 14, an instruction saving means 15, and an instruction embedding means. It is configured to include means 16, starting means 17, instruction recovery means 18, and storage means 19.

メモリ2は被デバックプログラム21を格納し、空き領
域22を有するメモリである。被デバックプログラム2
1はプログラム開発において製造されたプログラムであ
り、プログラムテスト工程で試験し、誤りがあれば修正
される対称のプログラムである。
The memory 2 is a memory that stores a program to be debugged 21 and has a free area 22 . Debugged program 2
1 is a program manufactured in the program development process, and is a symmetric program that is tested in the program test process and corrected if there is an error.

外部記憶装置3はデバック処理プログラム31とデバッ
ク処理起動プログラム32とを格納するものである。デ
バック処理プログラム31は製造されたプログラムの制
御が正しいものであるかをチエツクする機能を有するプ
ログラムである。デバック処理起動プログラム32は被
デバックプログラム21からデバック処理プログラム3
1へ制御を移す機能を有するプログラムである。
The external storage device 3 stores a debug processing program 31 and a debug processing startup program 32. The debug processing program 31 is a program having a function of checking whether the control of the manufactured program is correct. The debugging process startup program 32 is transferred from the debugged program 21 to the debugging process program 3.
This is a program that has the function of transferring control to 1.

実行中のプログラムに対しであるタイミングでその制御
をストップさせたい場合、ストップさせたいアドレスを
キーボード4より入力し、入力手段11がその指定され
たアドレスを記憶手段19に渡す。
When it is desired to stop the control of a program being executed at a certain timing, the address at which the program is to be stopped is input from the keyboard 4, and the input means 11 passes the designated address to the storage means 19.

検索手段12は記憶手段19に記憶された指定アドレス
と空き領域を検索するための情報を格納した空き領域検
索テーブル13とを参照し、被デバックプログラム21
を格納するメモリ2において空き領域22があるかどう
かを調べ、その情報を転送手段14に渡す。
The search means 12 refers to the specified address stored in the storage means 19 and the free space search table 13 storing information for searching free space, and searches the program to be debugged 21.
It is checked whether there is a free space 22 in the memory 2 for storing the information, and the information is passed to the transfer means 14.

転送手段14は検索手段12より指定されたメモリ2の
空き領域22に外部記憶装置3からデパツク処理起動プ
ログラム32を転送する。
The transfer means 14 transfers the depacking process starting program 32 from the external storage device 3 to the free area 22 of the memory 2 designated by the search means 12.

命令退避手段15は指定されたアドレスにある被デバッ
クプログラム21の命令をデバック処理プログラム31
の領域に退避しておく。
The instruction saving means 15 saves the instructions of the program to be debugged 21 located at the specified address to the debug processing program 31.
Evacuate to the area.

命令埋込手段16は命令退避手段15によって被デバッ
クプログラム21の命令が退避された後、そのアドレス
に転送手段14によって転送されたデバック処理起動プ
ログラム32を被デバックプログラム21から呼び出す
命令を埋込む。この埋込まれた命令により、処理の流れ
はメモリ2の空き領域22に転送されたデバック処理起
動プログラム32へ移る。
After the instructions of the debugged program 21 are saved by the instruction saving means 15, the instruction embedding means 16 embeds an instruction for calling the debug processing starting program 32 transferred by the transfer means 14 from the debugged program 21 at the address. Due to this embedded instruction, the flow of processing shifts to the debug processing startup program 32 transferred to the free area 22 of the memory 2.

起動手段17は前記の流れの後、デバック処理起動プロ
グラム32によりデバック処理プログラム31を起動さ
せる。
After the above-described flow, the activation means 17 activates the debugging process program 31 using the debugging process activation program 32.

命令回復手段18はデバック終了後、デバック処理プロ
グラム31に退避しておいた被デバックプログラム21
の命令をもとの被デバックプログラム21のアドレスに
戻す。
After the debugging is completed, the instruction recovery means 18 restores the debugged program 21 saved in the debugging processing program 31.
The instruction is returned to the original address of the debugged program 21.

第2図は上記デバック制御方式の動作を示す説明図であ
る。同図において実行中の被デバックプログラム21の
1000番地で制御をストップさせる指示がきたら、被
デバックプログラム21がロードされているメモリ2の
空き領域22を捜し、空き領域22ヘデバツク処理起動
プログラム32を転送する。また1000番地の命令を
デバック処理プログラム31の領域へ退避し、1000
番地へデバック処理起動プログラム32を呼出すCAL
L命令を埋込む。そのCALL命令により制御はデバッ
ク処理起動プログラム32に移ることになる。
FIG. 2 is an explanatory diagram showing the operation of the above debug control method. In the figure, when an instruction to stop the control at address 1000 of the program to be debugged 21 being executed is received, the free area 22 of the memory 2 where the program to be debugged 21 is loaded is searched for, and the debugging process startup program 32 is transferred to the free area 22. do. Also, the instruction at address 1000 is saved to the debug processing program 31 area, and
CAL that calls the debug processing startup program 32 to the address
Embed the L command. Control is transferred to the debug processing starting program 32 by the CALL instruction.

したがって、実行中であった被デバックプログラム21
の制御は1000番地の命令実行直前でストップがかか
る。さらにデバック処理起動プログラム32からデバッ
ク処理プログラム31へ制御が移る。このデバック処理
プログラム31の制御によりデバックが行われる。この
間、デバック処理起動プログラム32はデバック処理プ
ログラム31から制御が戻るまでストップの状態となる
Therefore, the debugged program 21 that was being executed
The control is stopped immediately before the instruction at address 1000 is executed. Furthermore, control is transferred from the debug processing startup program 32 to the debug processing program 31. Debugging is performed under the control of this debug processing program 31. During this time, the debug processing startup program 32 is in a stopped state until control is returned from the debug processing program 31.

デバックが終了すると退避した命令をもとの1000番
地に回復する。そしてデバック処理プログラム31がデ
バック処理起動プログラム32に制御を移し、さらにこ
のプログラムかもとの被デバックプログラム21に制御
を戻すことによって10008地より再び制御が実行さ
れる。
When debugging is completed, the evacuated instructions are restored to the original address 1000. Then, the debug processing program 31 transfers control to the debug processing startup program 32, and then returns control to this program and the original program to be debugged 21, so that control is executed again from point 10008.

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

本発明は以上の手段を用いることにより、試験器を用い
なくてもプログラムテスト工程において実行中のプログ
ラムの制御をあるタイミングでストップさせることが可
能となり、試験器の数に関係なく、また試験器がなくて
もデバックが行える。
By using the above means, the present invention makes it possible to stop the control of the program being executed at a certain timing in the program testing process without using a tester, and regardless of the number of testers, You can debug without it.

したがってデバック工数の削減ができるという効果があ
る。
Therefore, there is an effect that the number of debugging steps can be reduced.

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

第1図は本発明のデバック制御方式の一実施例の構成を
示すブロック図、第2図は動作を示す説明図である。 1・・・・・・デバック制御方式、11・・・・・・入
力手段、12・・・・・・検索手段、13・・・・・・
空き領域検索テーブル、14・・・・・・転送手段、1
5・・・・・・命令退避手段、16・・・・・・命令、
埋込手段、17・・・・・・起動手段、18・・・・・
・命令回復手段、19・・・・・・記憶手段、21・・
・・・・被デバックプログラム、22・・・・・・空き
領域、31・・・・・・デバック処理プログラム、32
・・印・デバック処理起動プログラム。
FIG. 1 is a block diagram showing the configuration of an embodiment of the debug control method of the present invention, and FIG. 2 is an explanatory diagram showing the operation. 1...Debug control method, 11...Input means, 12...Search means, 13...
Free space search table, 14... Transfer means, 1
5... Instruction evacuation means, 16... Instruction,
Embedding means, 17... Starting means, 18...
・Command recovery means, 19...Storage means, 21...
... Program to be debugged, 22 ... Free area, 31 ... Debugging processing program, 32
・・Debug processing startup program.

Claims (1)

【特許請求の範囲】[Claims] 実行中のプログラムの制御を停止するためのアドレスを
入力する入力手段と、前記入力手段により指定されたア
ドレスから指定プログラムの空き領域を検索するための
情報を格納したテーブルと、前記テーブルから指定プロ
グラムの空き領域を検索する検索手段と、デバック処理
を実行するプログラムを起動させる起動手段と、前記検
索手段より求めた空き領域に前記起動手段を転送する転
送手段と、前記入力手段により指定されたアドレスの命
令を退避する命令退避手段と、前記起動手段を呼び出す
命令を指定されたアドレスに埋込む命令埋込手段と、前
記命令退避手段により退避された命令をもとのアドレス
へ回復する回復手段と、入力されたアドレスを記憶して
おくための記憶手段とを有することを特徴とするデバッ
ク制御方式。
an input means for inputting an address for stopping control of a program being executed; a table storing information for searching for free space for a designated program from the address designated by the input means; a search means for searching for a free area of the computer, a starting means for starting a program for executing a debugging process, a transfer means for transferring the starting means to the free area found by the searching means, and an address specified by the input means. an instruction embedding means for embedding an instruction to call the starting means in a designated address; and a recovery means for restoring the instruction saved by the instruction saving means to its original address. 1. A debugging control method, comprising: a storage means for storing an input address.
JP2083454A 1990-03-30 1990-03-30 Debugging control system Pending JPH03282739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2083454A JPH03282739A (en) 1990-03-30 1990-03-30 Debugging control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2083454A JPH03282739A (en) 1990-03-30 1990-03-30 Debugging control system

Publications (1)

Publication Number Publication Date
JPH03282739A true JPH03282739A (en) 1991-12-12

Family

ID=13802897

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2083454A Pending JPH03282739A (en) 1990-03-30 1990-03-30 Debugging control system

Country Status (1)

Country Link
JP (1) JPH03282739A (en)

Similar Documents

Publication Publication Date Title
CN103617396B (en) The detection method of a kind of vulnerability exploit and system
JPH03282739A (en) Debugging control system
JPH0731617B2 (en) Program runaway detection method
JPH07191876A (en) Program testing device and using method for the same
JPH0253148A (en) Debugging method for test program for input/output device
JPH08249210A (en) Test data preservation device, automatic test data input device and function testing device
JP2684966B2 (en) I / O processor debug device
WO2019136852A1 (en) Method and system for saving starting log of application program, and storage medium and electronic device
JPS61208126A (en) Control system for execution of program to be tested
JPS61138184A (en) Hardware confirmation method of tester by test program
JPH04131937A (en) Step trace function test method for debug exception
JPH0314040A (en) Program transportable support device
JPS604492B2 (en) calculator
JPH07262235A (en) Logical simulation test device
JPH0546444A (en) Debugger with log function
JPH05151021A (en) Debugging system using debugger with built-in resident area
JPS63200243A (en) Debugging device
JPH01114945A (en) Tracing system for data processor
JPS638949A (en) Program inspection device
JPH03245238A (en) Inspecting system for fault processing function of data processor
JPH04324525A (en) Program transplantation supporting device
JPS6269329A (en) Detecting system for breakage position of memory
JPH0231240A (en) Processing system for troubled coprocessor
JPH03167640A (en) Debugging system for test program of information processor
JPH0391847A (en) Program inspecting system