JPH02194447A - Debugging control system - Google Patents

Debugging control system

Info

Publication number
JPH02194447A
JPH02194447A JP1014326A JP1432689A JPH02194447A JP H02194447 A JPH02194447 A JP H02194447A JP 1014326 A JP1014326 A JP 1014326A JP 1432689 A JP1432689 A JP 1432689A JP H02194447 A JPH02194447 A JP H02194447A
Authority
JP
Japan
Prior art keywords
change
memory
information storage
change information
instruction
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
JP1014326A
Other languages
Japanese (ja)
Inventor
Shizuko Otsuki
大槻 静子
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 JP1014326A priority Critical patent/JPH02194447A/en
Publication of JPH02194447A publication Critical patent/JPH02194447A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To eliminate a fault that debugging needs much labor and time by storing change memory address information to be rewritten by an instruction, memory contents before change and memory contents after change and displaying these stored contents. CONSTITUTION:An objective program execution control part 3 calls a memory change analysis part 4 for each instruction of a program. In the memory change analysis part 4, when the instruction is to execute writing to the memory, control is delivered to a change information storage processing part 5 and the change information storage processing part 5 stores change memory address information 7 and memory contents 8 before change to a change information storage area 6. Next, one instruction of the program is executed by the objective program execution control part 3 and the change information storage processing part 5 executes processing to store memory contents 9 after change to the change information storage area 6. A change information display processing part 10 refers the stored contents of the change information storage area 6 and executes picture display, printer output or file output. Thus, a result can be judged at a glance and debugging can be efficiently executed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデバッグ制御方式、特にデバッグ対象プログラ
ムの実行コマンドによってメモリ内容が変更された場合
のデバッグ制御方式に関する8〔従来の技術〕 従来、ソフトウェアのデバッグプログラムには、デバッ
グ対象プログラムの実行によってメモリ内容が変更され
ても、変更されたメモリに関する情報を記憶しておく機
能はなかっな。従って、メモリのどこがどのように変更
されたかを知る為には、数ステップずつプログラムを実
行させて確認し、又変更情報をユーザ自身がみつけて記
録するようにしている。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a debug control method, particularly a debug control method when memory contents are changed by an execution command of a program to be debugged.8 [Prior Art] Conventionally, software The debug program does not have a function to store information about the changed memory even if the memory contents are changed by the execution of the program to be debugged. Therefore, in order to know where and how the memory has been changed, the user must run the program several steps at a time and check the changes, and the user must find and record the change information himself.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のデバッグ制御方式では、プログラムのデ
バッグに1−間がかかり時間を要するというへ:点があ
る、 1課題を解決するl・めの手段1 本発明のデバッグ制御方式は、入力され7′::η、!
〕ドを解析する二1マント解析部と、 該解析の紡毛により起動されプロゲラ11実行時に命令
を1−)ず−)とり出す対象プログラム実行制御部と。
In the conventional debug control method described above, it takes a long time to debug a program. ′::η,!
] A target program execution control unit that is activated by the analysis and extracts instructions when the progera 11 is executed.

該命令がメモリ内容を書き換えるかどうか刊%llする
メモリ変更解析部と、 3命ぐrによ−)rlfき換えられる変更メモリアトし
ス情報ど変更前メモリ内容と変更後メモリ内容とを格納
してお・くための変更情報記憶域と、該格納を行う変更
情報記憶処理部と、 nn記解析の結果により、前記入力されたコマンドが変
更されたメモリの情報を表示させるコマンドであ−)た
堝Nには前記変更情報記憶域に格納されζいる内容を表
示する変更情報表示処理部とをデバッググログラム内に
有することを特徴とする1、 (実施例) 次6.゛1本発明に9いて図面を参り(()て表4明す
る。
A memory change analysis unit that determines whether the instruction rewrites the memory contents, and a memory change analysis unit that determines whether the instruction rewrites the memory contents; (a change information storage area for storing the changed information; a change information storage processing unit for storing the changed information; and a change information storage processing unit for storing the changed information; and a change information storage processing unit for storing the changed information; and a change information storage processing unit for storing the changed information; and a change information storage processing unit for storing the changed information; and a change information storage processing unit for storing the changed information.) 1. (Embodiment) The following 6.゛1 Referring to the present invention, referring to the drawings (()), Table 4 is explained.

第1図は本発明に1−・実施例を示す説明ma1−(’
 、P)る。
FIG. 1 is an explanation ma1-('
,P)ru.

デバ・・!ダグログラム1内゛ζ・ユーザがコマ〕I・
を入力すると、コマンド解析部2ではコマンド1)種類
を判別づる8コマンドがデバッグ対象ブ窪lクノムじ実
行を指示するコマ〉・ドであれば、対象ブ「7グラム実
行制御部3に制御がわな和)、そのようなコマンドでな
ければコマンド驚実行する。
Deba...! In Douglogram 1 ゛ζ・User is a frame】I・
When you input , the command analysis unit 2 determines the type of the command 1) If the 8 command is a command that instructs the same execution of the program to be debugged, then the command analysis unit 2 determines the command 1) if the command is a command that instructs the execution of the program to be debugged. If it is not such a command, the command will be executed.

対象プログラム実行制御部3はフ゛j77クラノ\の1
命令ごとにメモリ変更解析部4を呼び出す、メモリ変更
解析部・1てはその命令かメモリに書き込みを行う命令
かどうか判断し、メモリに書き込みを行う命令であれば
変更情報記憶処理部5に制御をわたし2、そ;7)よら
な命令でなければわたさない。
The target program execution control unit 3 is
The memory change analysis unit 1 calls the memory change analysis unit 4 for each instruction.1 judges whether the instruction is an instruction to write to the memory, and if it is an instruction to write to the memory, it is controlled by the change information storage processing unit 5. 7) I will not give it to you unless it is a specific order.

変更情報記憶処理部らでは、変更メモリア)・トス情報
7と変更前メモリ内容8を変更情報記憶域6に格納する
The change information storage processing unit stores the change memoria)/toss information 7 and the pre-change memory contents 8 in the change information storage area 6.

;欠に対象プログラム実行制御部3は、プ17クラノ、
の1命令を実行する。その命令が、メモリ書き込みを行
っ命令てあった時は、変更情報記憶処理部5が変更後メ
モリ内容9を変更情報記憶域6に格納する処理を行なわ
せる。対象プログラム実行制御部3は、コマンドに指定
されたプログラムの実行が終了するまで】命令ず−)こ
の9J!!埋を繰り返1″。
;In short, the target program execution control unit 3 is
Executes one instruction. When the command is a memory write command, the change information storage processing section 5 causes the changed memory contents 9 to be stored in the change information storage area 6. The target program execution control unit 3 executes this 9J! instruction until the execution of the program specified by the command is completed. ! Repeat filling 1″.

プログラムの実行が終了し、デバッグプログラム1内で
変更情報表示を指示するコマ〉′ドを入力すると、変更
情報表示処理部10は、変更情報記憶域6の格納内容を
参照して、画面表示又はプリンタ出力又はファイル出力
を行う。
When the execution of the program is finished and a command to instruct change information display is input in the debug program 1, the change information display processing section 10 refers to the contents stored in the change information storage area 6 and displays the screen or Perform printer output or file output.

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

以7]二説明し、たように本発明は、ラフ1−ウェアの
デバッグプログラム内で、デバッグ対象プログラムを実
行させた時にメモリのどこがどのように変更されたかと
いう情報を記憶し、あとで表示することができるIIと
したため、従来のように、ユーザ自身が数ステップずつ
プログラムを実行させてメモリ内容を帰認し7;[リリ
―Y報λ・記録)、く丁いく操作を行なわなくでも、−
・目で結果七−判断てき早゛バックを効率的に行なえる
という効’K fl’ iP+る。
7] As explained above, the present invention stores information about where and how the memory was changed when the program to be debugged is executed in the rough 1-ware debug program, and displays it later. Since it has been designed as II that allows the user to execute the program several steps at a time and recognize the memory contents, unlike in the past, the user does not have to perform detailed operations. ,−
・The effect of being able to quickly judge the result and back up efficiently is 'Kfl' iP+.

