JPH04106632A - Debug processor - Google Patents

Debug processor

Info

Publication number
JPH04106632A
JPH04106632A JP2224802A JP22480290A JPH04106632A JP H04106632 A JPH04106632 A JP H04106632A JP 2224802 A JP2224802 A JP 2224802A JP 22480290 A JP22480290 A JP 22480290A JP H04106632 A JPH04106632 A JP H04106632A
Authority
JP
Japan
Prior art keywords
module
area
management table
data
file
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
JP2224802A
Other languages
Japanese (ja)
Inventor
Takehiro Ichikawa
雄大 市川
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 JP2224802A priority Critical patent/JPH04106632A/en
Publication of JPH04106632A publication Critical patent/JPH04106632A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To easily switch the module to be debugged by temporarily saving the content of a data section area where the module to be debugged is expanded to the file area corresponding to the module. CONSTITUTION:After the data section 002 of the current module to be debugged is preserved in a file area 008 and the module management table 007 of the module is preserved in a preserving area 009, the table 007 is retrieved. When the module information block coincident with a designated module name does not exist on the table 007, the module to be debugged is expanded and, when the block exists, the table 007 and the data section area 002 of the module to be debugged are returned to their original positions and the debugging process is terminated. Therefore, the module to be debugged can be easily switched.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、複数個のモジュールから構成されたプログラ
ムのデバッグ処理手段に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a debug processing means for a program composed of a plurality of modules.

〔概要〕〔overview〕

本発明は、デバッグ処理装置内のデバッグ対象モジュー
ルを切り換える手段において、デバッグ対象モジュール
が展開されているデータ部領域の内容をこのモジュール
に対応するファイル領域に一時退避することにより、 デバッグ対象としたいモジュールまで制御を移行せずに
切り換えを行うことができるようにしたものである。
The present invention provides a means for switching the debug target module in a debug processing device, by temporarily saving the contents of the data area in which the debug target module is expanded to a file area corresponding to this module. This makes it possible to perform switching without transferring control.

〔従来の技術] 従来、この種のデバッグ処理では、デバッグ対象とした
いモジュールまで制御を移行しなければならなかった。
[Prior Art] Conventionally, in this type of debug processing, control had to be transferred to a module that was to be debugged.

口発明が解決しようとする課題〕 このように、従来のデバッグ処理では、デバッグ対象と
したいモジュールまで制御を移行しなければならないの
で、デバッグ対象モジュールの切り替えが煩雑になる欠
点がある。
[Problems to be Solved by the Invention] As described above, in the conventional debugging process, control must be transferred to the module to be debugged, which has the disadvantage that switching the module to be debugged becomes complicated.

本発明は、このような欠点を除去するもので、デバッグ
対象モジュールの切り替えが容易に行えるデバッグ処理
装置を提供することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a debug processing device that eliminates such drawbacks and allows easy switching of modules to be debugged.

口課題を解決するた約の手段〕 本発明は、複数個のモジュールをから構成されるプログ
ラムを格納する記憶装置に接続され、デバッグ対象モジ
ュールをひとつのモジュールから別のモジュールに切り
換える切換手段を備えたデバッグ処理装置において、上
記切換手段は、各モジュールに対応するファイル名をも
つ領域を含むファイル領域、およびデバッグ対象モジュ
ールのデータ部をこのモジュールに対応するファイル名
のファイル領域に退避し、復帰する退避復帰手段を含む
ことを特徴とする。
Means for Solving the Problem] The present invention is connected to a storage device that stores a program made up of a plurality of modules, and includes a switching means for switching a module to be debugged from one module to another. In the debugging processing device, the switching means saves a file area including an area with a file name corresponding to each module and the data part of the module to be debugged to a file area with a file name corresponding to this module, and restores the file area. It is characterized by including evacuation and return means.

