JPH0352038A - Debugging device - Google Patents

Debugging device

Info

Publication number
JPH0352038A
JPH0352038A JP1189671A JP18967189A JPH0352038A JP H0352038 A JPH0352038 A JP H0352038A JP 1189671 A JP1189671 A JP 1189671A JP 18967189 A JP18967189 A JP 18967189A JP H0352038 A JPH0352038 A JP H0352038A
Authority
JP
Japan
Prior art keywords
debugging
program
execution
state information
group
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
JP1189671A
Other languages
Japanese (ja)
Inventor
Takeshi Yasuda
剛 安田
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP1189671A priority Critical patent/JPH0352038A/en
Publication of JPH0352038A publication Critical patent/JPH0352038A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To perform debugging operation efficiently by referring to state information on a state control table group and controlling simulating operation for debugging by program modules, and outputting the state information on the state control table group by external input. CONSTITUTION:An execution control part 14 controls the execution of the respective program modules 1, 2... n in the debugging operation by referring to the state information on the state control table group 13. Further, state information on the debugging operation is outputted to a display part 15 and when a command is generated by an input part 16, the execution of the respective program modules 1, 2... n in the debugging operation is controlled according to the command. A program 17 to be debugged is linked with a debugging library 11 to generate a load module, which is executed to debug the program. Consequently, the debugging operation is performed efficiently.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明はプログラムのデバッグを行う際に用いられるデ
バッグ装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a debug device used when debugging a program.

(従来の技術) O S (Operating System)用プロ
グラムやCG (Computer Graph1cs
 )用プログラムナトノ特定用途向けのプログラムを開
発する際、そのプログラムにおいて、よく使われる複数
のプログラムモジュールが保存されたライブラリを参照
することが行われている。
(Conventional technology) OS (Operating System) programs and CG (Computer Graph1cs)
) When developing a program for a specific application, the program refers to a library that stores a number of frequently used program modules.

そして、上述のライブラリを参照して目的のプログラム
が効率的に作成される。このようにして開発されるプロ
グラムは、デバッガと呼ばれるツールを用いてデバッグ
が行われる。
Then, the target program is efficiently created by referring to the above-mentioned library. Programs developed in this manner are debugged using a tool called a debugger.

上述のデバッグを行う場合には、デバッグすべき開発プ
ログラムとライブラリとをリンクし、デバッガプログラ
ムにより開発プログラムのデバッグ動作が行われる。
When performing the above-mentioned debugging, the development program to be debugged and the library are linked, and the debugging operation of the development program is performed by the debugger program.

(発明が解決しようとする課題) しかしながら、上述した従来のデバッグ方法では、デバ
ッグを行っている際にライブラリのプログラムモジュー
ルを参照している箇所において、そのプログラムモジュ
ールに渡すパラメータの確認やこのプログラムモジュー
ルの呼び出された回数の確認およびハードウェア操作を
行う際のシミュレーションの確認がユーザ側からでは困
難であり、このようにデバッガを用いたデバッグ方法で
は、デバッグ動作を効率的に行うことが難しいという課
題がある。
(Problem to be Solved by the Invention) However, in the conventional debugging method described above, when a program module of a library is referenced during debugging, it is necessary to check the parameters to be passed to the program module and to check the parameters passed to the program module. It is difficult for the user to check the number of times that has been called and to check the simulation when performing hardware operations, and this debugging method using a debugger has the problem that it is difficult to perform debugging operations efficiently. There is.

そこで、この発明は、プログラムのデバッグ動作の確認
およびデバッグ動作における状態の確認をユーザが容易
に行うことができ、デバッグ動作を効率的に行うことの
できるデバッグ装置を提供することを目的としている。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a debugging device that allows a user to easily check the debugging operation of a program and the status of the debugging operation, and allows the debugging operation to be performed efficiently.

