JPS6375848A - Debugging log recording system - Google Patents

Debugging log recording system

Info

Publication number
JPS6375848A
JPS6375848A JP61220399A JP22039986A JPS6375848A JP S6375848 A JPS6375848 A JP S6375848A JP 61220399 A JP61220399 A JP 61220399A JP 22039986 A JP22039986 A JP 22039986A JP S6375848 A JPS6375848 A JP S6375848A
Authority
JP
Japan
Prior art keywords
address
storage device
trace
access
processor
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
JP61220399A
Other languages
Japanese (ja)
Inventor
Koichi Odawara
小田原 孝一
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP61220399A priority Critical patent/JPS6375848A/en
Publication of JPS6375848A publication Critical patent/JPS6375848A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To facilitate debugging work by providing a debugging log storage memory which has an area corresponding to the address by which a processor accesses a storage device and writing access information in this memory in accordance with access to the storage device. CONSTITUTION:When a processor 21 accesses a storage device 22, this access address is stored in a buffer register 12 through an address bus (a). The upper digit part of the access address is compared with the value preliminarily stored in an upper digit register 6 by a comparing part 7, and a coincidence detection signal is outputted from the comparing part 7 if they coincide with each other. The signal indicating the access state is sent from the processor 21 through an access signal line (d). A trace signal is sent from a trace register 9. A trace control part 10 writes access information in a debugging log storage part 42 when the coincidence detection signal, the access signal, and the trace signal are made active.

Description

【発明の詳細な説明】 〔概要〕 プログラムに基づきデータ処理動作を制御するプロセッ
サを有するデータ処理装置のデバッグ履歴記録方式であ
って、プロセッサがデータ処理装置内記憶装置のどの部
分をアクセスしたかを容易に知るために、記憶装置をア
クセスする時のアドレスに対応する領域を有するデバッ
グ履歴記憶用のメモリを設け、そのメモリに記憶装置の
アクセスに対応してアクセス情報を書込むように構成す
ることにより、記憶装置に格納されているプログラムの
デバッグ作業がより容易となる。
[Detailed Description of the Invention] [Summary] A debug history recording method for a data processing device having a processor that controls data processing operations based on a program, which records which part of a storage device in the data processing device has been accessed by the processor. In order to easily know, a memory for debug history storage having an area corresponding to the address when accessing the storage device is provided, and access information is written in the memory in response to access to the storage device. This makes it easier to debug programs stored in the storage device.

〔産業上の利用分野〕[Industrial application field]

本発明は、ソフトウェアに基づきデータ処理動作を制御
するプロセッサを有するデータ処理装置のデバッグ履歴
記録方式に関する。
The present invention relates to a debug history recording method for a data processing device having a processor that controls data processing operations based on software.

通常、ソフトウェアに基づきデータ処理動作を制御する
装置にあっては、デバッグ装置がソフトウェアのデバッ
グ用として重要なものである。
Generally, in devices that control data processing operations based on software, a debug device is important for debugging the software.

しかも、近年ソフトウェア量の増大、ソフトウェアの開
発期間の短縮等に応えるために、より多機能でデバッグ
の容易なプログラムのトレース方式が要求されるように
なって来た。
In addition, in recent years, in order to respond to the increase in the amount of software and the shortening of software development period, there has been a demand for a program tracing method that has more functions and is easier to debug.

尚、トレース方式とは、各種プログラムのふるまいを調
べるために、実際の進行ステップを逐次たどりメモリ等
へ記憶する方式を言う。
Note that the trace method refers to a method in which actual progress steps are sequentially traced and stored in a memory or the like in order to investigate the behavior of various programs.

〔従来の技術〕[Conventional technology]

第4図は従来例を説明するブロック図を示す。 FIG. 4 shows a block diagram illustrating a conventional example.

第4図に示すブロック図は、プロセッサ21と記憶装置
22を具備するデータ処理装置20と、データ処理装置
20におけるデータ処理時に使用されるソフトウェアの
処理ステップをトレースするデバッグ装置30とから構
成されている。
The block diagram shown in FIG. 4 includes a data processing device 20 that includes a processor 21 and a storage device 22, and a debug device 30 that traces the processing steps of software used during data processing in the data processing device 20. There is.

