JP2702356B2 - Debug information access method - Google Patents

Debug information access method

Info

Publication number
JP2702356B2
JP2702356B2 JP4159682A JP15968292A JP2702356B2 JP 2702356 B2 JP2702356 B2 JP 2702356B2 JP 4159682 A JP4159682 A JP 4159682A JP 15968292 A JP15968292 A JP 15968292A JP 2702356 B2 JP2702356 B2 JP 2702356B2
Authority
JP
Japan
Prior art keywords
information
file
management information
area
file management
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
JP4159682A
Other languages
Japanese (ja)
Other versions
JPH064341A (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.)
NEC Communication Systems Ltd
Original Assignee
NEC Communication Systems 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 Communication Systems Ltd filed Critical NEC Communication Systems Ltd
Priority to JP4159682A priority Critical patent/JP2702356B2/en
Publication of JPH064341A publication Critical patent/JPH064341A/en
Application granted granted Critical
Publication of JP2702356B2 publication Critical patent/JP2702356B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は大規模ソフトウェアのソ
ースコードレベルデバッガにおけるオブジェクトファイ
ル内のデバッグ情報にアクセスするデバッグ情報アクセ
ス方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a debug information access method for accessing debug information in an object file in a large-scale software source code level debugger.

【0002】[0002]

【従来の技術】従来、この種のデバッグ情報アクセス方
式では、ソースコードレベルデバッガによりオブジェク
トファイル中のデバッグ情報を始めから順番に検索し目
的のものを見つける検索機能か、あるいはバイナリサー
チによる検索機能により行われている。
2. Description of the Related Art Conventionally, in this kind of debug information access method, a source code level debugger searches a debug information in an object file in order from the beginning to find a target one, or a search function by a binary search. Is being done.

【0003】[0003]

【発明が解決しようとする課題】この従来のデバッグ情
報アクセス方式では、ファイル内デバッグ情報を先頭か
ら順に検索し目的のものを見つけるまで読んでいたた
め、ファイル内デバッグ情報が多くなる程、目的の情報
を得るためにかなりの時間が必要になっていた。また、
バイナリ方式においても同様理由により、大規模ソフト
ウェアに対するファイルアクセスには多くの時間が必要
であった。
In this conventional debug information access method, the debug information in the file is searched in order from the top and read until the target is found. Significant time was needed to get the information. Also,
For the same reason, in the binary system, file access to large-scale software requires much time.

【0004】本発明の目的は、大規模ソフトウェアのソ
ースコードレベルデバッガで、オブジェクトファイル中
のデバッグ情報検索のための処理時間を短縮することが
できるデバッグ情報アクセス方式を提供することにあ
る。
An object of the present invention is to provide a debug information access method which can reduce the processing time for searching for debug information in an object file in a large-scale software source code level debugger.

【0005】[0005]

【課題を解決するための手段】本発明のデバッグ情報ア
クセス方式は、データ処理装置におけるソースコードレ
ベルデバッガにおいて、デバッグ対象ロードモジュール
を構成するオブジェクトファイルの情報を持つファイル
管理情報から構成されるプログラム管理情報の領域,デ
バッグ情報アクセス用のファイル管理情報の領域,過去
に使用したファイル管理情報を蓄積する領域,デバッグ
情報アクセス用のファイル管理情報の領域を一時的に保
存する領域の各データ領域を持ち、前記デバッグ対象ロ
ードモジュールからデバッグ情報を入力して前記プログ
ラム管理情報を作成する初期設定デバッグ情報を参照す
る必要が生じた時に、前記デバッグ対象ロードモジュー
ルの実行アドレスに対応するファイル管理情報を一時的
に保存する第1のステップと、実行アドレスに対するフ
ァイル管理情報とオブジェクトファイルに対して必要な
情報とが存在するか否かのチェックを行う第2のステッ
プと、この第2のステップで該当情報が存在しなかった
とき過去に使用したことのあるファイル管理情報の中か
ら必要な情報があるか否かのチェックを行う第3のステ
ップと、この第3のステップで該当情報が存在しなかっ
たときロードモジュールを構成するすべてのオブジェク
トファイルのファイル管理情報をチェックする第4のス
テップと、この第4のステップで該当情報が存在したと
きこの使用したオブジェクトファイルに対するファイル
管理情報を蓄積する第5のステップと、前記第1のステ
ップで保存した値に戻す第6のステップとを含む構成で
ある。
SUMMARY OF THE INVENTION A debug information access method according to the present invention is a program management method for a source code level debugger in a data processing device, which comprises file management information having information on an object file constituting a load module to be debugged. It has an information area, an area for file management information for accessing debug information, an area for storing file management information used in the past, and an area for temporarily storing an area for file management information for accessing debug information. When it is necessary to input debug information from the debug target load module and refer to initialization debug information for creating the program management information, file management information corresponding to the execution address of the debug target load module is temporarily stored. Save to the first A second step of checking whether or not the file management information for the execution address and the necessary information for the object file exist; and, if the corresponding information did not exist in the second step, A third step of checking whether necessary information is included in the file management information that has been used in the third step, and when the corresponding information does not exist in the third step, all of the components constituting the load module A fourth step of checking the file management information of the object file, a fifth step of storing the file management information for the used object file when the corresponding information exists in the fourth step, And a sixth step of returning to the value stored in the step.