ここで、上記切換手段は、データ部領域、モジュール管
理テーブル領域、およびモジュール管理テーブル保存領
域をさらに備え、上記退避復帰手段は、現在デバッグ中
の第一モジュールに対して、ファイル領域にデータ部領
域上のデータを書き込むデータ部領域保存手段と、この
データ部領域保存手段で保存したデータをファイル領域
からデータ部領域に読み出すデータ部領域復帰手′段と
、モジュール管理テーブル保存領域に上記モジュール管
理テーブル領域の内容を移送するモジュール管理テーブ
ル保存手段と、モジュール管理テーブル保存手段の移送
動作完了後に、新しく切り換える第二モジュールに対し
て、指定したモジュール名と一致するモジュール情報ブ
ロックをモジュール管理テーブル保存領域の中から検索
するモジュール管理テーブル検索手段と、このモジュー
ル管理テーブル検索手段の検索結果が無と判定されると
きは、第二モジュールに対して、データ部領域にこの第
二モジュールのデータ部を展開し、モジュール管理テー
ブル領域にデバッグ対象モジュール名、データ部領域の
データポインタ、データサイズ、デバッグ対象モジュー
ル名に対応するファイル名を格納するモジュール展開手
段と、このモジュール管理テーブル検索手段の検索結果
が有と判定されるときは、第二モジュールに対して、モ
ジュール管理テーブル保存手段で保存したモジュール管
理テーブル保存領域上の内容をモジュール管理テーブル
領域に移送するモジュール管理テーブル復帰手段と、デ
ータ部領域保存手段により保存されているデータをファ
イル領域からデータ部領域に読み出すデータ部領域復帰
手段とを備えることが望ましい。
Here, the switching means further includes a data part area, a module management table area, and a module management table storage area, and the saving and restoring means stores the data part area in the file area for the first module currently being debugged. A data section area storage means for writing the above data, a data section area restoration means for reading out the data saved by this data section area saving means from the file area to the data section area, and a data section area restoration means for writing the above data in the module management table storage area. The module management table storage means that transfers the contents of the area and after the transfer operation of the module management table storage means is completed, the module information block that matches the specified module name is transferred to the module management table storage area for the newly switched second module. A module management table search means searches from inside, and when the search result of this module management table search means is determined to be null, expands the data part of this second module in the data part area for the second module. , module expansion means for storing the name of the module to be debugged, a data pointer in the data section area, the data size, and a file name corresponding to the name of the module to be debugged in the module management table area; and a search result of this module management table search means. When it is determined, module management table restoring means for transferring the contents in the module management table storage area saved by the module management table storage means to the module management table area, and data part area storage means for the second module. It is desirable to include a data section area restoration means for reading out the stored data from the file area to the data section area.

〔作用〕 現デバッグ対象モジュールのデータ部を保存し、また現
デバッグ対象モジュールのモジュール管理テーブルを保
存し、このモジュール管理テーブルを検索して、指定し
たモジュール名と一致するモジュール情報ブロックが無
いときは、デバッグ対象モジュールを展開し、一方、有
るときは、デバッグ対象モジュールのモジュール管理テ
ーブルを復帰し、またデバッグ対象モジュールのデータ
部領域を復帰して、デバッグ処理を終了する。
[Operation] Saves the data part of the current debug target module, also saves the module management table of the current debug target module, searches this module management table, and if there is no module information block that matches the specified module name, , expands the module to be debugged, and if there is a module to be debugged, restores the module management table of the module to be debugged, restores the data area of the module to be debugged, and ends the debugging process.

〔実施例〕〔Example〕

以下、本発明の一実施例について図面を参照して説明す
る。
An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の構成図であり、001は、モジュール
mainとモジュールsubとから構成される一つのプ
ログラムMAINであり、モジュールmainはそのモ
ジュール内で他のモジュールsubを呼び出している。
FIG. 1 is a configuration diagram of the present invention. 001 is one program MAIN composed of a module main and a module sub, and the module main calls another module sub within that module.

002は、デバッグ対象のモジュールmainの記憶装
置上に確保されたアドレスPのデータ部領域である。0
03 は、デバッグ対象モジュール名を格納するモジュ
ール名格納領域であり、モジュール名がmainである
。004は、デバッグ対象のモジュールmainのデー
タ部領域のアドレスを格納するデータポインタ格納領域
であり、データポインタはPである。005は、デバッ
グ対象モジュールmainのデバッグ部領域のサイズを
格納する領域であり、データサイズはSである。006
 は、デバッグ対象のモジュールmainに対応するフ
