JPS6214241A - Debug processing system at exceptional condition detection - Google Patents

Debug processing system at exceptional condition detection

Info

Publication number
JPS6214241A
JPS6214241A JP60153304A JP15330485A JPS6214241A JP S6214241 A JPS6214241 A JP S6214241A JP 60153304 A JP60153304 A JP 60153304A JP 15330485 A JP15330485 A JP 15330485A JP S6214241 A JPS6214241 A JP S6214241A
Authority
JP
Japan
Prior art keywords
program
exception
debugging
user
processing
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
JP60153304A
Other languages
Japanese (ja)
Inventor
Kazuo Yatabe
矢田部 一夫
Yoshio Arai
新井 義夫
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
Nippon Telegraph and Telephone Corp
Original Assignee
Fujitsu Ltd
Nippon Telegraph and Telephone 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 Fujitsu Ltd, Nippon Telegraph and Telephone Corp filed Critical Fujitsu Ltd
Priority to JP60153304A priority Critical patent/JPS6214241A/en
Publication of JPS6214241A publication Critical patent/JPS6214241A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To continue a program of object of debugging when calculation exception and operation exception are detected by using an interactive debugger which is started when exceptional condition occurred during execution of a program of object of debugging. CONSTITUTION:The system is provided with an objective program of debugging and an interactive debugger 2 started when exceptional condition occurred during execution of the objective program of debugging 1. When started, the debugger 2 informs a user of debugging request, and corrects the objective program 1 of debugging responding to data value correction from the user, and when instruction to continue processing is received from the user, performs processing to resume processing of the objective program 1 of debugging from the forefront of exception detection statement.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、会話型デバッガにおいて、例外条件が発生し
た場合のデバッグ処理方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a debug processing method when an exceptional condition occurs in an interactive debugger.

〔概要〕〔overview〕

演算例外及びオペレーション例外が発生した場合にもデ
バッグ処理を継続出来ると共に、処理継続箇所を例外検
出ステートメントの先頭からとした例外条件検出時のデ
バッグ処理方式である。
This is a debugging processing method when an exception condition is detected, in which debugging processing can be continued even when an operation exception occurs, and the processing continues from the beginning of the exception detection statement.

〔従来技術と問題点〕[Prior art and problems]

例外条件の種類には、演算例外、オペレーション例外、
仮パラメータ・エラー、配列要素などの範囲のエラーな
どがある。演算例外とは、固定小数点オーバフローや除
算チェック、10進オーバフローなどを意味しており、
オペレーション例外とは、アドレス変換不能や命令不当
などを意味しており、仮パラメータ・エラーとは、実パ
ラメータと仮パラメータの型や個数の不当などを意味し
ている。演算例外やオペレーション例外はハード的に検
出され、この種の例外条件が検出されると、オンルーチ
ンへ制御が移行する。仮パラメータ・エラーや配列要素
などの範囲のエラーの検出は、コンパイル時にチェック
用ロジックを埋め込むことによってなされる。
Types of exception conditions include calculation exceptions, operation exceptions,
Examples include formal parameter errors and range errors such as array elements. Arithmetic exceptions refer to fixed-point overflows, division checks, decimal overflows, etc.
An operation exception means an inability to convert an address or an invalid instruction, and a formal parameter error means an invalid type or number of actual parameters and formal parameters. Arithmetic exceptions and operation exceptions are detected by hardware, and when this type of exception condition is detected, control is transferred to an on-routine. Detection of range errors such as formal parameter errors and array element errors is done by embedding checking logic at compile time.