尚、本例のデバッグ装置30はプロセッサ21が記憶装
置22をアクセスした時のトレース情報(実行アドレス
、命令コード、データアドレス等)のデバッグ用記憶装
置4内データ記憶部41への書込みを制御するトレース
制御部2と、 記憶装置22をアクセスした時の実行アドレス等のデバ
ッグ用記憶装置4内デーク記憶部41への書込み位置等
を指定するポインタ3と、 プロセッサ21の命令実行によりアクセスする記憶装置
22のトレース情報を書込み保持するデバッグ用記憶装
置4とを具備して構成されている。
Note that the debug device 30 of this example controls writing of trace information (execution address, instruction code, data address, etc.) to the data storage section 41 in the debug storage device 4 when the processor 21 accesses the storage device 22. a trace control unit 2; a pointer 3 that specifies a write position to the data storage unit 41 in the debugging storage device 4, such as an execution address when the storage device 22 is accessed; and a storage device accessed by execution of an instruction by the processor 21. The debugging storage device 4 is configured to include a debugging storage device 4 for writing and holding trace information of 22 pieces.

第4図で示すような従来のソフトウェアトレース方式で
は、プロセッサ21の命令実行時にポインタ3で指定さ
れるデバッグ用記憶装置4のアドレス位置へ、記憶装置
22をアクセスする実行アドレス及びその時点の命令コ
ード、データアドレス等からなるトレース情報をトレー
ス制御部2により書込む。
In the conventional software tracing method as shown in FIG. 4, when the processor 21 executes an instruction, the address location of the debug storage device 4 specified by the pointer 3 is accessed by the execution address and the instruction code at that time. , data address, etc. is written by the trace control unit 2.

次に、ポインタ3をインクリメントし、指定する位置へ
順次トレース情報をデバッグ用記憶装置4上に逐次書込
んで行く。
Next, the pointer 3 is incremented, and the trace information is sequentially written into the debugging storage device 4 to the specified position.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述のようなソフトウェアトレース方式では、記憶装置
22に格納されているプログラム上のどの命令が実行さ
れたのか、又記憶装置22上のデータのどの部分が読出
し/書込みされたのかを検知するには、デバッグ用記憶
装置4上に格納しているトレース情報とプログラムリス
トとを順次照合して行く必要がある。
In the software tracing method described above, it is difficult to detect which instructions on the program stored in the storage device 22 have been executed and which parts of the data on the storage device 22 have been read/written. , it is necessary to sequentially check the trace information stored on the debugging storage device 4 and the program list.

そのため、ソフトウェアのデバッグに多大な時間を要す
ると言う問題点がある。
Therefore, there is a problem in that it takes a lot of time to debug the software.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明の詳細な説明するブロック図を示す。 FIG. 1 shows a block diagram illustrating the invention in detail.

第1図に示す本発明の原理ブロック図は、第4図で説明
したデータ処理装置20と、下記に説明するデバッグ装
置30′とから構成されている。
The principle block diagram of the present invention shown in FIG. 1 is composed of the data processing device 20 described in FIG. 4 and a debug device 30' described below.

本発明のデバッグ装置30’は、データ処理装置20内
記憶装置22のアドレスと対応する記憶領域を有するデ
バッグ脂層記憶手段(デバッグ履歴記憶部)42と、 記憶装置22のアドレスの上位桁部分を記憶する上位桁
記憶手段(上位桁レジスタ)6と、プロセッサ21から
送出される記憶装置22のアドレスの上位桁部分と上位
桁記憶手段(上位桁レジスタ)6に記憶している内容と
を比較し、一致していると一致信号を送出する比較部7
と、プロセッサ21の所定命令によりデータをセット。
The debug device 30' of the present invention includes a debug fat layer storage means (debug history storage section) 42 having a storage area corresponding to the address of the storage device 22 in the data processing device 20, and a high-order digit part of the address of the storage device 22. The upper digit storage means (upper digit register) 6 to be stored is compared with the upper digit part of the address of the storage device 22 sent from the processor 21 and the contents stored in the upper digit storage means (upper digit register) 6. , a comparison unit 7 that sends out a matching signal when they match.
Then, data is set according to a predetermined command from the processor 21.

リセットするトレース記憶手段(トレースレジスタ)9
と、 比較部7からの一致信号、プロセッサ21からの制御信
号(d)のオン及びトレース記憶手段(トレースレジス
タ)9へ所定データがセットされている時にデバッグ履
歴記憶手段(デバッグ履歴記憶部)42へのトレースを
制御するトレース制御部10等を具備して構成されてい
る。
Trace storage means (trace register) 9 to be reset
When the match signal from the comparison unit 7, the control signal (d) from the processor 21 is turned on, and the predetermined data is set in the trace storage means (trace register) 9, the debug history storage means (debug history storage section) 42 It is configured to include a trace control unit 10 and the like that control tracing to.