ァイル名を格納するファイル名格納領域であり、ファイ
ル名はTMPMAINである。007 は、デバッグ対
象のモジュールmainのモジュール名と、データポイ
ンタと、データサイズと、ファイル名とで構成されるモ
ジュール情報ブロックを格納するモジュール管理テーブ
ルである。008は、デバッグ対象モジュールmain
のデータ部領域を保存するファイルTMPMAINを格
納するファイル領域である。009は、デバッグ対象モ
ジュールmainのモジュール管理テーブルを保存する
モジュール管理テーブル保存領域である。
002 is a data section area at address P secured on the storage device of the module main to be debugged. 0
03 is a module name storage area that stores the name of the module to be debugged, and the module name is main. 004 is a data pointer storage area that stores the address of the data section area of the module main to be debugged, and the data pointer is P. 005 is an area that stores the size of the debug unit area of the debug target module main, and the data size is S. 006
is a file name storage area that stores a file name corresponding to the module main to be debugged, and the file name is TMPMAIN. 007 is a module management table that stores a module information block composed of the module name, data pointer, data size, and file name of the module main to be debugged. 008 is the debug target module main
This is a file area that stores the file TMPMAIN that stores the data part area of . 009 is a module management table storage area that stores the module management table of the debug target module main.

101 は、デバッグ対象モジュールmainのデータ
部をデータ部領域002に展開し、デバッグ対象モジュ
ール名mainと、データ部領域002のデータのデー
タポインタPと、データサイズSと、デバッグ対象モジ
ュールに対応するファイル名TMPMAINとをモジュ
ール管理テーブル007のそれぞれの要素に格納するモ
ジュール展開手段である。102は、ファイル領域00
8にデータ部領域002のデータを書き込むデータ部領
域保存手段である。103は、データ部領域保存手段1
02で保存したデータをファイル領域008からデータ
部領域002に読み出すデータ部領域復帰手段である。
101 expands the data part of the debug target module main into the data part area 002, and stores the debug target module name main, the data pointer P of the data in the data part area 002, the data size S, and the file corresponding to the debug target module. This is module expansion means that stores the name TMPMAIN in each element of the module management table 007. 102 is file area 00
8 is a data section area storage means for writing data in the data section area 002. 103 is data section area storage means 1
This is data section area restoration means for reading out the data saved in step 02 from the file area 008 to the data section area 002.

104は、モジュール管理テーブル保存領域009にモ
ジュール管理テーブル007の内容を移送するモジュー
ル管理テーブル保存手段である。105は、モジュール
管理テーブル保存手段104で保存したモジュール管理
テーブル007の内容をモジュール管理テーブル保存領
域009からモジュール管理テーブル007に移送する
モジュール管理テーブル復帰手段である。106は、モ
ジュール管理テーブル保存領域009の中から指定した
モジュール名と一致するモジュール情報ブロックを検索
するモジュール管理テーブル検索手段である。
104 is a module management table storage means for transferring the contents of the module management table 007 to the module management table storage area 009. Reference numeral 105 denotes module management table restoring means for transferring the contents of the module management table 007 saved by the module management table storage means 104 from the module management table storage area 009 to the module management table 007. Reference numeral 106 denotes a module management table search means for searching the module management table storage area 009 for a module information block that matches the specified module name.