[発明の構成] (課題を解決するための手段) 本発明は上記課題を解決するために、所定のプログラム
に対してデバッグを行うときの所定の動作をシミュレー
トする複数のプログラムモジュールを有するプログラム
モジュール群と、これらのプログラムモジュールのシミ
ュレート動作に伴う状態情報を管理する状態管理テーブ
ル群ε、前記プログラムモジュールによるシミュレート
動作の実行を、前記状態管理テーブル群の状態情報を参
照して制御するとともに、外部からの入力により前記状
態管理テーブル群の状態情報を出力する実行制御部とを
備えたものである。
[Structure of the Invention] (Means for Solving the Problems) In order to solve the above problems, the present invention provides a program having a plurality of program modules that simulates a predetermined operation when debugging a predetermined program. a group of modules, a group of state management tables ε for managing state information associated with simulated operations of these program modules, and a group of state management tables ε for controlling the execution of simulated operations by the program modules with reference to the state information of the group of state management tables; The apparatus also includes an execution control section that outputs state information of the state management table group based on input from the outside.

(作 用) 本発明では、プログラムモジュールによるデバッグのシ
ミュレート動作の実行を、状態管理テーブル群の状態情
報を参照して制御するとともに、外部からの人力により
状態管理テーブル群の状態情報を出力するので、プログ
ラムのデバッグ動作の確認およびデバッグ動作における
状態の確認をユーザが容易に行うことができ、デバッグ
動作を効率的に行うことが可能である。
(Function) In the present invention, the execution of the debugging simulation operation by the program module is controlled by referring to the state information of the state management table group, and the state information of the state management table group is outputted by external human power. Therefore, the user can easily check the debugging operation of the program and the status of the debugging operation, and the debugging operation can be performed efficiently.

(実施例) 以下、本発明の実施例を図面を用いて説明する。(Example) Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例のデバッグ装置の構成を説明
するためのブロック図である。
FIG. 1 is a block diagram for explaining the configuration of a debugging device according to an embodiment of the present invention.

同図において、1lはデバッグ装置を構成するデバッグ
ライブラリを示している。デバッグライブラリ11は、
複数のプログラムモジュール1、2・・・nを有するプ
ログラムモジュール群12、状態管理テーブル群13、
実行制御部14を備え、実行制御部14には、表示部1
5および人力部16が接続されている。なお、17は、
デバッグすべきプログラムであり、デバッグライブラリ
11にリンクされる。
In the figure, 1l indicates a debug library constituting the debug device. The debug library 11 is
A program module group 12 having a plurality of program modules 1, 2...n, a state management table group 13,
The execution control unit 14 includes a display unit 1.
5 and a human power section 16 are connected. In addition, 17 is
This is a program to be debugged and is linked to the debug library 11.

プログラムモジュール群12には、上述のデバッグすべ
きプログラム17に対してデバッグを行うときの所定の
動作をシミュレートする上述の複数のプログラムモジュ
ール1、2・・・nが収容されている。
The program module group 12 accommodates the plurality of program modules 1, 2, . . . n, which simulate predetermined operations when debugging the program 17 to be debugged.

状態管理テーブル群13には、デバッグライブラリ11
における状態情報であるプログラムモジュールコール回
数、パラメータ状態、実行プログラムモジュール情報が
書込まれ管理される。
The state management table group 13 includes the debug library 11
Status information such as the number of program module calls, parameter status, and execution program module information is written and managed.

実行制御部14は、デバッグ動作における各プログラム
モジュール1、2・・・nの実行を状態管理テーブル群
13の状態情報を参照して制御する。
The execution control unit 14 controls the execution of each program module 1, 2, .

また、デバッグ動作に伴う状態情報は、表示部15に出
力するとともに、人力部l6からコマンドが発生した場
合にそのコマンドに基づいてデバッグ動作における各プ
ログラムモジュール1、2・・・nの実行を制御する。
In addition, the status information associated with the debugging operation is output to the display unit 15, and when a command is generated from the human power unit 16, the execution of each program module 1, 2...n in the debugging operation is controlled based on the command. do.

そしてこのように構成されたデバッグ装置では、デバッ
グすべきプログラム17をデバッグライブラリ11にリ
ンクし、ロードモジュールを生成し、このロードモジュ
ールを実行することによりデバッグを行う。なお、既存
のデバッガを用いる場合は、そのままロードプログラム
を通すだけで使用することが可能である。
In the debugging device configured as described above, debugging is performed by linking the program 17 to be debugged to the debugging library 11, generating a load module, and executing this load module. Note that when using an existing debugger, it can be used by simply passing the load program through it.