従来の会話型デバッグにおいては、演算例外やオペレー
ション例外を検出すると、メツセージや解析用情報を出
力するくらいで、デバッグ対象プログラムの走行を停止
している。特にオペレーション例外検出時にはそのまま
の形では続行不可であり、演算例外検出時にはそのまま
の形で続行すると数値がブタラメとなる。仮パラメータ
・エラーや配列要素などの範囲のエラーなどが検出され
た場合は、同じようにメソセージや解析用情報を出力し
て、デバッグ対象プログラムの走行を停止している。但
し、会話型デバッガの中には仮パラメータ・エラーや配
列要素などの範囲のエラー検出時に静止モードになり、
ユーザの指定によってはデバッグ対象プログラムの実行
を続けることが出来るものも存在する。
In conventional interactive debugging, when a calculation exception or operation exception is detected, the execution of the program to be debugged is stopped, just by outputting a message or analysis information. In particular, when an operation exception is detected, it is impossible to continue as is, and when an operation exception is detected, if the operation is continued as it is, the numerical value will be incorrect. If a formal parameter error or an error in the range of an array element is detected, a message or analysis information is output in the same way, and the execution of the program to be debugged is stopped. However, some conversational debuggers enter static mode when errors in ranges such as formal parameter errors or array elements are detected.
Depending on the user's specifications, there are some that allow the execution of the program to be debugged to continue.

〔発明の目的〕[Purpose of the invention]

本発明は、上記の考察に基づくものであって、演算例外
やオペレージロン例外検出時においてもユーザの指示に
よりデバッグ対象プログラムを続けて実行できるように
した会話型デバッガにおける例外条件検出時のデバッグ
処理方式を桿供することを目的としている。
The present invention is based on the above considerations, and is a debugging process when an exception condition is detected in an interactive debugger that allows the program to be debugged to continue to be executed according to user instructions even when an operation exception or an operation exception is detected. The purpose is to provide a method.

〔目的を達成するための手段〕[Means to achieve the purpose]

そしてそのため本発明の例外条件検出時のデバッグ処理
方式は、デバック対象プロゲラJいと、該デバック対象
プログラム実行中に例外条件が発生した時に起動される
会話型のデバッガとを具備し、該デバッガは、起動され
ると、ユーザに対し−でデバッキング要求を通知し、ユ
ーザからのデータ値修正に応じて上記デバック対象プロ
グラムの修正を行い、上記ユーザからの処理続行指示を
受け取った時、例外検出ステートメントの先頭から上記
デバック対象プログラムの処理を再開させるための処理
を行うように構成されていることを特徴とするものであ
る。
Therefore, the debug processing method when an exception condition is detected according to the present invention includes a programmer J to be debugged, and an interactive debugger that is activated when an exception condition occurs during execution of the program to be debugged, and the debugger includes: When started, it notifies the user of a debugging request with -, modifies the program to be debugged according to the data value modification from the user, and when an instruction to continue processing is received from the user, an exception detection statement is sent. The present invention is characterized in that it is configured to perform processing for restarting the processing of the program to be debugged from the beginning of the program.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明を図面を参照しつつ説明する。図は本発明
の例外条件検出時のデバッグ処理方式を説明するための
図である。図において、1はデバッグ対象プログラム、
2はデバッガ、3はオンルーチンをそれぞれ示している
。また、丸打数字は処理の順序を示している。
Hereinafter, the present invention will be explained with reference to the drawings. The figure is a diagram for explaining a debug processing method when detecting an exceptional condition according to the present invention. In the figure, 1 is the program to be debugged,
2 indicates a debugger, and 3 indicates an on-routine. Further, the circled numbers indicate the order of processing.

デバッグ対象プログラムは、デバッキング・モードによ
りコンパイルされる。即ち、特定の保証レジスタ(Us
ing Ba5e)を除き文の間でのレジスタの引き継
ぎはない。また、保証レジスタの値は、コンパイラ生成
のプロローグ処理により、コンパイラ−デバッガのイン
タフェース領域に設定されている。例外条件検出時には
下記のような処理が行われる。
The program to be debugged is compiled in debugging mode. That is, a specific guarantee register (Us
There is no register inheritance between statements except for ing Ba5e). Further, the value of the guarantee register is set in the compiler-debugger interface area by the prologue process generated by the compiler. When an exceptional condition is detected, the following processing is performed.

