JPH04153743A - Display system for module call information - Google Patents

Display system for module call information

Info

Publication number
JPH04153743A
JPH04153743A JP2277828A JP27782890A JPH04153743A JP H04153743 A JPH04153743 A JP H04153743A JP 2277828 A JP2277828 A JP 2277828A JP 27782890 A JP27782890 A JP 27782890A JP H04153743 A JPH04153743 A JP H04153743A
Authority
JP
Japan
Prior art keywords
module
call information
call
information storage
called
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
JP2277828A
Other languages
Japanese (ja)
Inventor
Natsuki Okano
夏樹 岡野
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 JP2277828A priority Critical patent/JPH04153743A/en
Publication of JPH04153743A publication Critical patent/JPH04153743A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To improve the debugging jog efficient by providing a call information retrieval/display means in order to input a debug command at an optional part of a user program and to display the call information on an optional module. CONSTITUTION:A user inputs a debug command from a terminal equipment 10 for display of the call information. Then a call information retrieval/display means 4 is called out by a main control means 9 and checks whether the information on the module designated by the debug command is stored in a call information store table 6 or not. If so, the module, the call address contained in the table 6, and the calling frequency of each call address are displayed on the equipment 10 and an SYSOUT file 11. As a result, the calling frequency is known and the debugging job efficiency of a user program is improved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はモジュールの入口で割込みを発生させることが
できる情報処理システムにおける、利用者プログラムの
デバッグ作業時の、モジュールの呼び出し情報表示方式
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for displaying module call information during debugging of a user program in an information processing system capable of generating an interrupt at the entrance of a module.

〔従来の技術〕[Conventional technology]

従来、利用者プログラム内のモジュールの呼び出し情報
を得るには、調べたいモジュールで実行を中断し、スタ
ックをたどって呼び出し側のモジュールのアドレスやパ
ラメータの情報等を得る方法があった。
Conventionally, in order to obtain module call information in a user program, there has been a method of interrupting execution at the module of interest and tracing the stack to obtain information such as the address and parameters of the calling module.

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

上述した従来の方法では、利用者プログラム内のモジュ
ールがどのモジュールから何回呼び出されたかを知りた
い場合、利用者プログラム内のモジエールにデバッガで
中断点を設定し、連続して実行することによって利用者
自身が呼び出されたモジュールに何回到達したかを数え
える作業を行わなければならないため、利用者のミスや
到達回数が多い場合にはデバッグ作業に時間がかかり、
効率が悪いという問題点があった。
In the conventional method described above, if you want to know how many times a module in a user program has been called by which module, you can use it by setting a break point in the module in the user program using a debugger and running it continuously. Since the user must count the number of times the user has reached the called module, debugging takes time if the user makes a mistake or the number of times the module is reached is large.
The problem was that it was inefficient.

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

本発明のモジュールの呼び出し情報表示方式は、割込み
命令処理手段と、コマンド入力手段とを含むデバッガと
、利用者プログラム内でCALL文により呼び出された
モジュールに対して、該モジュールの呼び出し回数およ
び呼び出したモジュールを記憶する呼び出し情報記憶手
段と、利用者からの要求によって、前記呼び出し情報を
検索、表示する呼び出し情報検索/表示手段とを有して
いる。
The module call information display method of the present invention uses a debugger including an interrupt instruction processing means and a command input means, and a module called by a CALL statement in a user program to display the number of times the module has been called and the number of times the module has been called. It has a call information storage means for storing modules, and a call information search/display means for searching and displaying the call information in response to a request from a user.

〔作 用〕[For production]

本発明によれば、モジュールの呼び出し回数等は、自動
的に計測され、任意に表示することができるため、利用
者が計測作業等を行なう必要がなくなる。
According to the present invention, the number of times a module is called is automatically measured and can be displayed arbitrarily, so that there is no need for the user to perform measurement work.

〔実施例〕〔Example〕

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

第1図は本発明の構成を示す図である。また第2図は本
発明の動作の流れを示す図である。
FIG. 1 is a diagram showing the configuration of the present invention. Further, FIG. 2 is a diagram showing the flow of operation of the present invention.

