JPH01226042A - Program trace processing system - Google Patents

Program trace processing system

Info

Publication number
JPH01226042A
JPH01226042A JP63051981A JP5198188A JPH01226042A JP H01226042 A JPH01226042 A JP H01226042A JP 63051981 A JP63051981 A JP 63051981A JP 5198188 A JP5198188 A JP 5198188A JP H01226042 A JPH01226042 A JP H01226042A
Authority
JP
Japan
Prior art keywords
information
area
memory access
program
protection
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
JP63051981A
Other languages
Japanese (ja)
Inventor
Nobuhiko Kishigami
岸上 信彦
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 JP63051981A priority Critical patent/JPH01226042A/en
Publication of JPH01226042A publication Critical patent/JPH01226042A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To collect trace information and to improve debugging efficiency by providing a protection area information table and a memory access information table and tracing the setting of data in a storage area to be utilized by a program and a reference state. CONSTITUTION:A registering means 2 registers a protection area range specifying information and collecting function information in a protection area information table 3 and a control means 5 sets up execution address information relating to a memory access execution instruction at the time of executing the program, memory reference information and reference information before and after setting in a memory access information table 6. A deciding means 7 decides whether a memory access based upon an execution instruction in the program is included within the protection area range in the storage area or not based on the memory reference information and the protection area range specifying information. When the memory access is included within the protection area range is decided, a state collecting means 8 forms and outputs collection data relating to the protection area in a format based upon the collecting function information by referring the table 6 and the storage area.

Description