【0006】[0006]

【実施例】次に本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0007】図1は本発明の一実施例の処理手順を示す
フローチャートであり、アドレスを基にどのオブジェク
トファイルにアクセスすればよいかを決定するための論
理が示されており、データ処理装置におけるソースコー
ドレベルデバッガにより実施される。ソースコードレベ
ルデバッガは、デバッグ対象ロードモジュールを構成す
るオブジェクトファイルの情報を持つファイル管理情報
から構成されるプログラム管理情報の領域,デバッグ情
報アクセス用のファイル管理情報の領域,過去に使用し
たファイル管理情報を蓄積する領域,デバッグ情報アク
セス用のファイル管理情報の領域を一時的に保存する領
域の各データ領域を持ち、デバッグ対象ロードモジュー
ルからデバッグ情報を入力してプログラム管理情報を作
成する初期設定デバッグ情報を参照する必要が生じた時
に、デバッグ対象ロードモジュールの実行アドレスに対
応するファイル管理情報を一時的に保存し(ステップ;
S1)、現在使用中のオブジェクトファイルに対して必
要な情報が存在するか否かのチェックを行う(S2)。
FIG. 1 is a flow chart showing a processing procedure according to an embodiment of the present invention, in which logic for determining which object file should be accessed based on an address is shown. Implemented by source code level debugger. The source code level debugger has an area for program management information composed of file management information having information on object files constituting the load module to be debugged, an area for file management information for accessing debug information, and file management information used in the past. Initialization debug information that has each data area of an area for accumulating data and an area for temporarily storing an area for file management information for accessing debug information, and for creating program management information by inputting debug information from a load module to be debugged When it becomes necessary to refer to the file management information, the file management information corresponding to the execution address of the load module to be debugged is temporarily stored (step;
S1) It is checked whether necessary information exists for the currently used object file (S2).

【0008】次にS2で該当の情報が存在しなかったと
き過去に使用したことのあるオブジェクトファイルにつ
いて該当の情報が存在するか否かのチェックを行い(S
3)、S3で該当の情報が存在しなかったとき全てのオ
ブジェクトファイルについて該当の情報が存在するか否
かのチェックを行う(S4)。S4で該当情報が存在し
たときこの使用したファイルに対するファイル管理情報
を蓄積し(S5)、オブジェクトファイル内から必要な
情報をとり出し(S6)、最後にS1で保存した情報に
回復する(S7)。
Next, when the corresponding information does not exist in S2, it is checked whether or not the corresponding information exists in the object file which has been used in the past (S2).
3) When the corresponding information does not exist in S3, it is checked whether or not the corresponding information exists in all the object files (S4). When the corresponding information exists in S4, the file management information for the used file is accumulated (S5), necessary information is extracted from the object file (S6), and finally the information stored in S1 is restored (S7). .

【0009】図1で説明した論理を用いる理由は、アク
セス頻度の高さが、現在使用しているオブジェクトファ
イル,過去に使用したことのあるオブジェクトファイ
ル,全く使用されたことのないオブジェクトファイルの
順で高いことが予想されるためである。
The reason for using the logic described with reference to FIG. 1 is that the frequency of access is high in the order of the object file currently used, the object file used in the past, and the object file never used. Is expected to be high.