すなわち、この実施例は、複数個のモジュールから構成
されるプログラムを格納する記憶装置に接続され、デバ
ッグ対象モジュールをひとつのモジュールから別のモジ
ュールに切り換える切換手段を備え、この切換手段は、
各モジュールに対応するファイル名をもつ領域を含むフ
ァイル領域008、およびデバッグ対象モジュールのデ
ータ部をこのモジュールに対応するファイル名のファイ
ル領域に退避し、復帰する退避復帰手段を含み、上記切
換手段は、データ部領域002、モジュール管理テーブ
ル領域007、およびモジュール管理テーブル保存領域
009をさらに備え、上記退避復帰手段は、現在デバッ
グ中の第一モジュールに対して、ファイル領域008に
データ部領域002上のデータを書き込むデータ部領域
保存手段102と、このデータ部領域保存手段102で
保存したデータをファイル領域008からデータ部領域
002に読み出すデータ部領域復帰手段103と、モジ
ュール管理テーブル保存領域にモジュール管理テーブル
領域007の内容を移送するモジュール管理テーブル保
存手段104と、モジュール管理テーブル保存手段10
4の移送動作完了後に、新しく切り換える第二モジュー
ルに対して、指定したモジュール名と一致するモジュー
ル情報ブロックをモジュール管理テーブル保存領域00
9の中から検索するモジュール管理テーブル検索手段1
06キ、このモジュール管理テーブル検索手段106の
検索結果が無と判定されるときは、第二モジュールに対
して、データ部領域002にこの第二モジュールのデー
タ部を展開し、モジュール管理テーブル領域007にデ
バッグ対象モジュール名、データ部領域002のデータ
ポインタ、データサイズ、デバッグ対象モジュール名に
対応するファイル名を格納するモジュール展開手段10
1と、このモジュール管理テーブル検索手段106の検
索結果が有と判定されるときは、第二モジュールに対し
て、モジュール管理テーブル保存手段104で保存した
モジュール管理テーブル保存領域009上の内容をモジ
ュール管理テーブル領域007に移送するモジュール管
理テーブル復帰手段105と、データ部領域保存手段1
02により保存されているデータをファイル領域008
からデータ部領域00?に読み出すデータ部領域復帰手
段103とを備える。
That is, this embodiment is connected to a storage device that stores a program made up of a plurality of modules, and includes a switching means for switching the module to be debugged from one module to another, and this switching means:
The switching means includes a file area 008 including an area with a file name corresponding to each module, and a save/restore means for saving the data part of the debug target module to the file area having the file name corresponding to this module and returning it. , a data section area 002, a module management table area 007, and a module management table storage area 009. A data section area saving means 102 for writing data, a data section area restoring means 103 for reading data saved in the data section area saving means 102 from the file area 008 to the data section area 002, and a module management table in the module management table saving area. Module management table storage means 104 for transferring the contents of area 007 and module management table storage means 10
After the transfer operation in step 4 is completed, the module information block that matches the specified module name is transferred to the module management table storage area 00 for the newly switched second module.
Module management table search means 1 to search from 9
06K. When the search result of this module management table search means 106 is determined to be null, the data part of this second module is developed in the data part area 002 for the second module, and the data part of this second module is developed in the data part area 002, and Module expansion means 10 stores the name of the module to be debugged, the data pointer of the data section area 002, the data size, and the file name corresponding to the name of the module to be debugged.
1, when it is determined that the search result of this module management table search means 106 is present, the contents in the module management table storage area 009 saved by the module management table storage means 104 are stored in the module management table storage area 009 for the second module. Module management table return means 105 to be transferred to table area 007 and data section area storage means 1
The data saved by 02 is saved in the file area 008.
From data section area 00? and a data part area restoration means 103 for reading data.

次に、この実施例の動作を説胡する。Next, the operation of this embodiment will be explained.

第2図はこの動作のフローチャートである。FIG. 2 is a flowchart of this operation.