【発明の詳細な説明】 (産業上の利用分野〕 本発明はプログラムの追跡処理方式(プログラムで利用
する記憶域に対するデータの設定および参照の状況を追
跡する処理を行う方式)に関し、特にプログラムのデバ
グ処理におけるプログラムの追跡処理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a program tracking processing method (a method for tracking the status of data settings and references in a storage area used by a program), and particularly to This invention relates to a program tracking processing method in debug processing.

〔従来の技術〕[Conventional technology]

従来、この種のプログラムの追跡処理方式では、記憶域
の特定の領域に対するデータの設定や参照の方法に不正
があるために不正な動作を引き起こし当該特定の領域の
データを不正なものとしている疑いがあるプログラムに
対してそのプログラムにおいて不正な設定や参照がなさ
れていると思われる部分(命令)をデバグ支援プログラ
ムへの分岐命令に書き換えることにより中断点を設けそ
の中断点における当該特定の領域の値を調べて問題箇所
(プログラム中の不正な部分)を発見する方式や、プロ
グラム中にトレースダンプ命令を挿入しその実行結果(
トレース情報)により問題箇所を発見する方式等が行わ
れていた。
Traditionally, this type of program tracking processing method detects the suspicion that an incorrect method of setting or referencing data in a specific area of the storage area causes an incorrect operation, making the data in that specific area invalid. A break point is created for a certain program by rewriting the part (instruction) that seems to have been incorrectly set or referenced in that program with a branch instruction to the debug support program, and the specific area at the break point is There are two methods: checking the values to find the problem (invalid part in the program), and inserting a trace dump command into the program and checking the execution results (
A method was used to discover problem areas using trace information).

(発明が解決しようとする課題〕 上述した従来のプログラムの追跡処理方式では、−回の
実施(追跡処理のためのプログラムの実行)だけでは問
題箇所を発見することが困難であり、試行錯誤的に少し
ずつ問題箇所が存在すると予想されるプログラム中の範
囲を狭くすることにより所望の問題箇所を発見しなけら
ばならない(上述の後者の方式の場合には、ステップ数
の小さなプログラムであれば一回の実施で問題箇所を発
見することができるがステップ数の大きなプログラムに
ついてはプログラム全体のトレース情報を収集すること
ができないので試行錯誤的な処理が必要となる)ので、
このプログラムの追跡処理方式を使用し行うプログラム
のデバグ処理の効率が悪くなるという欠点がある。
(Problems to be Solved by the Invention) In the conventional program tracking processing method described above, it is difficult to find a problem location by just executing the program for - times (executing the program for tracking processing), and it is difficult to find a problem by trial and error. The desired problem location must be discovered by gradually narrowing the range in the program where the problem location is expected to exist (in the case of the latter method mentioned above, if the program has a small number of steps, Problems can be found in one run, but for programs with a large number of steps, it is not possible to collect trace information for the entire program, so trial and error processing is required.)
There is a drawback that the efficiency of program debug processing performed using this program tracking processing method is reduced.

また、前者の方式における中断点における分岐命令への
書換えや後者の方式におけるトレースダンプ命令の挿入
等のようにプログラムの一部分を書き換えなければなら
ないので、プログラムの一部分の書換えに起因する誤動
作や不正動作が発生する可能性が生じるという欠点があ
る。
In addition, part of the program must be rewritten, such as rewriting to a branch instruction at a break point in the former method, or inserting a trace dump instruction in the latter method, so malfunctions or malfunctions caused by rewriting a part of the program may occur. The disadvantage is that there is a possibility that this may occur.

本発明の目的は、上述の点に鑑み、プログラムのデバグ
処理における効率を向上することができ、プログラムの
一部分の書換えを必要としないプログラムの追跡処理方
式を提供することにある。
In view of the above-mentioned points, an object of the present invention is to provide a program tracking processing method that can improve efficiency in program debug processing and does not require rewriting a part of the program.

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

本発明のプログラムの追跡処理方式は、プログラムのデ
バグ処理のためにこのプログラムで利用する記憶域に対
するデータの設定および参照の状況を追跡する処理にお
いて、前記記憶域上の保護領域を規定する保護領域範囲
指定情報と収集データを収集する態様を指示する収集a
能情報とを有する保護領域情報テーブルと、前記プログ
ラム中でメモリアクセスを実行する実行命令のアドレス
を示す実行アドレス情報と前記記憶域上のメモリアクセ
スの対象の領域を特定するメモリ参照情報と前記記憶域
上の領域に対するメモリアクセスの内容等を示す設定前
後/参照情報とを存するメモリアクセス情報テーブルと
、保護情報パラメータにより指定された保護領域範囲指
定情報および収集機能情報を前記保護領域情報テーブル
に登録する保護領域情報登録手段と、前記プログラムの
実行時に前記記憶域に対するメモリアクセスを実行する
実行命令に関する実行アドレス情報、メモリ参照情報お
よび設定前後/参照情報を前記メモリアクセス情報テー
ブルに設定する保護領域判定手段と、この保護領域判定
手段により設定された前記メモリアクセス情報テーブル
中のメモリ参照情報および前記保護領域情報登録手段に
より登録された前記保護領域情報テーブル中の保護領域
範囲指定情報に基づき前記プログラム中の実行命令によ
るメモリアクセスが前記記憶域上の保1%M域の範囲内
を対象としているか否かを判定する保護領域判定手段と
、この保護領域判定手段による判定で前記プログラム中
の実行命令によるメモリアクセスが保護領域の範囲内を
対象としていることが判明した場合にその保11 jJ
I域に関する収集データを前記保護領域情報テーブル中
の収集機能情報に基づく態様で前記メモリアクセス情報
テーブルと前記記憶域とを参照して作成し出力する保M
 S’ll域状況収集手段とを有する。
The program tracking processing method of the present invention provides a protection area that defines a protection area on the storage area in the process of tracking the status of data settings and references to a storage area used by the program for debugging the program. Collection a that instructs how to collect range specification information and collection data
a protected area information table having function information; execution address information indicating an address of an execution instruction that executes a memory access in the program; memory reference information specifying an area to be accessed in the storage area; and the storage area. Register a memory access information table containing setting/reference information indicating the content of memory access to the area in the area, and protection area range designation information and collection function information specified by the protection information parameter in the protection area information table. a protection area information registration means for setting execution address information, memory reference information, and setting/reference information regarding an execution instruction that executes memory access to the storage area during execution of the program in the memory access information table; and memory reference information in the memory access information table set by the protection area determination unit and protection area range designation information in the protection area information table registered by the protection area information registration unit. protection area determination means for determining whether or not a memory access by an execution instruction in the program is within the 1% M area on the storage area; If it is determined that the memory access is within the protected area, the protection
A maintenance module that creates and outputs collected data regarding the I area by referring to the memory access information table and the storage area in a manner based on the collection function information in the protected area information table.
S'll area status collection means.

〔作用〕[Effect]

本発明のプログラムの追跡処理方式では、保護領域情報
テーブルが記憶域上の保1lfil域を規定する保護領
域範囲指定情報と収集データを収集する態様を指示する
収集機能情報とを有し、メモリアクセス情報テーブルが
プログラム中でメモリアクセスを実行する実行命令のア
ドレスを示す実行アドレス情報と記憶域上のメモリアク
セスの対象の領域を特定するメモリ参照情報と記憶域上
の領域に対するメモリアクセスの内容等を示す設定前後
/参照情報とを有し、保護領域情報登録手段が保護情報
パラメータにより指定された保護領域範囲指定情報およ
び収集機能情報を保118N域情報テーブルに登録し、
保II 8m域判定手段がプログラムの実行時に記憶域
に対するメモリアクセスを実行する実行命令に関する実
行アドレス情報、メモリ参照情報および設定前後/参照
情報をメモリアクセス情報テーブルに設定し、保護領域
判定手段が保護領域判定手段により設定されたメモリア
クセス情報テーブル中のメモリ参照情報および保!l 
fil域情報登録手段により登録された保護領域情報テ
ーブル中の保護領域範囲指定情報に基づきプログラム中
の実行命令によるメモリアクセスが記憶域上の保!11
8!域の範囲内を対象としているか否かを判定し、保護
領域状況収集手段が保r!L?iI域判定手段による判
定でプログラム中の実行命令によるメモリアクセスが保
護領域の範囲内を対象としていることが判明した場合に
その保護領域に関する収集データを保護領域情報テーブ
ル中の収集機能情報に基づく態様でメモリアクセス情報
テーブルと記憶域とを参照して作成し出力する。
In the program tracking processing method of the present invention, the protection area information table has protection area range designation information that defines a storage area on the storage area and collection function information that instructs the manner in which collected data is collected, and the protection area information table has memory access information. The information table contains execution address information that indicates the address of the execution instruction that executes memory access in the program, memory reference information that specifies the target area of memory access on the storage area, and contents of memory access to the area on the storage area. the protection area information registration means registers the protection area range designation information and collection function information specified by the protection information parameter in the protection area information table;
Protection II: The 8m area determination means sets execution address information, memory reference information, and setting/reference information regarding an execution instruction that performs memory access to a storage area during program execution in a memory access information table, and the protected area determination means sets the Memory reference information and maintenance in the memory access information table set by the area determination means! l
Based on the protection area range designation information in the protection area information table registered by the file area information registration means, memory accesses by execution instructions in the program are executed in the storage area. 11
8! The protection area status collection means determines whether or not the target area is within the protected area. L? iI A mode in which when it is determined by the area determination means that a memory access by an execution instruction in a program is targeted within the range of a protected area, the collected data regarding that protected area is based on the collection function information in the protected area information table. Create and output by referring to the memory access information table and storage area.

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

第1図は、本発明のプログラムの追跡処理方式の一実施
例の構成を示すブロック図である0本実施例のプログラ
ムの追跡処理方式は、ユーザプログラム実行環境設定手
段1と、保護領域情報登録手段2と、保護領域情報テー
ブル3と、ユーザプログラム実行手段4と、保護領域判
定手段5と、メモリアクセス情報テーブル6と、保護領
域判定手段7と、保護領域状況収集手段8と、メモリア
クセス手段9と、記憶域10と、保護情報パラメータ1
1と、ユーザプログラム12(本実施例では追跡処理の
対象をユーザプログラム12としているがシステムプロ
グラムにも本発明が適用できることはいうまでもない)
と、収集ファイル13とを含んで構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the program tracking processing method of the present invention. means 2, protection area information table 3, user program execution means 4, protection area determination means 5, memory access information table 6, protection area determination means 7, protection area status collection means 8, and memory access means 9, storage area 10, and protection information parameter 1
1, and a user program 12 (in this embodiment, the tracking process is performed on the user program 12, but it goes without saying that the present invention can also be applied to system programs).
and a collection file 13.

第2図を参照すると、保護領域情報登録手段2により設
定され保護領域判定手段7および保護領域状況収集手段
8により参照される保護領域情報テーブル3は、記憶域
10上のどの領域を保II ml域(ニーf7’ログラ
ム12 (−船釣にはシステムプログラムを含むプログ
ラム)上の不正な部分を発見するために記憶域lO上の
特定の領域(プログラム上の不正な部分に起因して不正
なデータが設定された領域およびその領域に関連する領
域等)を含むように設定される領域(範囲は任意に設定
できる))として規定するかを指示する開始アドレス(
保護領域の最初の領域のメモリアドレス)および終了ア
ドレス(保II 8N域の最後の領域のメモリアドレス
)を有する保護領域範囲指定情報31と、収集データ(
保!!!領域範囲指定情報31で特定される保1!領域
へのメモリアクセス(データの設定または参照)を行う
実行命令およびその実行命令によるメモリアクセスが行
われたときの保護領域中のデータの内容等を示す情報)
を収集ファイル13に収集する態様の指示(ある保護領
域に関する収集データを収集する場合の収集データを収
集する時機がその保11 ml域中の領域へのデータの
設定前。
Referring to FIG. 2, the protection area information table 3 set by the protection area information registration means 2 and referred to by the protection area determination means 7 and the protection area status collection means 8 determines which areas on the storage area 10 are reserved. In order to discover invalid parts on the program 12 (- programs including system programs for boat fishing), a specific area on the storage area IO (an invalid part caused by an invalid part on the program) can be detected. The start address (which specifies whether the area is defined as an area (the range can be set arbitrarily)) including areas where data is set and areas related to that area, etc.
Protection area range designation information 31 having the memory address of the first area of the protection area) and the end address (memory address of the last area of the protection II 8N area), and the collected data (
Safe! ! ! Protection 1 specified by area range specification information 31! Execution instructions that perform memory access to the area (setting or referencing data) and information indicating the contents of data in the protected area when memory access is performed by the execution instructions)
Instructions on how to collect data into the collection file 13 (when collecting data related to a certain protection area, the timing for collecting data is limited to 11 before setting data to the area in the ml area).

設定後および参照のいずれであるかを示す指示等)を示
す収集機能情報32とから構成されている。
Collection function information 32 indicating whether the collection function is after setting or reference, etc.).