【0010】図2は図1の論理でファイルを決定する際
に使用するプログラム構成管理情報を格納する為の領域
のイメージを示した図である。本領域にはデバッグ対象
プログラムを構成するオブジェクトファイル名21と、
オブジェクトファイルの先頭アドレス22と、オブジェ
クトファイルの終端アドレス23とがそれぞれ入ってお
り、オブジェクトファイルを直接読むことなく、目的の
オブジェクトファイルを発見することが可能である。
FIG. 2 is a diagram showing an image of an area for storing program configuration management information used when deciding a file by the logic of FIG. In this area, an object file name 21 constituting the program to be debugged,
Since the start address 22 of the object file and the end address 23 of the object file are entered, it is possible to find a target object file without directly reading the object file.

【0011】図3は一度アクセスしたオブジェクトファ
イルの情報をバッファリングする為の領域のイメージを
示した図である。この領域は、図2で示したプログラム
構成管理情報のうち使用したものを入れておくためのも
ので、オブジェクトファイル名31と、オブジェクトフ
ァイルの先頭アドレス32と、オブジェクトファイルの
終端アドレス33と、情報に対応したオブジェクトファ
イルのファイル記述子34とから構成されている。本領
域を使用するのは、一度アクセスされたオブジェクトフ
ァイルは、将来アクセスされる可能性が高く、アクセス
に必要な情報を保管しておけば、次回の処理が不要にな
り高速化が図れる。
FIG. 3 is a diagram showing an image of an area for buffering information of an object file once accessed. This area is used to store the used information of the program configuration management information shown in FIG. 2, and includes an object file name 31, an object file start address 32, an object file end address 33, And a file descriptor 34 of an object file corresponding to. This area is used because an object file that has been accessed once is highly likely to be accessed in the future, and if information necessary for access is stored, the next processing is not required and the speed can be increased.

【0012】図4は現在使用中の情報が他オブジェクト
ファイルのデバッグ情報参照の前後で変わらない様にす
る為に、現状を保存する領域のイメージを示した図であ
る。この領域は、現在使用中のオブジェクトファイル名
41と、オブジェクトファイルの先頭アドレス42と、
オブジェクトファイルの終端アドレス43と、オブジェ
クトファイルのファイル記述子44とから構成されてい
る。本領域を使用して、図1のS1,S7の様に保存,
回復を行えば、処理前後で現在参照中のファイルが変わ
らない為、次回現在参照中のファイルへのアクセスが早
くなる。
FIG. 4 is a diagram showing an image of an area for saving the current state so that the information currently in use does not change before and after referring to debug information of another object file. This area includes a currently used object file name 41, a starting address 42 of the object file,
It is composed of an end address 43 of the object file and a file descriptor 44 of the object file. Using this area, save as S1 and S7 in FIG.
If the recovery is performed, the currently referred file does not change before and after the process, and therefore, the next access to the currently referred file is accelerated.

【0013】[0013]

【発明の効果】以上説明したように本発明は、オブジェ
クトファイル内デバッグ情報を参照するファイルを決定
する論理として、現在参照中のファイル,過去に参照し
たことのあるファイル,全てのファイルの順にアクセス
して対象のファイルを決定するので、参照したことのあ
るファイルの情報を得るための時間が早くなるという効
果を有する。
As described above, according to the present invention, as a logic for determining a file to refer to debug information in an object file, a file currently being referenced, a file which has been referenced in the past, and all files are accessed in this order. Since the target file is determined in this way, the time required to obtain information on the file that has been referred to is shortened.

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

【図1】本発明の一実施例の処理手順を示すフローチャ
ートである。
FIG. 1 is a flowchart illustrating a processing procedure according to an embodiment of the present invention.

【図2】図1で示した論理において、判定のために使用
するプログラム構成管理情報の記憶領域のイメージを示
した図である。
FIG. 2 is a diagram showing an image of a storage area of program configuration management information used for determination in the logic shown in FIG. 1;

【図3】図2の情報の内、一度使用したものについてフ
ァイルアクセスに必要な情報と合わせて一時的にバッフ
ァリングする為の領域のイメージを示した図である。
3 is a diagram showing an image of an area for temporarily buffering information used once in the information of FIG. 2 together with information necessary for file access.