第1図において、1はモジュールの呼び出し情報表示方
式、2はオペレーティングシステム、3は従来のデバッ
ガ、4は呼び出し情報検索/表示手段、5は呼び出し情
報記憶手段、6は呼び出し情報格納テーブル、7は割込
み命令処理手段、8はコマンド入力手段、9は主制御手
段、10は端末装置、11は5YSOUTフアイル、1
2は利用者プログラムである。
In FIG. 1, 1 is a module call information display method, 2 is an operating system, 3 is a conventional debugger, 4 is a call information search/display means, 5 is a call information storage means, 6 is a call information storage table, and 7 is a call information storage table. Interrupt command processing means, 8 command input means, 9 main control means, 10 terminal device, 11 5YSOUT file, 1
2 is a user program.

モジュールの呼び出し情報表示方式1は、従来のデバッ
ガ3と、呼び出し情報検索/表示手段4と、呼び出し情
報記憶手段5と、呼び出し情報格納テーブル6から構成
されている。
The module call information display method 1 includes a conventional debugger 3, a call information search/display means 4, a call information storage means 5, and a call information storage table 6.

利用者が端末装置10から本発明にモジュールの呼び出
し詳報の取得指示を行うと、利用者プログラム12内の
各モジュールの入り口で割り込みを発生させるようにシ
ステムに指示する。
When a user instructs the present invention to obtain module call details from the terminal device 10, the system is instructed to generate an interrupt at the entrance of each module in the user program 12.

その後利用者が利用者プログラム12の実行開始を指示
すると、利用者プログラム12の実行が開始される。
Thereafter, when the user instructs to start execution of the user program 12, the execution of the user program 12 is started.

モジュールの入り口で割り込みが発生すると、割り込み
命令処理手段7がシステムから呼び出され、主制御手段
9に制御を渡す。
When an interrupt occurs at the entrance of a module, the interrupt instruction processing means 7 is called by the system and passes control to the main control means 9.

呼び出し情報記憶手段5は、主制御手段9から呼び出さ
れ、呼び出しアドレスが呼び出し情報格納テーブル6内
に既に存在するかを調べ、存在しなければ該呼び出しア
ドレスと該呼び出しアドレスから呼び出された回数を呼
び出し情報格納テーブル6に格納する。該呼び出しアド
レスが呼び出し情報格納テーブル6内に存在すれば呼び
出し回数をインクリメント(加算)する。
The call information storage means 5 is called by the main control means 9, checks whether the call address already exists in the call information storage table 6, and if it does not exist, calls the call address and the number of calls from the call address. The information is stored in the information storage table 6. If the call address exists in the call information storage table 6, the number of calls is incremented (added).

呼び出し情報検索/表示手段4は、主制御手段9から呼
び出され、呼び出し情報格納テーブル6を検索し、検索
対象のモジュールの呼び出しアドレスと各アドレスでの
呼び出し回数を編集し、端末装置10や5YSOUTフ
アイル11に出力する。
The call information search/display means 4 is called by the main control means 9, searches the call information storage table 6, edits the call address of the module to be searched and the number of calls at each address, and displays the terminal device 10 and the 5YSOUT file. Output to 11.

コマンド入力手段8は、主制御手段9から呼び出され、
端末装置10からのデバッグコマンドを入力する。
The command input means 8 is called from the main control means 9,
A debug command is input from the terminal device 10.

次に第2図を用いて本発明の動作の流れを説明する。Next, the flow of operation of the present invention will be explained using FIG.

利用者プログラムを実行し、CALL文において割込み
が発生すると、モジュールの呼び出し情報表示方式1に
制御が渡る。(ステップ201)割込み命令処理手段7
は、発生した割込みがCALL文においての割込みであ
るかを調べ、そうならばステップ203へ移る。CAL
L文の割り込みでなければ従来のデバッガ3へ制御を移
す。
When a user program is executed and an interrupt occurs in a CALL statement, control is passed to module call information display method 1. (Step 201) Interrupt instruction processing means 7
checks whether the generated interrupt is a CALL statement interrupt, and if so, moves to step 203. CAL
If the interrupt is not an L statement, control is transferred to the conventional debugger 3.