第3図を参照すると、保護領域判定手段5および保護領
域判定手段7により設定され保il tin域判定手段
7および保護領域状況収集手段8により参照されるメモ
リアクセス情報テーブル6は、二一ザブログラム12中
でメモリアクセスの要求を行う実行命令のアドレスを有
する実行アドレス情報61と、メモリアクセスの対象の
記憶域10上の領域のメモリアドレスおよびメモリ長を
有するメモリ参照情報62と、その領域に対するメモリ
アクセスの内容が「データの設定」および「データの参
照」のいずれであるかを示し「データの設定」である場
合にはその設定が終了しているか否かを「設定前」およ
び「設定後」で識別する設定前後/参照情報63とから
構成されている。
Referring to FIG. 3, the memory access information table 6 set by the protected area determining means 5 and the protected area determining means 7 and referred to by the protected area determining means 7 and the protected area status collecting means 8 includes the Execution address information 61 having the address of the execution instruction that requests memory access therein, memory reference information 62 having the memory address and memory length of the area on the storage area 10 to which the memory is accessed, and memory access to that area. Indicates whether the content is "data setting" or "data reference", and if it is "data setting", whether the setting is completed or not "before setting" and "after setting". It consists of setting before/after/reference information 63 identified by .

次に、このように構成された本実施例のプログラムの追
跡処理方式の動作について説明する。
Next, the operation of the program tracking processing method of this embodiment configured as described above will be explained.