〔作用〕[Effect]

プロセッサ21がデータ処理装置20内記憶装置22の
どの部分をアクセスしたかを容易に知るために、。
In order to easily know which part of the storage device 22 in the data processing device 20 has been accessed by the processor 21.

記憶装置22をアクセスする時のアドレスに対応する領
域を有するデバッグ履歴記憶手段(デバッグ履歴記憶部
)42をデバッグ用記憶装置4内に設け、そのデバッグ
履歴記憶手段(デバッグ履歴記憶部)42に記憶装置2
2のアクセスに対応してアクセス情報(アクセスがリー
ド命令かライト命令かの情報)を書込むように構成する
ことにより、記憶装置22に格納されているプログラム
のデバッグ作業がより容易となる。
A debug history storage means (debug history storage section) 42 having an area corresponding to an address when accessing the storage device 22 is provided in the debug storage device 4, and the debug history storage means (debug history storage section) 42 stores information. Device 2
By writing access information (information as to whether the access is a read instruction or a write instruction) in response to access No. 2, debugging of the program stored in the storage device 22 becomes easier.

〔実施例〕〔Example〕

以下本発明の要旨を第2図、第3図に示す実施例により
具体的に説明する。
The gist of the present invention will be specifically explained below with reference to embodiments shown in FIGS. 2 and 3.

第2図は本発明の詳細な説明するブロック図、第3図は
本発明の実施例におけるアクセス情報を説明する図をそ
れぞれ示す。尚、企図を通じて同一符号は同一対象物を
示す。
FIG. 2 is a block diagram explaining the present invention in detail, and FIG. 3 is a diagram explaining access information in an embodiment of the present invention. Note that the same reference numerals refer to the same objects throughout the plan.

第2図はデバッグ装置30′の本発明における実施例を
示す図であり、その構成は第1図で説明した機能ブロッ
ク4,6.7,9,10.42と、プロセッサ21のア
クセス時アドレスを一時的に保持するバッファレジスタ
12と、 デバッグ履歴記憶部42のアドレスを指定するアドレス
レジスタ13と、 デバッグ装置30′全体の制御を行うデバッグ制御部1
4と、 複数の入力から1つを選択するマルチプレクサ(以下肝
χと称する)15〜17とを具備して構成されている。
FIG. 2 is a diagram showing an embodiment of the debug device 30' according to the present invention, and its configuration includes the functional blocks 4, 6.7, 9, 10.42 explained in FIG. a buffer register 12 that temporarily holds the data, an address register 13 that specifies the address of the debug history storage section 42, and a debug control section 1 that controls the entire debug device 30'.
4, and multiplexers (hereinafter referred to as "chip") 15 to 17 that select one from a plurality of inputs.

尚、符号(a)はアドレスバス、符号(b)はデータバ
ス、符号(C)はトレース信号線、符号(d)はアクセ
ス信号線をそれぞれ示す。
Note that (a) indicates an address bus, (b) a data bus, (C) a trace signal line, and (d) an access signal line.

プロセッサ21が記憶装置22をアクセスした時、その
時のアクセスアドレスをアドレスバス(a)を介してバ
ッファレジスタ12に格納する。
When the processor 21 accesses the storage device 22, the access address at that time is stored in the buffer register 12 via the address bus (a).

このアクセスアドレスのうち、その上位桁部分を予め上
位桁レジスタ6に格納している値と比較部7で比較し、
一致していると比較部7から一致信号が送出される。
Of this access address, the high-order digit part is compared with the value stored in the high-order register 6 in advance in the comparison unit 7,
If they match, a match signal is sent out from the comparing section 7.