■ 例外検出位置(ステートメント番号)を求めて、デ
バッガ2に通知する。演算例外やオペレーション例外検
出の場合は、オンルーチン3が例外検出時のPSWの実
行アドレスにより例外検出位置を求め、仮パラメータ・
エラーや配列要素などの範囲のエラー検出の場合は、コ
ンパイル時に作成されたチェック用ロジックが例外検出
位置を求め■ デバッガ2は該通知を受けて静止モード
になり、ユーザよりのデバッキング要求を待つ。この時
、デバッガ2は、例外検出メソセージ及び解析用として
の小量の情報をもユーザに通知する。
■ Determine the exception detection position (statement number) and notify the debugger 2. In the case of calculation exception or operation exception detection, on-routine 3 determines the exception detection position from the execution address of PSW at the time of exception detection, and sets the temporary parameter.
In the case of error detection in a range such as an error or an array element, the checking logic created at compile time searches for the exception detection position. Debugger 2 receives the notification and enters static mode, waiting for a debugging request from the user. . At this time, the debugger 2 also notifies the user of an exception detection message and a small amount of information for analysis.

■ ユーザはデバッキング処理を行い、例外の要因を修
正する。例外の要因の修正には、特定変数値の変更、プ
ログラムの修正(オブジェクト・パッチ等を含めて)な
どがある。
■ The user performs debugging and corrects the cause of the exception. Correcting the cause of the exception includes changing specific variable values, modifying the program (including object patches, etc.).

■ ユーザは例外要因を解除し、処理続行できると判断
した時、処理続行を指示する。勿論、その場で処理を打
ち切ることも可能である。
■ When the user resolves the exception cause and determines that it is possible to continue processing, the user issues an instruction to continue processing. Of course, it is also possible to terminate the process on the spot.