ユーザプログラム12のデバグ処理においてユーザプロ
グラム12中の不正な部分を発見するためにユーザプロ
グラム12の追跡処理が行われろ場合には、ユーザプロ
グラム実行環境設定手段1は保護領域情報テーブル3に
保護情報パラメータ11中の情報(保護領域範囲指定情
報31および収集機能情報32)を設定するために保護
領域情報登録手段2を起動する。その後に、ユーザプロ
グラム12を実行するためにユーザプログラム実行手段
4を起動する。
When tracking processing of the user program 12 is performed in order to discover invalid parts in the user program 12 during debugging processing of the user program 12, the user program execution environment setting means 1 stores protection information parameters in the protection area information table 3. 11 (protected area range designation information 31 and collection function information 32), the protected area information registration means 2 is activated. Thereafter, the user program execution means 4 is activated to execute the user program 12.

保護領域情報登録手段2は、保護情報パラメータ11を
入力し、記憶域10上の保護領域を規定する保護領域範
囲指定情報31と収集データを収集する態様を指示する
収集機能情報32とを保護領域情報テーブル3に設定す
る。
The protection area information registration means 2 inputs the protection information parameters 11 and inputs the protection area range designation information 31 that defines the protection area on the storage area 10 and the collection function information 32 that instructs the manner in which collected data is collected. Set in information table 3.