ファイル領域008にデータ部領域002のデータを書
き込む現デバッグ対象モジュールのデータ部領域の保存
ステップS1と、現デバッグ対象モジュールのモジュー
ル管理テーブル保存領域009にモジュール管理テーブ
ル007の内容を移送する現デバッグ対象モジュールの
モジュール管理テーブルの保存ステップS2と、デバッ
グ対象とするモジュールのデータ部をデータ部領域00
2に展開し、デバッグ対象モジュール名とデータ部領域
002のデータのデータポインタとデータサイズとデバ
ッグ対象モジュールに対応するファイル名とをモジュー
ル管理テーブル007のそれぞれの要素に格納するデバ
ッグ対象モジュールの展開ステップS3と、現デバッグ
対象モジュールのデータ部領域の保存ステップS1で保
存したデータをファイル領域008からデータ部領域0
02に読み出すデバッグ対象モジュールのデータ部領域
の復帰ステップS4と、現デバッグ対象モジュールのモ
ジュール管理テーブルの保存ステップS2で保存したモ
ジュール管理テーブルの内容をモジュール管理チーフル
保存領域009からモジュール管理テーブル007に移
送するデバッグ対象モジュールのモジュール管理テーブ
ル復帰ステップS5と、モジュール管理テーブル保存領
域009の中から指定したモジュール名と一致するモジ
ュール情報ブロックを検索するモジュール管理テーブル
の検索ステップS6とからなる。
A step S1 for saving the data section area of the current debug target module in which data in the data area 002 is written to the file area 008, and a current debug target in which the contents of the module management table 007 are transferred to the module management table storage area 009 of the current debug target module. Save step S2 of the module management table of the module, and save the data part of the module to be debugged to the data part area 00.
2, and storing the name of the module to be debugged, the data pointer of the data in the data section area 002, the data size, and the file name corresponding to the module to be debugged in each element of the module management table 007. S3 and saving the data area of the current debug target module The data saved in step S1 is transferred from the file area 008 to the data area 0.
The contents of the module management table saved in step S4 of restoring the data area of the debug target module to be read out in step S4 and step S2 of saving the module management table of the current debug target module are transferred from the module management table storage area 009 to the module management table 007. The process consists of a module management table restoration step S5 for the module to be debugged, and a module management table search step S6 for searching the module management table storage area 009 for a module information block that matches the specified module name.

デバッグ対象モジュールをモジュールAに切り替えると
きに、現在デバッグ中のモジュールに対して、現デバッ
グ対象モジュールのデータ部領域の保存ステップS1で
、ファイル領域008にデータ部領域002のデータを
書き込み、現デバッグ対象モジュールのモジュール管理
テーブルの保存ステップS2で、モジュール管理テーブ
ル保存領域009にモジュール管理テーブル007の保
存ステップS2で、モジュール管理テーブル保存領域0
09にモジュール管理テーブル007の内容を移送した
後に、新しく切り替えるモジュールAに対してモジュー
ル管理テーブルの検索ステップS5を実行し、このモジ
ュール管理テーブルの検索ステップS6の結果が無と判
定される場合には、モジュールAに対してデバッグ対象
モジュールの展開ステップS3で、モジュールへのデー
タ部をデータ部領域002に展開しモジュール名データ
部領域のデータポインタとテ゛−タサイズとモジュール
A1こ対応するファイル名とをモジュール管理テーブル
007に格納し、このモジュール管理テーブルの検索ス
テップS6の結果が有と判定される場合には、モジュー
ルAに対してデバッグ対象モジュールのデータ部領域の
復帰ステップS4により、保存されているモジュール管
理テーブル007の内容をモジュール管理テーブル保存
領域009からモジュール管理テーブル007に移送し
、デバッグ対象モジュールのモジュール管理テーブル復
帰ステップS5で、保存されているデータをファイル領
域008からデータ部領域002に読み出す。
When switching the debug target module to module A, the data in the data part area 002 of the current debug target module is written to the file area 008 in step S1 of saving the data part area of the current debug target module for the module currently being debugged. In step S2 of saving the module management table of the module, save the module management table 007 in the module management table saving area 009.In step S2, save the module management table 007 in the module management table saving area 009.
After transferring the contents of the module management table 007 to 009, the module management table search step S5 is executed for the newly switched module A, and if the result of the module management table search step S6 is determined to be null. In step S3, expand the module to be debugged for module A, expand the data part of the module to the data part area 002, and write the data pointer and data size of the module name data part area and the file name corresponding to module A1. If it is determined that the result of the search step S6 of this module management table is yes, the stored data is stored in the module management table 007 in the step S4 of restoring the data area of the module to be debugged for the module A. The contents of the module management table 007 are transferred from the module management table storage area 009 to the module management table 007, and in the module management table restoration step S5 of the module to be debugged, the stored data is read from the file area 008 to the data section area 002. .

次に、この実施例の動作について次の処理を例にとり説
明する。第3図(a)に示すようにモジュールmain
がデバッグ対象となっている状態で、次の処理を順に行
う。
Next, the operation of this embodiment will be explained by taking the following processing as an example. As shown in Figure 3(a), the module main
Perform the following steps in order while the target is being debugged.