■ 処理続行の指示をされた時、デバッガ2は、演算例
外やオペレーション例外のときにはオン処理中の条件を
解除してやり(O3側のオン処理中の意識の解除)、保
証レジスタをコンパイラ−デバッガ・インタフェース域
より復元してやり、例外が起こったステートメントの先
頭より処理を続行させる。
■ When instructed to continue processing, the debugger 2 cancels the ON processing condition in the case of an operation exception or an operation exception (releasing the O3's awareness of the ON processing), and transfers the guaranteed registers to the compiler-debugger interface. area and continue processing from the beginning of the statement where the exception occurred.

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

以上の説明から明らかなように、本発明によれば、下記
のような効果を奏することが出来る。
As is clear from the above description, according to the present invention, the following effects can be achieved.

+a+  例外検出時の処理を統一化できる。即ち、演
算例外及びオペレーション例外検出時においても処理続
行可能となる。
+a+ Processing when an exception is detected can be unified. That is, processing can be continued even when an operation exception or an operation exception is detected.

(bl  処理続行箇所が例外検出ステートメントの先
頭からとなる。即ち、ユーザはどこから処理を再開する
かということを意識する必要がなく、単にプログラムの
処理続行だけを指示すれば良い。これにより、通常のデ
バッグ時の処理続行と同じようにユーザに見える。勿論
、特定ステートメントからの処理再開も可能である。従
来技術においては、たとえ仮パラメータ・エラーや配列
要素などの範囲のエラーの検出時での処理続行であって
も、ユーザが例外発生ステートメントを指定しての処理
続行となる。単なる処理続行では例外発生箇所からその
ままの処理続行となる。
(bl The processing continuation point starts from the beginning of the exception detection statement. In other words, the user does not need to be aware of where to restart processing, and can simply instruct the program to continue processing. This appears to the user in the same way as continuing processing when debugging.Of course, it is also possible to resume processing from a specific statement. Even if the process is to be continued, the user must specify an exception statement to continue the process.If the process is simply continued, the process will continue from the point where the exception occurred.

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

図は本発明の例外条件検出時のデバッグ処理方式を説明
するための図である。 1・・・デバッグ対象プログラム、2・・・デバッガ、
3・・・オンルーチン。
The figure is a diagram for explaining a debug processing method when detecting an exceptional condition according to the present invention. 1... Program to be debugged, 2... Debugger,
3...On routine.

Claims (1)

【特許請求の範囲】[Claims] デバック対象プログラムと、該デバック対象プログラム
実行中に例外条件が発生した時に起動される会話型のデ
バッガとを具備し、該デバッガは、起動されると、ユー
ザに対してデバッギング要求を通知し、ユーザからのデ
ータ値修正に応じて上記デバック対象プログラムの修正
を行い、上記ユーザからの処理続行指示を受け取った時
、例外検出ステートメントの先頭から上記デバック対象
プログラムの処理を再開させるための処理を行うように
構成されていることを特徴とする例外条件検出時のデバ
ッグ処理方式。
It is equipped with a program to be debugged and an interactive debugger that is activated when an exception condition occurs during the execution of the program to be debugged. When activated, the debugger notifies the user of a debugging request, and The program to be debugged is modified in accordance with the data value modification from the user, and when an instruction to continue processing is received from the user, processing is performed to restart the program to be debugged from the beginning of the exception detection statement. A debug processing method when detecting an exception condition, characterized in that it is configured as follows.
JP60153304A 1985-07-11 1985-07-11 Debug processing system at exceptional condition detection Pending JPS6214241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60153304A JPS6214241A (en) 1985-07-11 1985-07-11 Debug processing system at exceptional condition detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60153304A JPS6214241A (en) 1985-07-11 1985-07-11 Debug processing system at exceptional condition detection

Publications (1)

Publication Number Publication Date
JPS6214241A true JPS6214241A (en) 1987-01-22

Family

ID=15559552

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60153304A Pending JPS6214241A (en) 1985-07-11 1985-07-11 Debug processing system at exceptional condition detection

Country Status (1)

Country Link
JP (1) JPS6214241A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01159738A (en) * 1987-12-17 1989-06-22 Fujitsu Ltd Correction system by procedure processing for parameter being executed continuously

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5930145A (en) * 1982-08-12 1984-02-17 Fujitsu Ltd Reexecution processing system by dynamic program correction

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5930145A (en) * 1982-08-12 1984-02-17 Fujitsu Ltd Reexecution processing system by dynamic program correction

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01159738A (en) * 1987-12-17 1989-06-22 Fujitsu Ltd Correction system by procedure processing for parameter being executed continuously

Similar Documents

Publication Publication Date Title
US5621886A (en) Method and apparatus for providing efficient software debugging
US5740413A (en) Method and apparatus for providing address breakpoints, branch breakpoints, and single stepping
JPH0748182B2 (en) Program error detection method
JPS6214241A (en) Debug processing system at exceptional condition detection
JPH03113648A (en) Program debug system
KR920003909B1 (en) Debugging supporting circuit
JPS60124746A (en) Data processing unit
JPH025136A (en) Error processing system for language processing program
JPH05313918A (en) Analysis data collecting system in ending abnormality of application software
JP2023151592A (en) Information processor and operation control method for information processor
JP2786215B2 (en) Restart processing control method
JPS61214030A (en) Arithmetic processing unit
JPH0314148A (en) Program breakdown detecting device
JPH01305438A (en) Host computer
JPH03175539A (en) Debugging microprocessor
JPS63289654A (en) Program branching instruction monitoring system
JPH0340143A (en) Debugging system for pipeline type computer
JPH0628218A (en) Program development assisting device for microcomputer
JPH03201135A (en) Microprocessor
JPH03246639A (en) Microprocessor
JPH07134665A (en) Information processor
JPH02103638A (en) System for improving built-in function executing time performance
JPH0210442A (en) Break point instruction control system
JPH0353335A (en) Compiler processing system
JPH05151021A (en) Debugging system using debugger with built-in resident area