ユーザプログラム実行環境設定手段1により起動された
ユーザプログラム実行手段4は、ユーザプログラム12
の実行を行う、この実行の過程で実行命令による記憶域
10に対するメモリアクセスの要求があれば、ユーザプ
ログラム実行手段4は保護領域判定手段5を起動する。
The user program execution means 4 started by the user program execution environment setting means 1 executes the user program 12
During the execution process, if there is a request for memory access to the storage area 10 by an execution command, the user program execution means 4 activates the protected area determination means 5.

起動された保rM fil域判定手段5は、ユーザプロ
グラム12においてメモリアクセスを要求した実行命令
のアドレスを情報として有する実行アドレス情報61と
メモリアクセスの対象の記憶域10上の領域のメモリア
ドレスおよびメモリ長を情報として存するメモリ参照情
報62とメモリアクセスの内容等を示す設定前後/参照
情報63とをメモリアクセス情報テーブル6に設定する
。さらに、保護領域判定手段7を起動し、その後にメモ
リ参照情報62により示される記憶域10上の領域に対
する設定や参照を実行するためにメモリアクセス手段9
を起動する。
The activated maintenance file area determining means 5 extracts execution address information 61 having as information the address of the execution instruction that requested memory access in the user program 12, the memory address of the area on the storage area 10 to which the memory is accessed, and the memory Memory reference information 62, which exists as length information, and setting/reference information 63 indicating the content of memory access, etc. are set in the memory access information table 6. Furthermore, the memory access means 9 activates the protected area determination means 7 and then executes settings and references to the area on the storage area 10 indicated by the memory reference information 62.
Start.

保護領域判定手段5により起動されたメモリアクセス手
段9は、記憶域10上の所定の領域に対してメモリアク
セスを行う。
The memory access means 9 activated by the protected area determination means 5 performs memory access to a predetermined area on the storage area 10.

保護領域判定手段5により起動された保護領域判定手段
7は、メモリアクセスの内容が保護情報パラメータ11
により指定されている保護fiJl域の範囲内を対象と
するメモリアクセスであるか否かを判定するために、メ
モリアクセス情報テーブル6中のメモリ参照情報62に
基づいて保護領域情報テーブル3中の保護領域範囲指定
情報31を検索する(メモリ参照情報62中のメモリア
ドレスの示す領域からメモリ長が示す長さ分の領域まで
のいずれかが保護領域範囲指定情報31中の開始アドレ
スから終了アドレスまでの範囲内に含まれるものが存在
するか否かが検索される)、この検索によりユーザプロ
グラム12中の実行命令のメモリアクセスの内容が保護
領域の範囲内を対象とするメモリアクセスである場合に
は、保護領域判定手段7は保護領域情報テーブル3中の
収集機能情報32(上述の検索で取り出された保護領域
範囲指定情報31に対応する収集機能情報32)を参照
して記憶域10上の上述の保護領域範囲指定情報31で
特定される保護領域内の状況(データ)を収集するため
に保護領域状況収集手段8を起動する。
The protected area determining means 7 activated by the protected area determining means 5 determines that the content of the memory access is the protected information parameter 11.
In order to determine whether or not the memory access is within the protected fiJl area specified by Search the area range specification information 31 (any one from the area indicated by the memory address in the memory reference information 62 to the area of the length indicated by the memory length is from the start address to the end address in the protected area range specification information 31). ), and if the content of the memory access of the execution instruction in the user program 12 is a memory access that targets within the protected area. , the protection area determination means 7 refers to the collection function information 32 in the protection area information table 3 (the collection function information 32 corresponding to the protection area range designation information 31 retrieved by the above search) and determines the above-mentioned data in the storage area 10. The protected area status collection means 8 is activated to collect the status (data) within the protected area specified by the protected area range designation information 31.