モジュールsubをデバッグ対象にする第一処理。First process to make module sub a debug target.

モジュールmainをデバッグ対象にする第二処理。Second processing to make module main a debugging target.

まず、第一処理を行うと、現デバッグ対象モジュールm
ainのデータ部領域の保存ステップ1で、データ部領
域保存手段102により、ファイルTMPMAINにデ
ータ部領域002のデータを書き込み、現デバッグ対象
モジュールmainのモジュール管理テーブルの保存ス
テップS2で、モジュール管理テーブル保存手段104
により、現デバッグ対象モジュールmainのモジュー
ル管理テーブル保存領域009にモジュール管理テーブ
ル007の内容を移送する。
First, when the first process is performed, the current debug target module m
In step 1 of saving the data area of ain, the data area saving means 102 writes the data of the data area 002 to the file TMPMAIN, and in step S2 of saving the module management table of the current debug target module main, saves the module management table. Means 104
As a result, the contents of the module management table 007 are transferred to the module management table storage area 009 of the current debug target module main.

次に、新しく切り替えるモジュールsubに対するモジ
ュール管理テーブルの検索ステップS6で、モジュール
管理テーブル検索手段106によりモジュール管理テー
ブル保存領域009の中からモジュール名subと一致
するモジュール情報ブロックの検索を行う。現在、モジ
ュール管理テーブル保存領域009に保存されているテ
ーブルはモジュールmainのテーブルのみであるから
、無と判定され、次に、デバッグ対象モジュールsub
の展開ステップS3で、モジュール展開手段101によ
り、デバッグ対象とするモジュールsubのデータ部を
データ部領域002に展開し、デバッグ対象モジュール
名subとデータ部領域002のデータのデータポイン
タPとデータサイズS、とデバッグ対象モジュールに対
応するファイル名TMPS[IBとをモジュール管理テ
ーブル007のそれぞれの領域に格納する。
Next, in a module management table search step S6 for the newly switched module sub, the module management table search means 106 searches the module management table storage area 009 for a module information block that matches the module name sub. Currently, the only table stored in the module management table storage area 009 is the table for module main, so it is determined that there is no table, and then the module to be debugged sub
In expansion step S3, the module expansion means 101 expands the data part of the module sub to be debugged into the data part area 002, and extracts the debug target module name sub, data pointer P and data size S of the data in the data part area 002. , and the file name TMPS[IB corresponding to the module to be debugged are stored in respective areas of the module management table 007.

次に、第二処理を行うと、現デバッグ対象モジュールS
ubのデータ部領域の保存ステップS1で、データ部領
域保存手段102により、ファイルTMPS[IBにデ
ータ部領域002のデータを書き込み、現デバッグ対象
モジュールsubのモジュール管理f −プルの保存ス
テップS2で、モジュール管理テーブル保存手段104
により、現デバッグ対象モジュールsubのモジュール
管理テーブル保存領域009にモジュール管理テーブル
007の内容を移送する。
Next, when the second process is performed, the current debug target module S
In step S1 of saving the data area of ub, the data area saving means 102 writes the data of the data area 002 to the file TMPS[IB, and in step S2 of saving the module management f-pull of the current debug target module sub, Module management table storage means 104
As a result, the contents of the module management table 007 are transferred to the module management table storage area 009 of the current debug target module sub.

次に、新しく切り替えるモジュールmainに対するモ
ジュール管理テーブルの検索ステップS6で、モジュー
ル管理テーブル検索手段106により、モジュール管理
テーブル保存領域009の中からモジュール名main
と一致するモジュール情報ブロックの検索を行う。現在
、モジュール管理テーブル保存領域にモジュールmai
nのテーブルが保存されているから、有と判定され、次
に、デバッグ対象モジュールmainのデータ部領域の
復帰ステップS4で、データ部領域復帰手段103によ
り、ファイルTMPMAINからデータ部領域002に
読み出し、デバッグ対象モジュールmainのモジュー
ル管理テーブルの復帰ステップS5で、モジュール管理
テーブル復帰手段105により、モジュール管理テーブ
ルの内容をモジュール管理テーブル保存領域009から
モジュール管理テーブル007に移送する。この結果を
第3図ら〕に示す。このようにして、デバッグ処理が行
われる。
Next, in a module management table search step S6 for the module main to be newly switched, the module management table search means 106 selects the module name main from the module management table storage area 009.
Search for module information blocks that match. Currently, the module mai is in the module management table storage area.
Since the table n is saved, it is determined that the table exists. Next, in step S4 of restoring the data area of the module to be debugged, the data area restoring means 103 reads the file TMPMAIN to the data area 002. In step S5 of restoring the module management table of the module to be debugged, the module management table restoring means 105 transfers the contents of the module management table from the module management table storage area 009 to the module management table 007. The results are shown in Figure 3 et al. In this way, debugging processing is performed.

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

本発明は、以上説明したように、デバッグ対象になって
いるモジュールの記憶装置上に展開されたデータ部領域
をこのモジュールに対応するファイル領域に一時的に保
存して待避することにより、デバッグ対象モジュールを
容易に切り替えることができる効果がある。
As explained above, the present invention temporarily saves and saves the data area developed on the storage device of the module to be debugged in the file area corresponding to this module. This has the effect of making it easy to switch modules.

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

第1図は本発明実施例の構成図。 第2図は本発明実施例のフローチャート。 第3図は第1図の遷移状態を示す図。 001・・・プログラムMAIN、 002・・・デー
タ部領域、003・・・モジュール名格納領域、004
・・・データポインタ格納領域、005・・・データサ
イズ格納領域、006・・・ファイル名格納領域、00
7川モジユール管理テーブノヘ008・・・ファイル領
域、009・・・モジュール管理テーブル保存領域、1
01・・・モジュール展開手段、102・・・データ部
領域保存手段、103・・・データ部領域復帰手段、1
04・・・モジュール管理テーブル保存手段、105・
・・モジュール管理テーブル復帰手段、106・・・モ
ジュール管理テーブル検索手段。 <a) 図 @熾/)遷符
FIG. 1 is a configuration diagram of an embodiment of the present invention. FIG. 2 is a flow chart of an embodiment of the present invention. FIG. 3 is a diagram showing the transition state of FIG. 1. 001...Program MAIN, 002...Data section area, 003...Module name storage area, 004
...Data pointer storage area, 005...Data size storage area, 006...File name storage area, 00
7 River module management table 008...File area, 009...Module management table storage area, 1
01...Module expansion means, 102...Data section area storage means, 103...Data section area restoration means, 1
04...Module management table storage means, 105.
. . . Module management table restoration means, 106 . . . Module management table search means. <a) Figure @熾/) Qianfu