(ステップ202) 主制御手段9から呼び出し情報記憶手段5が呼び出され
、ステップ201で割り込みの発生したモジュールのア
ドレスが呼び出し情報格納テーブル6内に格納されてい
るかを調べる。(ステップ呼び出し情報格納テーブル6
内に呼び出されたモジュールの情報が格納されていなけ
れば、割り込みの発生したモジュールのアドレスと、該
モジュールの呼び出しアドレスと、該アドレスでの呼び
出し回数を呼び出し情報格納テーブル6に格納する。(
ステップ204) 呼び出し情報格納テーブル6内に割り込みの発生したモ
ジュールの情報が格納されていれば、該モジュールの呼
び出しアドレスが既に格納されているかを調べる。(ス
テップ205) 呼び出しアドレスが既に呼び出し情報格納テーブル6に
格納されていなければ、該呼び出しアドレスと呼び出し
回数を呼び出し情報格納テーブル6に格納する。(ステ
ップ206) 飛び出しアドレスが既に呼び出し情報格納テーブルG内
に格納されていれば、該アドレスからの呼び出し回数を
インクリメント(加算)する。
(Step 202) The call information storage means 5 is called by the main control means 9, and it is checked in step 201 whether the address of the module in which the interrupt occurred is stored in the call information storage table 6. (Step call information storage table 6
If the information about the called module is not stored in the calling information storage table 6, the address of the module where the interrupt occurred, the calling address of the module, and the number of calls at the address are stored in the calling information storage table 6. (
Step 204) If the information of the module in which the interrupt occurred is stored in the call information storage table 6, it is checked whether the call address of the module has already been stored. (Step 205) If the call address is not already stored in the call information storage table 6, the call address and the number of calls are stored in the call information storage table 6. (Step 206) If the pop-up address is already stored in the call information storage table G, the number of calls from this address is incremented (added).

(ステンツブ207) 次にデバッグコマンドの入力後の動作を第3図に従って
説明する。
(Stentub 207) Next, the operation after inputting the debug command will be explained with reference to FIG.

利用者は、呼び出し情報を表示させるためのデバッグコ
マンドを端末装置1oから入力する。
The user inputs a debug command to display call information from the terminal device 1o.

(ステップ301) 呼び出し情報検索/表示手段4が主制御手段9から呼び
出され、呼び出し情報格納テーブル6内からデバッグコ
マンドに指定されたモジュールの情報が格納されている
かを調べる(ステップ302)指定されたモジュールの
情報が呼び出し情報格納テーブル6内に格納されていれ
ば、該モジュールと、呼び出し情報格納テーブル6内の
該モジュールの呼び出しアドレスと、各呼び出しアドレ
スでの呼び出し回数を端末装置10や5YSOUTフア
イル11に表示する。(ステップ303)格納されてい
なければエラーメツセージを端末装置10や5YSOU
Tフアイル11に表示する。
(Step 301) The call information search/display means 4 is called by the main control means 9, and checks whether the information of the module specified in the debug command is stored in the call information storage table 6 (Step 302) If the module information is stored in the call information storage table 6, the module, its call address in the call information storage table 6, and the number of calls at each call address are stored in the terminal device 10 or the 5YSOUT file 11. to be displayed. (Step 303) If the error message is not stored, the error message is sent to the terminal device 10 or 5YSOU.
It is displayed on the T-file 11.

(ステップ304) 〔発明の効果〕 以上説明したように本発明は、利用者プログラムの実行
に際し、任意の箇所において、任意のモジュールが現時
点までにどこから何回呼び出されたかを知ることができ
るので、従来では調べることができなかったスタック上
にないモジュールについても調べることができ、また、
呼び出された回数も知ることができる。
(Step 304) [Effects of the Invention] As explained above, the present invention makes it possible to know from where and how many times an arbitrary module has been called up to the present time at an arbitrary point when executing a user program. You can also check for modules that are not on the stack, which could not be checked in the past, and
You can also see the number of times it has been called.

従って、利用者プログラムのデバッグ作業効率の向上に
効果がある。
Therefore, it is effective in improving the efficiency of debugging user programs.

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

第1図は本発明の構成を示す図である。 第2図、第3図は本発明の動作の流れを示す図である。 ■・・・モジュールの呼び出し情報表示方式、2・・・
オペレーティングシステム、3・・・従来のデバッガ、
4・・・呼び出し情報検索/表示手段、5・・・呼び出
し情報記憶手段、6・・・呼び出し情報格納テーブル、
7・・・割込み命令処理手段、8・・・コマンド入力手
段、9・・・主制御手段、10・・・端末装置、11・
−・5YSOUTフアイル、12・・・利用者プログラ
ム。 代理人 弁理士  山 下 壌 平 第 図 第2図 第3図
FIG. 1 is a diagram showing the configuration of the present invention. FIGS. 2 and 3 are diagrams showing the flow of operation of the present invention. ■...Module call information display method, 2...
Operating system, 3... conventional debugger,
4... Call information search/display means, 5... Call information storage means, 6... Call information storage table,
7... Interrupt command processing means, 8... Command input means, 9... Main control means, 10... Terminal device, 11.
-・5YSOUT file, 12...User program. Agent Patent Attorney Yoshihiro Yamashita Figure 2 Figure 3

Claims (1)

【特許請求の範囲】[Claims] モジュールの入口で割込みを発生させることができるシ
ステムにおいて、割込み命令処理手段と、コマンド入力
手段とを含むデバッガと、利用者プログラム内でCAL
L文により呼び出されたモジュールに対して、該モジュ
ールの呼び出し回数、および該モジュールを呼び出した
モジュールとを記憶する呼び出し情報記憶手段と、利用
者からの要求によって、前記呼び出し情報を検索、表示
する呼び出し情報検索/表示手段とを有し、前記利用者
プログラムの任意の箇所で、デバッグコマンドを入力す
ることにより、任意のモジュールの呼び出し情報を表示
することを特徴とするモジュールの呼び出し情報表示方
式。
In a system that can generate an interrupt at the entrance of a module, a debugger including an interrupt instruction processing means, a command input means, and a CAL
A call information storage means for storing the number of times the module has been called and the module that called the module for a module called by the L sentence, and a caller that searches and displays the call information in response to a request from a user. 1. A module call information display method, comprising: an information search/display means, and displays call information of an arbitrary module by inputting a debug command at an arbitrary location in the user program.
JP2277828A 1990-10-18 1990-10-18 Display system for module call information Pending JPH04153743A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2277828A JPH04153743A (en) 1990-10-18 1990-10-18 Display system for module call information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2277828A JPH04153743A (en) 1990-10-18 1990-10-18 Display system for module call information

Publications (1)

Publication Number Publication Date
JPH04153743A true JPH04153743A (en) 1992-05-27

Family

ID=17588836

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2277828A Pending JPH04153743A (en) 1990-10-18 1990-10-18 Display system for module call information

Country Status (1)

Country Link
JP (1) JPH04153743A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6334210B1 (en) 1998-01-26 2001-12-25 Nec Corporation Language processing system and language processing method enabling reduction of memory region and overhead in profile information collection of computer
JP2008276683A (en) * 2007-05-07 2008-11-13 Nec Electronics Corp Testing device
US7836062B2 (en) 1999-05-06 2010-11-16 Hitachi, Ltd. Performance monitoring method in a distributed processing system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6334210B1 (en) 1998-01-26 2001-12-25 Nec Corporation Language processing system and language processing method enabling reduction of memory region and overhead in profile information collection of computer
US7836062B2 (en) 1999-05-06 2010-11-16 Hitachi, Ltd. Performance monitoring method in a distributed processing system
JP2008276683A (en) * 2007-05-07 2008-11-13 Nec Electronics Corp Testing device

Similar Documents

Publication Publication Date Title
JPH04153743A (en) Display system for module call information
JPH02275539A (en) Debugging system
JPH04153742A (en) Measurement system for program performance
JPH0581069A (en) Debugging method for program
JPH03273346A (en) Dynamic call relation analyzing system by symbolic debugger
JPH05189224A (en) Management system for processing method
JPH06231001A (en) Symbol name input device
JPS6292033A (en) Program debugging device
JP2811804B2 (en) Variable output range specification method
JPH06332750A (en) Interfacial screen debug system
CN117520155A (en) RPA flow debugging method and device, electronic equipment and storage medium
JPH04333146A (en) Program execution control system for debugging
JP2021036442A (en) Code reading support device, code reading support method, and code reading support program
JPH0262639A (en) Interruption system for language debugger
CN113760584A (en) Performance analysis data acquisition method, device, equipment and storage medium
JPH0561716A (en) Program debugging system
JP2777938B2 (en) Program execution path output device
JPH0546434A (en) Program debugging system
JPS6292034A (en) Program debugging device
JPS63259735A (en) Program debug system by program diagram in actual operating environment of program
JPH04235642A (en) Interruption control system for program module
JPH01195525A (en) Process selection system for multi-window
JPH03130840A (en) Trace control system for overlay module
JP2001067245A (en) Simulation method and simulation device
JPS63268040A (en) Program debugging system