JPH02277146A - Program debugging system - Google Patents

Program debugging system

Info

Publication number
JPH02277146A
JPH02277146A JP1099531A JP9953189A JPH02277146A JP H02277146 A JPH02277146 A JP H02277146A JP 1099531 A JP1099531 A JP 1099531A JP 9953189 A JP9953189 A JP 9953189A JP H02277146 A JPH02277146 A JP H02277146A
Authority
JP
Japan
Prior art keywords
program
debug
routine
debugging
debugged
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
JP1099531A
Other languages
Japanese (ja)
Inventor
Akihiko Shimohata
下畑 明彦
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 JP1099531A priority Critical patent/JPH02277146A/en
Publication of JPH02277146A publication Critical patent/JPH02277146A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To simplify an optional debugging job by calling an optional debugging routine out of an optional area of a program to be debugged. CONSTITUTION:A debug information register mechanism 11 is started and produces a debugging routine call information 15 based on the information pointed by the debug information 14 to register a debugging routine 16 which is called out of a program to be debugged and to control the place of a program 17 to be debugged and to call the routine 16. Then an initialization mechanism 12 is started before execution of the program 17 and buries an instruction into the program 17 based on the information 15 in order to shift the control to a routine call mechanism 13. In a debug state, the mechanism 13 is called out at a designated area and a necessary debugging process is carried out after execution of the instruction of the program 17.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ処理システムにおいて実行されるプロ
グラムのデバッグを行うことに関して、被デバッグ・プ
ログラムの任意の箇所で任意のデパック動作を可能とす
る簡易なプログラム・デバッグ方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention enables arbitrary depacking operations at any location of a debugged program in debugging a program executed in a data processing system. Concerning simple program debugging methods.

〔従来の技術〕[Conventional technology]

従来、被デバッグ・プログラムの任意の箇所で任意のデ
バッグ・ルーチンを実行したい場合、被デバッグ・プロ
グラムにデバッグ・ルーチンへ制御移行する為の命令を
追加する必要があった。
Conventionally, when it was desired to execute an arbitrary debug routine at an arbitrary location in a debugged program, it was necessary to add an instruction to the debugged program to transfer control to the debug routine.

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

上述した従来のデバッグ方式では、デバッグ・ルーチン
を呼び出す為に、被デバッグ・プログラムのソース・コ
ードを修正するが、デバッグの度に被デバッグ・プログ
ラムにパッチを施工する繁雑さがあった。
In the conventional debugging method described above, the source code of the debugged program is modified in order to call a debugging routine, but it is complicated to apply a patch to the debugged program each time it is debugged.

本発明の目的は、上記従来方式の欠点を解消し、被デバ
ッグ・プログラムのソース・コードの修正。
SUMMARY OF THE INVENTION An object of the present invention is to eliminate the drawbacks of the above-mentioned conventional methods and to modify the source code of a program to be debugged.

又はパッチを作成する必要なしに、被デバッグ・プログ
ラムの任意の箇所で任意のデバッグ・ルーチンを実行で
きるようにした簡易プログラム・デバッグ方式を提供す
ることにある。
Another object of the present invention is to provide a simple program debugging method that allows any debugging routine to be executed at any location in a debugged program without the need to create a patch.

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

本発明のプログラム・デバッグ方式は、被デバッグ・プ
ログラムが実行時に呼び出したいデバッグ・ルーチンと
前記デバッグ・ルーチンを呼び出す必要がある前記被デ
バッグ・プログラム中の箇所を登録するデバッグ情報登
録機構と、前記被デバッグ・プログラムの実行前に前記
デバッグ情報登録機構に登録されたデバッグ情報で指定
された箇所に前記デバッグ・ルーチンへ制御移行する為
のパッチを施工する初期設定機構と、前記被デバッグ・
プログラムが前記初期設定機構によりパッチが施工され
た箇所を実行時に当該パッチを施工した箇所の命令を実
行させ前記デバッグ・ルーチンを呼び出すデバッグ・ル
ーチン呼び出し機構とを含んで構成される。
The program debugging method of the present invention includes a debugging information registration mechanism for registering a debugging routine that the debugged program wants to call during execution and a location in the debugged program where the debugging routine needs to be called; an initial setting mechanism for constructing a patch for transferring control to the debug routine at a location specified by debug information registered in the debug information registration mechanism before execution of the debug program;
When a program executes a patch applied by the initial setting mechanism, the program includes a debug routine calling mechanism that executes an instruction at the patched area and calls the debug routine.