【図4】ファイル内デバック情報アクセスによって参照
しているファイルが変わらないように、情報の保存,回
復を行う為の領域のイメージを示した図である。
FIG. 4 is a diagram showing an image of an area for saving and restoring information so that a file referred to by accessing debug information in a file is not changed;

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 データ処理装置におけるソースコードレ
ベルデバッガにおいて、デバッグ対象ロードモジュール
を構成するオブジェクトファイルの情報を持つファイル
管理情報から構成されるプログラム管理情報の領域,デ
バッグ情報アクセス用のファイル管理情報の領域,過去
に使用したファイル管理情報を蓄積する領域,デバッグ
情報アクセス用のファイル管理情報の領域を一時的に保
存する領域の各データ領域を持ち、前記デバッグ対象ロ
ードモジュールからデバッグ情報を入力して前記プログ
ラム管理情報を作成する初期設定デバッグ情報を参照す
る必要が生じた時に、前記デバッグ対象ロードモジュー
ルの実行アドレスに対応するファイル管理情報を一時的
に保存する第1のステップと、実行アドレスに対するフ
ァイル管理情報とオブジェクトファイルに対して必要な
情報とが存在するか否かのチェックを行う第2のステッ
プと、この第2のステップで該当情報が存在しなかった
とき過去に使用したことのあるファイル管理情報の中か
ら必要な情報があるか否かのチェックを行う第3のステ
ップと、この第3のステップで該当情報が存在しなかっ
たときロードモジュールを構成するすべてのオブジェク
トファイルのファイル管理情報をチェックする第4のス
テップと、この第4のステップで該当情報が存在したと
きこの使用したオブジェクトファイルに対するファイル
管理情報を蓄積する第5のステップと、前記第1のステ
ップで保存した値に戻す第6のステップとを含むことを
特徴とするデバッグ情報アクセス方式。
In a source code level debugger in a data processing device, an area of program management information composed of file management information having information of an object file constituting a load module to be debugged, and a file management information for debugging information access. An area for storing file management information used in the past, and an area for temporarily storing an area for file management information for accessing debug information. A first step of temporarily saving file management information corresponding to an execution address of the load module to be debugged when it is necessary to refer to initialization debug information for creating the program management information; Management information and A second step of checking whether necessary information exists for the object file; and a step of checking file management information which has been used in the past when the corresponding information did not exist in the second step. A third step of checking whether there is any necessary information from among them, and checking file management information of all object files constituting the load module when the corresponding information does not exist in the third step A fourth step, a fifth step of storing file management information for the used object file when the corresponding information is present in the fourth step, and a sixth step of returning to the value stored in the first step. And a debug information access method.
JP4159682A 1992-06-18 1992-06-18 Debug information access method Expired - Fee Related JP2702356B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4159682A JP2702356B2 (en) 1992-06-18 1992-06-18 Debug information access method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4159682A JP2702356B2 (en) 1992-06-18 1992-06-18 Debug information access method

Publications (2)

Publication Number Publication Date
JPH064341A JPH064341A (en) 1994-01-14
JP2702356B2 true JP2702356B2 (en) 1998-01-21

Family

ID=15699026

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4159682A Expired - Fee Related JP2702356B2 (en) 1992-06-18 1992-06-18 Debug information access method

Country Status (1)

Country Link
JP (1) JP2702356B2 (en)

Also Published As

Publication number Publication date
JPH064341A (en) 1994-01-14

Similar Documents

Publication Publication Date Title
US5261088A (en) Managing locality in space reuse in a shadow written B-tree via interior node free space list
JP2574985B2 (en) Digital data processing system and error handling method
US20070255771A1 (en) Method and system for renewing an index
JP2702356B2 (en) Debug information access method
JP2925042B2 (en) Information link generation method
JP3082344B2 (en) Disk file control device and update method
CN114816247A (en) Logic data acquisition method and device
JP3180336B2 (en) Data access method using multilayer buffer
JP3461185B2 (en) Method and apparatus for registering source code line number to load module
JPS639587A (en) Ic card
JP2822869B2 (en) Library file management device
CN112162950B (en) Data processing method and device based on file system and computer equipment
JP2745500B2 (en) String search device
JP3118348B2 (en) Program cache method
JPH0744426A (en) File management method for file system
CN110895531A (en) Data writing method of data storage table, partition server and electronic equipment
JPH10240627A (en) Sector management method and device
JPH0447344A (en) History journal recording system
JP3021697B2 (en) Exception handling in programming languages
CN116301602A (en) Data recording or reading method and device, acquisition equipment, vehicle and medium
JP2727947B2 (en) Address trace method
JP2001142772A (en) Management method by memory name, copying method, medium for recording management program by memory name and medium for recording copying program
JPH10289136A (en) Data file loading system
JPS61272834A (en) Retrieval execution system for backup program
JP2000029750A (en) Memory dump file reconstituting system

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: 19970826

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees