JPS5917646A - Debugging method of program - Google Patents
Debugging method of programInfo
- Publication number
- JPS5917646A JPS5917646A JP57125667A JP12566782A JPS5917646A JP S5917646 A JPS5917646 A JP S5917646A JP 57125667 A JP57125667 A JP 57125667A JP 12566782 A JP12566782 A JP 12566782A JP S5917646 A JPS5917646 A JP S5917646A
- Authority
- JP
- Japan
- Prior art keywords
- program
- subroutine
- memory area
- list
- parameter
- 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
Links
- 238000000034 method Methods 0.000 title claims description 5
- 230000000694 effects Effects 0.000 description 3
- 230000002950 deficient Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
5
発明の対象
本発明は計算機システムのプログラムのデパック方式に
関するものである。DETAILED DESCRIPTION OF THE INVENTION 5. Object of the Invention The present invention relates to a program depacking method for a computer system.
従来技術
従来のプログラムデパック方式では、プログラム処理中
のテーブル等のメモリ変化状態を知ろうとした場合に、
メモリの状態を知りたいてログラム処理ポイントに、メ
モリ状態をリスト。Prior Art In the conventional program depacking method, when trying to know the state of memory changes such as tables during program processing,
If you want to know the memory status, list the memory status at the program processing point.
出力等の処理ルーチンを追加することにより可能である
が、次の欠点がある。This is possible by adding processing routines for output, etc., but it has the following drawbacks.
1、 デパック対象プログラムにそのつどメモリ状態リ
スト出力ルーチンを追加する作業が必要。1. It is necessary to add a memory status list output routine to the program to be depacked each time.
2、 デパック対象プログラムを変更する為、プログラ
ムの不良現象が再現しなく、デパック0
出来ないことがある。2. Since the program to be depacked is changed, the defective phenomenon of the program may not be reproduced and Depack 0 may not be possible.
発明の目的
本発明の目的は、デパック対象プログラムを変更せずに
、プログラム処理中のメモリ状態をリスト等に出力する
方式を提供することにある。OBJECTS OF THE INVENTION An object of the present invention is to provide a method for outputting the memory state during program processing to a list or the like without changing the program to be depacked.
5
本発明は、メモリ状態をリスト出力するルーチンをサブ
ルーチン化し、プログラム内のサブルーチンの入口、出
口又は処理の重要ポイントで上記リスト出力サブルーチ
ンをコールするよ゛うにし、デパック時に1メモリ状態
をリスト出。5 The present invention converts a routine that outputs a list of memory states into a subroutine, calls the list output subroutine at the entrance, exit, or important point of processing of the subroutine in a program, and outputs a list of one memory state during depacking. .
力するポイント及びメモリ領域をパラメータで。Parameters specify the point and memory area to be input.
指定し、メモリ状態をリスト出力するサブルー。A subroutine to specify and output a list of memory status.
チンはこのパラメータに従いリストの出力をすることを
特徴とするものである。Chin is characterized by outputting a list according to this parameter.
発明の実施例 本発明の実施例を図により説明する。Examples of the invention Embodiments of the present invention will be described with reference to the drawings.
デパックの対象は、メインプログラム1とこれからコー
ルされるサブルーチン5、サブルーチン6であり、パラ
メータ読込みサブルーチン2とメモリ領域リスト出力ル
ーチン7は、デノ(ツク対象プログラムに無関係な汎用
サブルーチンである。The objects to be depacked are the main program 1 and the subroutines 5 and 6 to be called from this, and the parameter reading subroutine 2 and the memory area list output routine 7 are general-purpose subroutines unrelated to the depacking object program.
パラメータカード3でリスト出カポインドとメモリ領域
を対で指定し、パラメータ読込みサブルーチン2は、こ
のパラメータ情報をプログラムテーブル4に格納する。A list output point and a memory area are specified in pairs on the parameter card 3, and the parameter reading subroutine 2 stores this parameter information in the program table 4.
メモリ領域リスト出力ルーチンは、親ルーチンからコー
ルポイントを引数で受取り、親ルーチンのコールポイン
トがパラメータテーブル4に格納されているか判定し、
格納されている場。The memory area list output routine receives the call point from the parent routine as an argument, determines whether the parent routine's call point is stored in the parameter table 4,
where it is stored.
合は対応するメモリ領域をリスト出力し、格納。If so, output the corresponding memory area as a list and store it.
されていない場合は、例もせず親ルーチンに戻。If not, return to parent routine without any example.
る。Ru.
プログラム作成時、メインプログラム1の先。When creating a program, after main program 1.
頭でパラメータ読込みサブルーチン2をコールし、サブ
ルーチン5,6の入口、出口でメモリ領域リスト出力ル
ーチンをコールするようにし、パラメータカード5でリ
スト出カポインドをサブルーチン5の入口と出口とし、
メモリ領域を0
Aと指定することにより、サブルーチン5の処理前と処
理後のメモリ領域Aのリストが出力され、サブルーチン
5の処理に伴うメモリ領域Aの変化状態を知ることが出
来る。Parameter reading subroutine 2 is called at the beginning, memory area list output routine is called at the entrance and exit of subroutines 5 and 6, and list output point is set at the entrance and exit of subroutine 5 using parameter card 5.
By specifying the memory area as 0A, a list of the memory area A before and after the processing of the subroutine 5 is output, and the state of change in the memory area A due to the processing of the subroutine 5 can be known.
本発明を実施することにより、プログラムの変更なしに
パラメータカードだけで目的としたメモリ領域のリスト
出力が得られる効果がある。By implementing the present invention, it is possible to obtain a list output of a target memory area using only a parameter card without changing the program.
発明の効果
本発明により、プログラムのバグが発生したりに、バグ
発生プログラムの変更を行なわす“、6 ・
パラメータカードの指定だけで、必要ポイント。Effects of the Invention With the present invention, when a bug occurs in a program, the bug-generating program can be changed. 6. Required points just by specifying a parameter card.
でメモリ領域をリスト出力出来る為デパック効。Depacking is effective because you can output a list of memory areas with .
率が向上する効果がある。又、バグ発生プログ。This has the effect of improving the rate. Also, bug generating program.
ラムの変更を行なわないことにより、不良現象。Failure to do so may result in defective behavior.
の再現が容易となりデパックを行なう回数が減。It becomes easier to reproduce the problem, and the number of depacking operations is reduced.
少する効果もある。There is also a slight effect.
図は本発明の一実施例を示すプログラム構成図である。
1・・・メインプログラム、
0
2・・・パラメータ読込みサブルーチン、3・・・パラ
メータカード、
4・・・パラメータテーブル、
5・・・サブルーチン。
6・・・サブルーチン、
5
1・・・メモリ領域リスト出力ルーチン、8・・・メモ
リダンプリスト。
・ 4 ・The figure is a program configuration diagram showing one embodiment of the present invention. 1... Main program, 0 2... Parameter reading subroutine, 3... Parameter card, 4... Parameter table, 5... Subroutine. 6... Subroutine, 5 1... Memory area list output routine, 8... Memory dump list.・ 4 ・
Claims (1)
るサブルーチンと、上記テーブルで与えられた処理ポイ
ンタと親ルーチンの処理ポインタを比較し一致した場合
にテーブルで示されたメモリ領域をメモリダンプするサ
ブルーチンと、これらサブルーチンを組込んだプログラ
ムのデパックに於いて、処理ポインタとメモリ領域をO メモリダンプ指定情報で指定することKより、該当する
処理ポインタで指定されたメモリ領域のメモリダンプな
行なうことを特徴としたプログラムのデパック方式。[Claims] 1. A subroutine that reads memory dump specification information and stores it in a table, compares the processing pointer given in the table with the processing pointer of the parent routine, and if they match, reads the memory area indicated in the table. When depacking a subroutine that performs a memory dump and a program that incorporates these subroutines, specify the processing pointer and memory area with memory dump specification information. A method of depacking programs that is characterized by what it does.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57125667A JPS5917646A (en) | 1982-07-21 | 1982-07-21 | Debugging method of program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57125667A JPS5917646A (en) | 1982-07-21 | 1982-07-21 | Debugging method of program |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS5917646A true JPS5917646A (en) | 1984-01-28 |
Family
ID=14915672
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP57125667A Pending JPS5917646A (en) | 1982-07-21 | 1982-07-21 | Debugging method of program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS5917646A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010211555A (en) * | 2009-03-11 | 2010-09-24 | Meidensha Corp | Data trace method for programmable controller |
-
1982
- 1982-07-21 JP JP57125667A patent/JPS5917646A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010211555A (en) * | 2009-03-11 | 2010-09-24 | Meidensha Corp | Data trace method for programmable controller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4550369A (en) | Apparatus and method for processing macroinstructions and microinstructions | |
JPS5917646A (en) | Debugging method of program | |
JP2636266B2 (en) | Automatic generation of programs for multiple models | |
JP2922670B2 (en) | Image processing system and image processing method | |
Bayer | On program volume and program modularization | |
JPH02220145A (en) | Program tracing system | |
JPS5629756A (en) | On-line test method of central processor | |
JPH05143393A (en) | Device for forming test program | |
JPS61180344A (en) | Step execution system for high level language | |
JPH0447337B2 (en) | ||
JPS63141133A (en) | Procedure call method by value delivery of parameter | |
JPS57208685A (en) | Information processor | |
JPH03263220A (en) | Execute form program generating method | |
JPH05127945A (en) | Program execution situation analysis system | |
JPH08137714A (en) | Debugging method and debugging system for multitask program | |
JPH04330521A (en) | Cross reference list forming system | |
JPS61110244A (en) | Testing system of information processor | |
JPH0695869A (en) | Input and output interface information capturing system for dynamic link library program | |
JPH06187461A (en) | Image generating device | |
JPH05204616A (en) | Device for securing array area | |
JPH04157537A (en) | Address trap system | |
JPH04294427A (en) | Argument transfer system | |
JPH04170643A (en) | Optimum segmentation determining system | |
JPH0667895A (en) | Function accessing system | |
JPS58199526A (en) | Method and apparatus for forming pattern |