〔実施例〕〔Example〕

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

第1図は、本発明の一実施例を適用する情報処理システ
ムの構成を示すブロック図である。本発明に用いる情報
処理システムは、プログラムが走行する中央処理装置等
の処理実行手段1と、主記憶装置等の記憶手段2と、デ
ータ入出力装置との入力手段3と、補助記憶装置等の記
憶手段4から構成される。
FIG. 1 is a block diagram showing the configuration of an information processing system to which an embodiment of the present invention is applied. The information processing system used in the present invention includes a processing execution means 1 such as a central processing unit on which a program runs, a storage means 2 such as a main storage device, an input means 3 such as a data input/output device, and an auxiliary storage device etc. It is composed of storage means 4.

第2図を参照すると本発明の一実施例は、デパック情報
登録機構11と、初期設定機構12と、デバッグ・ルー
チン呼び出し機構13と、被デバッグ・プログラムで実
行するデバッグ・ルーチンと、その実行箇所よりなるデ
バッグ情報14と、デバッグ情報14より作成されるデ
バッグ・ルーチン呼び出し情報15.デーバッグ・ルー
チン16と、被デバッグ・プログラム17から構成され
る。
Referring to FIG. 2, one embodiment of the present invention includes a depack information registration mechanism 11, an initialization mechanism 12, a debug routine calling mechanism 13, a debug routine executed in a debugged program, and its execution location. and debug routine call information 15 created from the debug information 14. It consists of a debug routine 16 and a debugged program 17.

デバッグ情報登録機構11は起動されると、デバッグ情
報14で指示された情報を元に、被デバッグ・プログラ
ムから呼び出されるデバッグ・ルーチン16の登録と、
デバッグ・ルーチン16を呼び出す被デバッグ・プログ
ラム17の場所を管理するデバッグ・ルーチン呼び出し
情報15を作成を行う。
When activated, the debug information registration mechanism 11 registers a debug routine 16 called from the debugged program based on the information specified by the debug information 14;
Debug routine call information 15 for managing the location of the debugged program 17 that calls the debug routine 16 is created.

その後、被デバッグ・プログラム17の実行前に初期設
定機構12が起動され、デバッグ・ルーチン呼び出し情
報15を元に被デバッグ・プログラム17にデバッグ・
ルーチン呼び出し機113へ制御移行する為の命令を埋
め込む。
Thereafter, the initial setting mechanism 12 is activated before the debug target program 17 is executed, and the debug target program 17 is given the debug function based on the debug routine call information 15.
A command for transferring control to the routine caller 113 is embedded.

被デバッグ・プログラム17はデバッグ時、指定の箇所
でデバッグ・ルーチン呼び出し機構13を呼び出す。
During debugging, the program to be debugged 17 calls the debug routine calling mechanism 13 at a designated location.

デバッグ・ルーチン呼び出し機構13は本機構の呼び出
し命令で破壊された被デバッグ・プログラムの命令を実
行後、所定のデバッグ・ルーチン16に制御移行し必要
なデバッグ処理を行わせる。
After the debugging routine calling mechanism 13 executes the instructions of the debugged program destroyed by the calling instruction of this mechanism, control is transferred to a predetermined debugging routine 16 to perform necessary debugging processing.

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

以上説明したように本発明は、被デバッグ・プログラム
の任意の箇所から、任意のデバッグ・ルーチンを呼び出
す手段を提供することで、簡易に任意のデバッグ作業を
行える効果がある。
As described above, the present invention provides a means for calling an arbitrary debug routine from an arbitrary part of a program to be debugged, thereby making it possible to easily carry out arbitrary debugging operations.

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