Claims (1)

【特許請求の範囲】 1、複数個のモジュールから構成されるプログラムを格
納する記憶装置に接続され、デバッグ対象モジュールを
ひとつのモジュールから別のモジュールに切り換える切
換手段を備えたデバッグ処理装置において、 上記切換手段は、各モジュールに対応するファイル名を
もつ領域を含むファイル領域、およびデバッグ対象モジ
ュールのデータ部をこのモジュールに対応するファイル
名のファイル領域に退避し、復帰する退避復帰手段を含
む ことを特徴とするデバッグ処理装置。 2、上記切換手段は、データ部領域、モジュール管理テ
ーブル領域、およびモジュール管理テーブル保存領域を
さらに備え、上記退避復帰手段は、現在デバッグ中の第
一モジュールに対して、ファイル領域にデータ部領域上
のデータを書き込むデータ部領域保存手段と、このデー
タ部領域保存手段で保存したデータをファイル領域から
データ部領域に読み出すデータ部領域復帰手段と、モジ
ュール管理テーブル保存領域に上記モジュール管理テー
ブル領域の内容を移送するモジュール管理テーブル保存
手段と、モジュール管理テーブル保存手段の移送動作完
了後に、新しく切り換える第二モジュールに対して、指
定したモジュール名と一致するモジュール情報ブロック
をモジュール管理テーブル保存領域の中から検索するモ
ジュール管理テーブル検索手段と、このモジュール管理
テーブル検索手段の検索結果が無と判定されるときは、
第二モジュールに対して、データ部領域にこの第二モジ
ュールのデータ部を展開し、モジュール管理テーブル領
域にデバッグ対象モジュール名、データ部領域のデータ
ポインタ、データサイズ、デバッグ対象モジュール名に
対応するファイル名を格納するモジュール展開手段と、
このモジュール管理テーブル検索手段の検索結果が有と
判定されるときは、第二モジュールに対して、モジュー
ル管理テーブル保存手段で保存したモジュール管理テー
ブル保存領域上の内容をモジュール管理テーブル領域に
移送するモジュール管理テーブル復帰手段と、データ部
領域保存手段により保存されているデータをファイル領
域からデータ部領域に読み出すデータ部領域復帰手段と
を備えた特許請求項1記載のデバッグ処理装置。
[Scope of Claims] 1. A debug processing device connected to a storage device that stores a program composed of a plurality of modules, and equipped with a switching means for switching a module to be debugged from one module to another, comprising: The switching means includes a file area including an area having a file name corresponding to each module, and a saving/restoring means for saving and restoring the data part of the module to be debugged to the file area having the file name corresponding to this module. Features a debug processing device. 2. The switching means further includes a data part area, a module management table area, and a module management table storage area, and the saving and restoring means saves and restores the data part area to the file area for the first module currently being debugged. data section area storage means for writing data into the data section area; data section area restoration means for reading out the data saved in the data section area saving section from the file area to the data section area; After completing the transfer operation of the module management table storage means to transfer the module management table storage means and the module management table storage means, search the module management table storage area for the module information block that matches the specified module name for the second module to be newly switched. When the search result of this module management table search means is determined to be null,
For the second module, expand the data part of this second module in the data part area, and create a file corresponding to the debug target module name, data pointer of the data part area, data size, and debug target module name in the module management table area. module expansion means for storing the name;
When it is determined that the search result of this module management table search means exists, a module that transfers the contents in the module management table storage area saved by the module management table storage means to the module management table area for the second module. 2. The debug processing device according to claim 1, comprising: management table restoration means; and data part area restoration means for reading data saved by the data part area saving means from the file area to the data part area.
JP2224802A 1990-08-27 1990-08-27 Debug processor Pending JPH04106632A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2224802A JPH04106632A (en) 1990-08-27 1990-08-27 Debug processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2224802A JPH04106632A (en) 1990-08-27 1990-08-27 Debug processor