保護領域状況収集手段8は、保護領域情報テーブル3中
の収集機能情報32が示す態様(収集機能情報32に対
応する保護領域範囲指定情報31で特定される保護領域
に関する収集データを収集する時機がデータの設定前、
データの設定後および参照時のいずれであるか(複数の
時機の指定も可能である)という態様等)に基づき(収
集機能情報32が示す収集の時機とメモリアクセス情報
テーブル6中の設定前後/参照情報63が示す現時点の
メモリアクセスの内容とが一致すれば収集データを収集
する)、メモリアクセス情報テーブル6中のメモリ参照
情報62と記憶域10とを参照し、記憶域10上のメモ
リ参照情報62により示されるメモリアクセスの対象の
領域を含む保護領域中の状況およびメモリアクセス情報
テーブル6中の実行アドレス情報61等を収集し収集デ
ータを作成して収集ファイル13に出力し、ユーザプロ
グラム12のデバグ処理の便に供する。
The protection area status collection means 8 detects the timing indicated by the collection function information 32 in the protection area information table 3 (when it is time to collect collected data regarding the protection area specified by the protection area range designation information 31 corresponding to the collection function information 32). Before setting the data,
Based on the timing of collection indicated by the collection function information 32 and the settings before and after the data in the memory access information table 6, If the content of the current memory access indicated by the reference information 63 matches, the collected data is collected), the memory reference information 62 in the memory access information table 6 and the storage area 10 are referred to, and the memory reference on the storage area 10 is performed. The situation in the protected area including the memory access target area indicated by the information 62 and the execution address information 61 in the memory access information table 6 are collected, the collected data is created and output to the collected file 13, and the user program 12 This is useful for debugging.

ここで、上述のメモリアクセスの内容がデータの設定で
ある場合には、保護領域判定手段5は設定前に保護領域
判定手段7を起動し、メモリアクセス手段9による記憶
域IOに対するデータの設定後にメモリアクセス情報テ
ーブル6中の設定前後/参照情報63を「設定前」から
「設定後」に書き換えて再び保護領域判定手段7を起動
する。これにより、記憶域10に対するデータの設定前
および設定後の収集データの収集が可能になる。
Here, if the content of the above-mentioned memory access is data setting, the protection area determination means 5 activates the protection area determination means 7 before the setting, and after the memory access means 9 sets the data for the storage area IO. The before/after setting/reference information 63 in the memory access information table 6 is rewritten from "before setting" to "after setting" and the protected area determining means 7 is activated again. This makes it possible to collect data before and after data is set in the storage area 10.