第1図は本発明の一実施例を適用する情報処理システム
のブロック図、第2図は本発明による一実施例の構成を
示すブロック図である。 図において1は中央処理装置、2は主記憶装置、3は入
力装置、4は補助記憶装置、11はデバッグ・ルーチン
登録機構、12は初期設定機構、13はデバッグ・ルー
チン呼び出し機構、14はデバッグ情報、15はデバッ
グ・ルーチン呼び出し情報、16はデバッグ・ルーチン
、17は被デバッグ・プログラムである。
FIG. 1 is a block diagram of an information processing system to which an embodiment of the present invention is applied, and FIG. 2 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, 1 is a central processing unit, 2 is a main memory, 3 is an input device, 4 is an auxiliary memory, 11 is a debug routine registration mechanism, 12 is an initial setting mechanism, 13 is a debug routine calling mechanism, and 14 is a debug 15 is debug routine call information, 16 is a debug routine, and 17 is a program to be debugged.

Claims (1)

【特許請求の範囲】[Claims] 被デバッグ・プログラムが実行時に呼び出したいデバッ
グ・ルーチンと前記デバッグ・ルーチンを呼び出す必要
がある前記被デバッグ・プログラム中の箇所を登録する
デバッグ情報登録機構と、前記被デバッグ・プログラム
の実行前に前記デバッグ情報登録機構に登録されたデバ
ッグ情報で指定された箇所に前記デバッグ・ルーチンへ
制御移行する為のパッチを施工する初期設定機構と、前
記被デバッグ・プログラムが前記初期設定機構によりパ
ッチが施工された箇所を実行時に当該パッチを施工した
箇所の命令を実行させ前記デバッグ・ルーチンを呼び出
すデバッグ・ルーチン呼び出し機構とを含むことを特徴
とするプログラム・デバッグ方式。
a debug information registration mechanism for registering a debug routine that the debug target program wants to call when the program is executed, and a location in the debug program where the debug routine needs to be called; an initial setting mechanism that applies a patch for transferring control to the debug routine at a location specified by debug information registered in an information registration mechanism; and an initial setting mechanism that applies a patch to the debugged program by the initial setting mechanism. 1. A program debugging method comprising: a debug routine calling mechanism that executes an instruction in a patched part when the part is executed, and calls the debug routine.
JP1099531A 1989-04-18 1989-04-18 Program debugging system Pending JPH02277146A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1099531A JPH02277146A (en) 1989-04-18 1989-04-18 Program debugging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1099531A JPH02277146A (en) 1989-04-18 1989-04-18 Program debugging system

Publications (1)

Publication Number Publication Date
JPH02277146A true JPH02277146A (en) 1990-11-13

Family

ID=14249801

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1099531A Pending JPH02277146A (en) 1989-04-18 1989-04-18 Program debugging system

Country Status (1)

Country Link
JP (1) JPH02277146A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05505695A (en) * 1991-03-07 1993-08-19 デジタル イクイプメント コーポレーション An improved software debugging system and method specifically for debugging code within a multi-architecture environment.
JP2000076094A (en) * 1998-09-03 2000-03-14 Ricoh Co Ltd Simulator

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05505695A (en) * 1991-03-07 1993-08-19 デジタル イクイプメント コーポレーション An improved software debugging system and method specifically for debugging code within a multi-architecture environment.
JP2000076094A (en) * 1998-09-03 2000-03-14 Ricoh Co Ltd Simulator

Similar Documents

Publication Publication Date Title
JPH02277146A (en) Program debugging system
JPH02284236A (en) Program debugging processor
JPS6214240A (en) Program inspecting system
JPH02277128A (en) Checking system for program run condition
JP3079238B2 (en) Debug device
KR100194800B1 (en) How to Cross-Debug Multiple Chill Programs Using Connection Manager
JP2852402B2 (en) Program development equipment
JPH0433135A (en) Program system for debugging
JPH01288954A (en) Service program execution program for multi-processor system
JPH0588878A (en) Lisp instruction executing system
JPH0756729A (en) Program debug system
JPS5835648A (en) Program execution controlling system
JPH01295337A (en) Monitor routine control shift system
JPH02181871A (en) Vector arithmetic unit
JPS62257537A (en) System for controlling call of supervisor program
JPH02227733A (en) Supporting device for development of program
JPH02103636A (en) Additional arithmetic unit
JPH01185733A (en) Input/output emulation system
JPH01274253A (en) Software break system
JPH0319037A (en) Control system for task execution time
JPS62217326A (en) Computer capable of storing and switching plural os
JPS62166444A (en) Program debugging device
JPH01244547A (en) Program development debugging backup system
JPH02212965A (en) Program loading system
JPS63163632A (en) Shadow memory system