Publications (1)

Publication Number Publication Date
JPH04106632A true JPH04106632A (en) 1992-04-08

Family

ID=16819434

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2224802A Pending JPH04106632A (en) 1990-08-27 1990-08-27 Debug processor

Country Status (1)

Country Link
JP (1) JPH04106632A (en)

Similar Documents

Publication Publication Date Title
CN100383739C (en) Mirror starting optimization of built-in operation system
KR0182342B1 (en) Synchronous memory and information processor having synchronous memory
JPH04106632A (en) Debug processor
KR930006618B1 (en) Pattern recognition apparatus with retrieval reference patterns
JPH06318260A (en) Electronic device
JPS62151940A (en) Register saving/return system
JPH01261758A (en) Computer system
JPH0447344A (en) History journal recording system
JPS6240736B2 (en)
JPS6211920A (en) Command recovery system
JPS62168497A (en) Data base processing system for exchange-processing program
JP2573391B2 (en) Programmable controller
JPH05113888A (en) Microprocessor unit
JPH02161514A (en) Control processing system for idle storage block
JPH04165440A (en) Device for operation mode changing by bank switching
JPH01233628A (en) Memory address conversion control circuit
JPH01226032A (en) Data saving/reconstituting system at check point restart
JPH0443438A (en) Saving system for fault data
JPH03230237A (en) Fault countermeasure system for standard sequential file processing
JPH1027153A (en) Bus transfer device
JPH04107653A (en) File saving system
JPH08328821A (en) Searching method for data reading point
KR970049370A (en) Controller of HIPSS
JPS6086635A (en) Main storage control device
JPH05143425A (en) Backup preparing system for data base file