第2図は第1図のデバッグ装置をファイルシステムアク
セス用プログラムのデバッグに適用した例を示すブロッ
ク図である。
FIG. 2 is a block diagram showing an example in which the debugging device shown in FIG. 1 is applied to debugging a file system access program.

同図において、2lはデバッグ装置を構成するデバッグ
ライブラリを示している。
In the figure, 2l indicates a debug library constituting the debug device.

デバッグライブラリ21は、ファイルシステムアクセス
用プログラムにおける所定の動作をシミュレートするR
eadプログラムモジュールRSνriteプログラム
モジュールWSSeekプログラムモジュールSなどの
複数のプログラムモジュールを有するプログラムモジュ
ール群22、状態管理テーブル群23、実行制御部24
を備え、実行制御部24には、表示部25および入力部
26が接続されている。なお、27は、デバッグすべき
ファイルシステムアクセス用プログラムであり、デIく
ッグライブラリ21にリンクされる。
The debug library 21 is an R
A program module group 22 including a plurality of program modules such as an ead program module RSνrite program module WSSeek program module S, a state management table group 23, and an execution control unit 24
A display section 25 and an input section 26 are connected to the execution control section 24 . Note that 27 is a file system access program to be debugged, and is linked to the debug library 21.

状態管理テーブル群23には、デバッグライブラリ21
における状態情報であ,るプログラムモジュールコール
回数、パラメータ状態、実行プログラムモジュール情報
がデバッグ動作に伴って書込まれ管理される。
The state management table group 23 includes the debug library 21
Status information such as the number of program module calls, parameter status, and execution program module information are written and managed in conjunction with debugging operations.

実行制御部24は、デバッグ動作における各プログラム
モジュールR,W・・・Sの実行を状態管理テーブル群
23の状態情報を参照して制御する。
The execution control unit 24 controls the execution of each program module R, W, .

また、デバッグ動作に伴う状態情報は、表示部25に出
力するとともに、人力部26からコマンドが発生した場
合にそのコマンドに基づいてデノくツグ動作における各
プログラムモジュールR,W・・・Sの実行を制御する
In addition, the status information associated with the debug operation is output to the display section 25, and when a command is issued from the human power section 26, each program module R, W...S in the debug operation is controlled based on the command. Control execution.

そしてこのように構成されたデバッグ装置では、たとえ
ばファイルシステムアクセス用プログラム27からプロ
グラムモジュール群22のReadプログラムモジュー
ルRが参照されると、状態管理テーブル群23の各状態
が書込まれ、この後、Read動作が行われる。このと
き、クロス環境であればハードウエアにアクセスする部
分はシミュレートを行う。
In the debug device configured in this way, when the Read program module R of the program module group 22 is referenced from the file system access program 27, for example, each state of the state management table group 23 is written, and after that, A Read operation is performed. At this time, if it is a cross environment, the parts that access the hardware are simulated.

したがって、上述した実施例では、専用のデバッガを使
用することなく、対象プログラムのデバッグを行うこと
が可能であり、専用のデバッガがある場合、より詳細な
デバッグを行うことができ、プログラムの開発効率を向
上させることができる。
Therefore, in the above embodiment, it is possible to debug the target program without using a dedicated debugger, and if a dedicated debugger is available, more detailed debugging can be performed and the program development efficiency is improved. can be improved.

また、上述した実施例のデバッグライブラリは、別のコ
ンピュータシステムに移すことが可能であり、これによ
り同様のデバッグ環境を提供することができ、プログラ
ム開発の負担を軽減することができる。
Furthermore, the debug library of the above-described embodiment can be transferred to another computer system, thereby making it possible to provide a similar debug environment and reducing the burden of program development.

[発明の効果] 以上説明したように、本発明のデバッグ装置では、プロ
グラムモジュールによるデバッグのシミュレート動作の
実行を、状態管理テーブル群の状態情報を参照して制御
するとともに、外部からの入力により状態管理テーブル
群の状態情報を出力するので、プログラムのデバッグ動
作の確認およびデバッグ動作における状態の確認をユー
ザが容易に行うことができ、デバッグ動作を効率的に行
うことが可能である。
[Effects of the Invention] As explained above, in the debugging device of the present invention, the execution of the debugging simulation operation by the program module is controlled by referring to the state information of the state management table group, and the Since the status information of the status management table group is output, the user can easily check the debugging operation of the program and the status in the debugging operation, and it is possible to perform the debugging operation efficiently.