(発明の効果〕 以上説明したように本発明は、プログラムのデバグ処理
のために行われるプログラムの追跡処理において、記憶
域上の特定の領域を保護領域として設定しプログラム中
の実行命令によるメモリアクセスに対してその領域が保
護領域の範囲内であるか否かを判定し保!i!領域の範
囲内である場合にのみその時点における保護領域中の状
況を収集データとして収集することにより、保護領域中
の領域に実際にデータが設定されたり参照されたりした
ときの保護領域およびプログラムの状況だけを自動的に
追跡することができ(従来のプログラム追跡処理方式で
はプログラム側からの追跡処理を行っているので保II
fil域中の領域に対するデータの設定または参照と無
関係に追跡が行われるのに対し本発明は記憶域側からの
追跡処理を行っているので上述の追跡が可能になる)、
このプログラムの追跡処理方式を使用するプログラムの
デバグ処理の効率を向上することができるという効果が
ある。
(Effects of the Invention) As described above, the present invention enables memory access by an execution command in a program by setting a specific area on a storage area as a protected area in a program tracing process performed for program debugging. By determining whether the area is within the protected area and collecting the situation in the protected area at that time as collected data only if it is within the protected area. It is possible to automatically track only the status of the protected area and program when data is actually set or referenced in the area (in the conventional program tracking processing method, tracking processing is performed from the program side). Because it is, it is protected II.
Tracking is performed regardless of data settings or references to areas in the file area, whereas the present invention performs tracking processing from the storage area side, making the above-mentioned tracking possible).
There is an effect that the efficiency of debugging a program using this program tracking processing method can be improved.

また、プログラムの一部分の6替えを行うことなくプロ
グラムの追跡処理が実行できることにより、プログラム
の一部分の書損えに起因する誤動作や不正動作の発生を
防止できるという効果があ
In addition, since program tracking processing can be executed without replacing a part of the program, it is possible to prevent malfunctions or malfunctions caused by writing mistakes in part of the program.

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

第1図は本発明の一実施例の構成を示すブロック図、 第2図は第1図中の保護領域情報テーブルの構成を示す
図、 第3図は第1図中のメモリアクセス情報テーブルの構成
を示す図である。 図において、 1・・・ユーザプログラム実行環境設定手段、2・・・
保護領域情報登録手段、 3・・・保護領域情報テーブル、 4・・・ユーザプログラム実行手段、 5・・・保護領域判定手段、 6・・・メモリアクセス情報テーブル、7・・・保護領
域判定手段、 8・・・保護領域状況収集手段、 9・・・メモリアクセス手段、 10・・・記憶域、 11・・・保護情報パラメータ、 12・・・ユーザプログラム、 13・・・収集ファイル、 31・・・保護領域範囲指定情報、 32・・・収集機能情報、 61・・・実行アドレス情報、 62・・・メモリ参照情報、 63・・・設定前後/参照情報である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a diagram showing the configuration of the protected area information table in FIG. 1, and FIG. 3 is a diagram showing the configuration of the memory access information table in FIG. FIG. 3 is a diagram showing the configuration. In the figure, 1...user program execution environment setting means, 2...
Protection area information registration means, 3...Protection area information table, 4...User program execution means, 5...Protection area determination means, 6...Memory access information table, 7...Protection area determination means , 8... Protected area status collection means, 9... Memory access means, 10... Storage area, 11... Protection information parameter, 12... User program, 13... Collection file, 31. . . . Protection area range designation information, 32 . . . Collection function information, 61 . . . Execution address information, 62 . . . Memory reference information, 63 .

Claims (1)