更に、プロセッサ21からはアクセス状態(リード状態
又はライト状態)を示す信号をアクセス信号線(dlを
介して送出する。
Furthermore, the processor 21 sends out a signal indicating the access state (read state or write state) via the access signal line (dl).

又、トレースデータがトレース信号線(C)、 MPX
I6を介してトレースレジスタ9ヘセツトされていると
、トレース信号がトレースレジスタ9より送出される。
Also, the trace data is connected to the trace signal line (C), MPX
When set to trace register 9 via I6, a trace signal is sent out from trace register 9.

トレース制御部10は、上述の3つの信号(一致信号、
アクセス信号、トレース信号)がアクティブとなった時
に、デバッグ履歴記憶部42のアクセスアドレスの下位
桁で示される部分へ第3図で示す2ビツトのアクセス情
報(“00″は未アクセス、“01”は読出しくリード
)、“01”は書込み(ライト))を書込む。
The trace control unit 10 controls the above-mentioned three signals (coincidence signal,
When the access signal (access signal, trace signal) becomes active, the 2-bit access information shown in FIG. 3 (“00” is not accessed, “01” is "01" indicates a write (read), and "01" indicates a write (write).

尚、上位桁レジスタ6へのアドレスセントはデバッグ制
御部14にて予め事前に行われる。又、トレースレジス
タ9へのトレースデータのセットをデバッグ制御部14
からのデータバス山)を通じて事前にセットするが、プ
ログラムの一部分のアクセス動作のみをトレースさせた
い時は、プログラム中にトレースレジスタ9のセット、
リセット命令を組み込むことによって実現される。
Note that the address entry to the upper digit register 6 is performed in advance by the debug control unit 14. Also, the debug control unit 14 sets the trace data to the trace register 9.
However, if you want to trace only the access operations of a part of the program, set trace register 9 during the program.
This is achieved by incorporating a reset command.

次に、デバッグ履歴記憶部42のリセット及び読出し動
作について説明する。
Next, the reset and read operations of the debug history storage section 42 will be explained.

リセット動作としては、デバッグ制御部14がアドレス
レジスタ13にデータバス(blを介してアドレスを設
定し、“OO”を書込む。゛この動作を繰り返すことに
よって全アドレスのリセットを行う。
As a reset operation, the debug control unit 14 sets an address in the address register 13 via the data bus (bl) and writes "OO". By repeating this operation, all addresses are reset.

又、読出し動作は同様にデバッグ制御部14がアドレス
レジスタ13を用いてデバッグ履歴記憶部42の任意の
アドレスを指定し、そのアクセス情報を読出すことによ
り実行される。
Similarly, the read operation is executed by the debug control section 14 specifying an arbitrary address in the debug history storage section 42 using the address register 13 and reading out the access information.

以上のようにプロセッサ21のアクセス状態が記録され
るため、記憶装置22上のプログラム空間ではどの命令
が実行されたか、又データ空間ではどのデータがリード
/ライトされたかを一目で一覧することが可能となる。
Since the access state of the processor 21 is recorded as described above, it is possible to see at a glance which instructions have been executed in the program space on the storage device 22, and which data have been read/written in the data space. becomes.

又、アクセスアドレスの上位桁が上位桁レジスタ6に設
定されている設定値と一致した時のみトレース動作を行
うので、デバッグ履歴記憶部42をトレースに必要なだ
けの大きさに出来るために、記憶容量の削減が可能であ
る。
In addition, since the trace operation is performed only when the upper digit of the access address matches the setting value set in the upper digit register 6, the debug history storage section 42 can be made as large as necessary for tracing. Capacity can be reduced.

更に、トレースレジスタ9のセット、リセット命令をプ
ログラム中に組み込むことにより、プログラムの一部分
のアクセス動作だけをトレースすることが可能となる。
Furthermore, by incorporating the set and reset instructions for the trace register 9 into the program, it becomes possible to trace only the access operations of a part of the program.

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

以上のような本発明によれば、ソフトウェアのデバッグ
作業を短時間にしかもより容易に実行することが出来る
と言う効果がある。
According to the present invention as described above, there is an effect that software debugging work can be executed more easily and in a shorter time.

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

第1図は本発明の詳細な説明するブロック図、第2図は
本発明の詳細な説明するブロック図、第3図は本発明の
実施例におけるアクセス情報を説明する図、 第4図は従来例を説明するブロック図、をそれぞれ示す
。 図において、 2.10はトレース制御部、3はポインタ、4はデバッ
グ用記憶装置、 6は上位桁レジスタ、  7は比較部、9はトレースレ
ジスタ、13はアドレスレジスタ、14はテハッグ制御
部、 15〜17はl’lPX 。 20はデータ処理装置、 21はプロセッサ、22は記
憶装置、    30.30 ’はデバッグ装置、41
はデータ記憶部、  42はデバッグ履歴記憶部、をそ
れぞれ示す。
FIG. 1 is a block diagram explaining the present invention in detail, FIG. 2 is a block diagram explaining the present invention in detail, FIG. 3 is a diagram explaining access information in an embodiment of the present invention, and FIG. 4 is a conventional block diagram. A block diagram illustrating an example is shown, respectively. In the figure, 2.10 is a trace control unit, 3 is a pointer, 4 is a debugging storage device, 6 is a high-order register, 7 is a comparison unit, 9 is a trace register, 13 is an address register, 14 is a tech control unit, 15 ~17 is l'lPX. 20 is a data processing device, 21 is a processor, 22 is a storage device, 30.30' is a debug device, 41
42 indicates a data storage section, and 42 indicates a debug history storage section.

Claims (1)

【特許請求の範囲】 プロセッサ(21)及び前記プロセッサ(21)で使用
されるプログラム等を格納している記憶装置(22)を
有するデータ処理装置(20)に接続され、前記プロセ
ッサ(21)の命令に基づき前記プロセッサ(21)で
アクセスする前記記憶装置(22)内ソフトウェアのト
レースを行うデバッグ装置(30′)において前記デバ
ッグ装置(30′)内に、前記記憶装置(22)のアド
レスと対応する記憶領域を有するデバッグ履歴記憶手段
(42)と、 前記記憶装置(22)のアドレスの上位桁部分を記憶す
る上位桁記憶手段(6)と、 前記プロセッサ(21)の命令により所定データをセッ
ト、リセットするトレース記憶手段(9)とを設け、 前記トレース記憶手段(9)に所定データがセットされ
ており、しかも前記プロセッサ(21)からアクセスさ
れた前記記憶装置(22)のアドレスの該上位桁部分が
前記上位桁記憶手段(6)に予め記憶しているデータと
一致した時、前記デバッグ履歴記憶手段(42)へ前記
記憶装置(22)のアクセス状態を示すアクセス情報を
書込むことを特徴とするデバッグ履歴記録方式。
[Scope of Claims] Connected to a data processing device (20) having a processor (21) and a storage device (22) storing programs and the like used by the processor (21); A debugging device (30') that traces the software in the storage device (22) that is accessed by the processor (21) based on an instruction, stores information in the debugging device (30') that corresponds to the address of the storage device (22). a debug history storage means (42) having a storage area for storing data; a high-order digit storage means (6) for storing the high-order digit part of the address of the storage device (22); , and a trace storage means (9) for resetting, wherein predetermined data is set in the trace storage means (9) and the upper address of the address of the storage device (22) accessed by the processor (21). writing access information indicating the access state of the storage device (22) to the debug history storage means (42) when the digit portion matches data stored in advance in the upper digit storage means (6); Features a debug history recording method.
JP61220399A 1986-09-18 1986-09-18 Debugging log recording system Pending JPS6375848A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61220399A JPS6375848A (en) 1986-09-18 1986-09-18 Debugging log recording system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61220399A JPS6375848A (en) 1986-09-18 1986-09-18 Debugging log recording system

Publications (1)

Publication Number Publication Date
JPS6375848A true JPS6375848A (en) 1988-04-06

Family

ID=16750506

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61220399A Pending JPS6375848A (en) 1986-09-18 1986-09-18 Debugging log recording system

Country Status (1)

Country Link
JP (1) JPS6375848A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58181152A (en) * 1982-04-15 1983-10-22 Fujitsu Ltd Debugging system of data processing device
JPS59161751A (en) * 1983-03-04 1984-09-12 Hitachi Ltd Recording device for instruction run address

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58181152A (en) * 1982-04-15 1983-10-22 Fujitsu Ltd Debugging system of data processing device
JPS59161751A (en) * 1983-03-04 1984-09-12 Hitachi Ltd Recording device for instruction run address

Similar Documents

Publication Publication Date Title
JPS60159951A (en) Tracing system in information processing device
JPS6375848A (en) Debugging log recording system
JPH0581087A (en) Processor monitoring system
JP3130798B2 (en) Bus transfer device
JPH04242455A (en) Inter-processor communication trace circuit
JPH02281341A (en) Write data confirming method for debugging
JPS59158450A (en) Program test device
JPS626341A (en) Information processor
CN115408287A (en) Method, device and equipment for detecting basic software in board card and storage medium
CN114267397A (en) Global configuration programming method, device and system
JPH0326416B2 (en)
JPH0324640A (en) Debugging system for information processor
JP2002091795A (en) Cache controller
JPH03266139A (en) Program debugging system
JPS6211746B2 (en)
JPS6170644A (en) Program debugging system
JPH0443310B2 (en)
JPH0221340A (en) Debugging system for firmware
JPH01163860A (en) Input/output controller
JPH0253147A (en) Microprogram checking system
JPS617947A (en) Control storage device
JPS6227421B2 (en)
JPH02163842A (en) Program evaluating device for microcomputer
JPH03214328A (en) Memory testing system
KR890016477A (en) Operation program and data loading method of electronic exchange