【図面の簡単な説明】 第1図は本発明の一実施例のデバッグ装置の構成を説明
するためのブロック図、第2図は本発明の他の実施例の
デバッグ装置の構成を説明するためのブロック図である
。 11、21・・・デバッグライブラリ、12、22・・
・プログラムモジュール群、13、23・・・状態管理
テーブル群、14、24・・・実行制御部、15、25
・・・表示部、16、26・・・入力部、17、27・
・・プログラム。 14 笛1図
[BRIEF DESCRIPTION OF THE DRAWINGS] FIG. 1 is a block diagram for explaining the configuration of a debugging device according to one embodiment of the present invention, and FIG. 2 is a block diagram for explaining the configuration of a debugging device according to another embodiment of the present invention. FIG. 11, 21...debug library, 12, 22...
- Program module group, 13, 23... State management table group, 14, 24... Execution control unit, 15, 25
... Display section, 16, 26... Input section, 17, 27.
··program. 14 Flute 1 diagram

Claims (1)

【特許請求の範囲】 所定のプログラムに対してデバッグを行うときの所定の
動作をシミュレートする複数のプログラムモジュールを
有するプログラムモジュール群と、 これらのプログラムモジュールのシミュレート動作に伴
う状態情報を管理する状態管理テーブル群と、 前記プログラムモジュールによるシミュレート動作の実
行を、前記状態管理テーブル群の状態情報を参照して制
御するとともに、外部からの入力により前記状態管理テ
ーブル群の状態情報を出力する実行制御部と を具備することを特徴とするデバッグ装置。
[Claims] A program module group having a plurality of program modules that simulate predetermined operations when debugging a predetermined program, and managing state information accompanying the simulated operations of these program modules. a group of state management tables; and an execution unit that controls the execution of a simulated operation by the program module by referring to the state information of the group of state management tables, and outputs the state information of the group of state management tables based on external input. A debugging device comprising: a control section.
JP1189671A 1989-07-20 1989-07-20 Debugging device Pending JPH0352038A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1189671A JPH0352038A (en) 1989-07-20 1989-07-20 Debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1189671A JPH0352038A (en) 1989-07-20 1989-07-20 Debugging device

Publications (1)

Publication Number Publication Date
JPH0352038A true JPH0352038A (en) 1991-03-06

Family

ID=16245228

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1189671A Pending JPH0352038A (en) 1989-07-20 1989-07-20 Debugging device

Country Status (1)

Country Link
JP (1) JPH0352038A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06318161A (en) * 1993-05-07 1994-11-15 Nec Corp Exchange program evaluation method in simulation system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06318161A (en) * 1993-05-07 1994-11-15 Nec Corp Exchange program evaluation method in simulation system

Similar Documents

Publication Publication Date Title
US8180620B2 (en) Apparatus and method for performing hardware and software co-verification testing
CN116090403A (en) Command processing system supporting multiple simulators
US20080300846A1 (en) Methods and apparatus for hardware simulation and design verification
JPH08314760A (en) Program development supporting device
JPH0352038A (en) Debugging device
JPS6349851A (en) Simulation system
JP2001195275A (en) Program execution system for semiconductor testing device
JP2803090B2 (en) MPU simulation method and MPU simulator
JPH08263130A (en) Simulation system
WO2024069730A1 (en) Debugging device and debugging method
JPH04123144A (en) Debuging device
Goldberg et al. The PRIM System: An alternative architecture for emulator development and use
JP3424548B2 (en) Software logic simulator for embedded devices
JPS62214444A (en) Simulation method
JP2882876B2 (en) Program test method
JP2005332110A (en) Simulation system
JPH0368037A (en) Program developing device
JPH03130839A (en) On-line simulation system
Cahall Jr et al. Investigation of non-interference real-time debugging through bus cycle simulation and interpretation
JPH02308342A (en) Constituting method for simulating debugger
JPS6381505A (en) Sequencer simulator
Sherlock et al. Id-Dynamic Views on Static and Dynamic Disassembly Listings
JPH0351925A (en) Microprocessor simulator
JPS6349852A (en) Simulation system
JPH02284205A (en) Simulation system for pc