【特許請求の範囲】 プログラムのデバグ処理のためにこのプログラムで利用
する記憶域に対するデータの設定および参照の状況を追
跡する処理において、 前記記憶域上の保護領域を規定する保護領域範囲指定情
報と収集データを収集する態様を指示する収集機能情報
とを有する保護領域情報テーブルと、 前記プログラム中でメモリアクセスを実行する実行命令
のアドレスを示す実行アドレス情報と前記記憶域上のメ
モリアクセスの対象の領域を特定するメモリ参照情報と
前記記憶域上の領域に対するメモリアクセスの内容等を
示す設定前後/参照情報とを有するメモリアクセス情報
テーブルと、保護情報パラメータにより指定された保護
領域範囲指定情報および収集機能情報を前記保護領域情
報テーブルに登録する保護領域情報登録手段と、前記プ
ログラムの実行時に前記記憶域に対するメモリアクセス
を実行する実行命令に関する実行アドレス情報、メモリ
参照情報および設定前後/参照情報を前記メモリアクセ
ス情報テーブルに設定する保護領域管理手段と、 この保護領域管理手段により設定された前記メモリアク
セス情報テーブル中のメモリ参照情報および前記保護領
域情報登録手段により登録された前記保護領域情報テー
ブル中の保護領域範囲指定情報に基づき前記プログラム
中の実行命令によるメモリアクセスが前記記憶域上の保
護領域の範囲内を対象としているか否かを判定する保護
領域判定手段と、 この保護領域判定手段による判定で前記プログラム中の
実行命令によるメモリアクセスが保護領域の範囲内を対
象としていることが判明した場合にその保護領域に関す
る収集データを前記保護領域情報テーブル中の収集機能
情報に基づく態様で前記メモリアクセス情報テーブルと
前記記憶域とを参照して作成し出力する保護領域状況収
集手段を有することを特徴とするプログラムの追跡処理
方式。
[Claims] In a process of tracking data settings and references to a storage area used by a program for debugging the program, protection area range specification information that defines a protection area on the storage area; a protected area information table having collection function information instructing a mode of collecting collection data; execution address information indicating an address of an execution instruction that executes memory access in the program; and information on a target of memory access on the storage area. A memory access information table that includes memory reference information that specifies an area and pre- and post-setting/reference information that indicates the content of memory access to the area on the storage area, and protection area range designation information and collection specified by protection information parameters. protection area information registration means for registering functional information in the protection area information table; and execution address information, memory reference information, and setting/reference information regarding an execution instruction that executes memory access to the storage area when the program is executed. A protection area management means for setting in a memory access information table, memory reference information in the memory access information table set by the protection area management means, and memory reference information in the protection area information table registered by the protection area information registration means. protection area determination means for determining whether a memory access by an execution instruction in the program is targeted within the protection area on the storage area based on protection area range specification information; When it is determined that a memory access by an execution instruction in the program is within the range of a protected area, the collected data regarding the protected area is collected in the memory access information in a manner based on the collection function information in the protected area information table. A program tracking processing method characterized by comprising a protection area status collection means for creating and outputting a table and the storage area by referring to the table and the storage area.
JP63051981A 1988-03-04 1988-03-04 Program trace processing system Pending JPH01226042A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63051981A JPH01226042A (en) 1988-03-04 1988-03-04 Program trace processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63051981A JPH01226042A (en) 1988-03-04 1988-03-04 Program trace processing system

Publications (1)

Publication Number Publication Date
JPH01226042A true JPH01226042A (en) 1989-09-08

Family

ID=12902038

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63051981A Pending JPH01226042A (en) 1988-03-04 1988-03-04 Program trace processing system

Country Status (1)

Country Link
JP (1) JPH01226042A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009070322A (en) * 2007-09-18 2009-04-02 Nec Corp Data processor, system, program and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009070322A (en) * 2007-09-18 2009-04-02 Nec Corp Data processor, system, program and method
JP4501978B2 (en) * 2007-09-18 2010-07-14 日本電気株式会社 Data processing apparatus, system, program, and method

Similar Documents

Publication Publication Date Title
EP0638864B1 (en) Development support system for microcomputer with internal cache
JPH10214203A (en) Information processor
JPH01226042A (en) Program trace processing system
JP2001265620A (en) Program debugging system for rom
JPS60159951A (en) Tracing system in information processing device
JP2551075B2 (en) Overlay structure program execution method
JP3130798B2 (en) Bus transfer device
JP2906382B2 (en) Trace method of user program in programmable controller
JP3085309B2 (en) Debug system
JPS5842891B2 (en) Meirei Seigiyohoushiki
JP2658982B2 (en) Specific instruction execution detection method
JPH0256647A (en) File state tracking processing system
JPS62125437A (en) Control method for additional processor
JPH04167146A (en) Address tracing system for information processor
JPH04328644A (en) Debug back-up device
JPH0816431A (en) Debugging process system for user program
JPS60126732A (en) Realizing system of insert batch
JPH02253336A (en) Program starting system
JPS62200440A (en) Analyzing system for instruction execution frequency of program
JPH0588935A (en) Task trace method
JPH1069401A (en) Emulator device
JPS63217431A (en) Monitor system for analysis of program execution
JPH0588879A (en) Program development supporting system
JPS63276140A (en) Program debugging device
JPH02226344A (en) Computer system