[4面の筒中な説明 第1図は本発明の実施例を栖ず説明図である、1・・デ
バッグプログラム、2・・−二7マント解析部、3・・
・対でpブログラノ、実行制御部、4・・・メモリ変更
解析部、5・・・交史情報記+f4処理部、6・・・変
更情報記憶域、7・・・変更メモリアドレス情報、8変
更前メモリ内容、9・・・変更後メモリ内容、lO・・
変更後(i11表示処理部。
[Detailed explanation of page 4 Figure 1 is an explanatory diagram of an embodiment of the present invention, 1. Debug program, 2.-27 Manto analysis section, 3.
・Paired with p blog, execution control unit, 4... memory change analysis unit, 5... exchange history information + f4 processing unit, 6... change information storage area, 7... change memory address information, 8 Memory contents before change, 9...Memory contents after change, lO...
After change (i11 display processing section.

Claims (1)

【特許請求の範囲】 入力されたコマンドを解析するコマンド解析部と、 該解析の結果により起動されプログラム実行時に命令を
1つずつとり出す対象プログラム実行制御部と、 該命令がメモリ内容を書き換えるかどうか判別するメモ
リ変更解析部と、 該命令によって書き換えられる変更メモリアドレス情報
と変更前メモリ内容と変更後メモリ内容とを格納してお
くための変更情報記憶域と、該格納を行う変更情報記憶
処理部と、 前記解析の結果により、前記入力されたコマンドが変更
されたメモリの情報を表示させるコマンドであった場合
には前記変更情報記憶域に格納されている内容を表示す
る変更情報表示処理部とをデバッグプログラム内に有す
ることを特徴とするデバッグ制御方式。
[Claims] A command analysis unit that analyzes input commands; a target program execution control unit that is activated based on the analysis result and extracts instructions one by one during program execution; and whether the instructions rewrite memory contents. a memory change analysis unit that determines whether the instruction is correct, a change information storage area for storing changed memory address information, pre-change memory contents, and post-change memory contents that are rewritten by the instruction; and a change information storage process that performs the storage. and a change information display processing unit that displays the contents stored in the change information storage area if the input command is a command for displaying changed memory information according to the result of the analysis. 1. A debug control method characterized by having the following in a debug program.
JP1014326A 1989-01-23 1989-01-23 Debugging control system Pending JPH02194447A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1014326A JPH02194447A (en) 1989-01-23 1989-01-23 Debugging control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1014326A JPH02194447A (en) 1989-01-23 1989-01-23 Debugging control system

Publications (1)

Publication Number Publication Date
JPH02194447A true JPH02194447A (en) 1990-08-01

Family

ID=11857949

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1014326A Pending JPH02194447A (en) 1989-01-23 1989-01-23 Debugging control system

Country Status (1)

Country Link
JP (1) JPH02194447A (en)

Similar Documents

Publication Publication Date Title
US5513317A (en) System and method for permitting rapid refinement of data output from a debugger
JPH06242819A (en) Signal state control system for programmable controller
JPH02194447A (en) Debugging control system
JPH02151908A (en) Numerical controller with simulation function
JP2570593B2 (en) Debug device
JPH07200350A (en) Software debugger
JPH0421027A (en) Method for changing set environment
JP2001209412A (en) Simulator for sequence program
JPH01223504A (en) Sampling trace system for programmable controller
JPS58139254A (en) Programmable controller
JPH07253876A (en) Program generating device
JPH0561717A (en) Program debugging device
JPH0468446A (en) Debugging supporting device
JPS59153247A (en) Debugging device
JPH0520089A (en) Assembly system
JPH03245206A (en) Method and device for programming of industrial robot
JPS63316229A (en) Control system for display device
JPS62103714A (en) Program generating device for industrial robot
JPH03113562A (en) Compact industrial computer
JPH01304504A (en) Display method for remaining working time
JPS63247823A (en) Screen defining system
JPH01169504A (en) Programmable controller
JPH03251934A (en) Computer equipment
JPH0253146A (en) Program tracing method
JPH03246602A (en) Programmable controller