JPH04229343A - Memory contents display system in interactive debugger - Google Patents
Memory contents display system in interactive debuggerInfo
- Publication number
- JPH04229343A JPH04229343A JP2414738A JP41473890A JPH04229343A JP H04229343 A JPH04229343 A JP H04229343A JP 2414738 A JP2414738 A JP 2414738A JP 41473890 A JP41473890 A JP 41473890A JP H04229343 A JPH04229343 A JP H04229343A
- Authority
- JP
- Japan
- Prior art keywords
- editing program
- memory
- contents
- editing
- edit
- 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
- 230000002452 interceptive effect Effects 0.000 title claims abstract description 24
- 238000000034 method Methods 0.000 claims description 15
- 230000006870 function Effects 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000000547 structure data Methods 0.000 description 2
Landscapes
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
【0001】0001
【産業上の利用分野】本発明は対話型デバッガにおける
メモリ内容表示方式に関し、特にダンプ(DUMP)コ
マンドによりメモリの内容の画面等への表示を指定する
対話型デバッガにおけるメモリ内容表示方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for displaying memory contents in an interactive debugger, and more particularly to a method for displaying memory contents in an interactive debugger that specifies display of memory contents on a screen or the like using a dump (DUMP) command.
【0002】0002
【従来の技術】従来、この種の対話型デバッガにおける
メモリ内容表示方式では、対話型デバッガで定められた
ダンプコマンドの指定により指定されたアドレスからメ
モリの内容を2進数,10進数,16進数または文字の
いずれかに変換して画面等に表示するようになっていた
。2. Description of the Related Art Conventionally, in the memory contents display method in this type of interactive debugger, the contents of the memory are displayed in binary, decimal, hexadecimal or It was designed to be converted into one of the characters and displayed on the screen.
【0003】0003
【発明が解決しようとする課題】上述した従来の対話型
デバッガにおけるメモリ内容表示方式は、対話型デバッ
ガで定められたダンプコマンドの指定により指定された
アドレスからメモリの内容を2進数,10進数,16進
数または文字のいずれかに変換して表示するようになっ
ていたので、構造体データに対してメモリの内容を表示
しようとしたならば16進数に変換するしかなく、デー
タの位置が求めにくいなどの理由によりメモリ内容の読
解性が著しく落ちるという欠点がある。[Problems to be Solved by the Invention] The memory content display method in the conventional interactive debugger described above displays the memory content in binary, decimal, or Since it was supposed to be converted to either hexadecimal numbers or characters and displayed, if you wanted to display the memory contents of structure data, you would have to convert it to hexadecimal numbers, making it difficult to determine the location of the data. For these reasons, the readability of the memory contents is significantly reduced.
【0004】また、データがポインタデータにより順に
連鎖されている連鎖構造では、1つのデータを参照する
ごとにポイントデータをたどってダンプコマンドを入力
して表示させなければならないため、操作性も著しく落
ちるという欠点がある。[0004] Furthermore, in a chain structure in which data is sequentially chained by pointer data, the operability is also significantly degraded because each time one piece of data is referenced, it is necessary to trace the point data and input a dump command to display it. There is a drawback.
【0005】本発明の目的は、上述の点の鑑み、メモリ
の内容をどのように編集して表示するかを記述する編集
記述言語を使用して作成された編集プログラムをライブ
ラリファイルに登録しておき、編集プログラムをダンプ
コマンド中に指定できるようにして、編集プログラムの
記述内容に応じてメモリの内容を画面等に編集して表示
できるようにした対話型デバッガにおけるメモリ内容表
示方式を提供することにある。In view of the above points, an object of the present invention is to register an editing program created using an editing description language that describes how to edit and display the contents of a memory in a library file. To provide a memory contents display method in an interactive debugger, which enables the editing program to be specified in a dump command, and the contents of the memory to be edited and displayed on a screen or the like according to the description contents of the editing program. It is in.
【0006】[0006]
【課題を解決するための手段】本発明の対話型デバッガ
におけるメモリ内容表示方式では、ダンプコマンドによ
りメモリの内容を画面等に表示する機能を持つ対話型デ
バッガにおいて、メモリの内容をどのように編集して表
示するかを記述する編集記述言語を使用して作成された
編集プログラムを登録するライブラリファイルと、対話
型デバッガの使用中にダンプコマンドが入力されるとダ
ンプコマンド中に編集プログラムの指定があるかどうか
を判定して解析する編集指定解析手段と、この編集指定
解析手段によりダンプコマンド中に編集プログラムの指
定があると判定された場合に前記ライブラリファイルに
指定された編集プログラムがあるかどうかを調べて読み
出す編集プログラム検索手段と、この編集プログラム検
索手段により読み出された編集プログラムを解析しなが
ら実行し編集プログラムで記述した通りにメモリの内容
を編集して表示する編集プログラム実行手段とを有する
。[Means for Solving the Problems] In the memory content display method in the interactive debugger of the present invention, in an interactive debugger that has a function of displaying the memory content on the screen etc. by a dump command, how to edit the memory content. A library file that registers an editing program created using an editing description language that describes what to display, and when a dump command is input while using an interactive debugger, the editing program is specified during the dump command. an edit designation analysis means that determines and analyzes whether the library file has an edit program specified; an editing program search means for examining and reading out the editing program, and an editing program execution means for executing the editing program read out by the editing program searching means while analyzing it, editing and displaying the contents of the memory as described in the editing program. have
【0007】[0007]
【作用】本発明の対話型デバッガにおけるメモリ内容表
示方式では、ライブラリファイルがメモリの内容をどの
ように編集して表示するかを記述する編集記述言語を使
用して作成された編集プログラムを登録し、編集指定解
析手段が対話型デバッガの使用中にダンプコマンドが入
力されるとダンプコマンド中に編集プログラムの指定が
あるかどうかを判定して解析し、編集プログラム検索手
段が編集指定解析手段によりダンプコマンド中に編集プ
ログラムの指定があると判定された場合にライブラリフ
ァイルに指定された編集プログラムがあるかどうかを調
べて読み出し、編集プログラム実行手段が編集プログラ
ム検索手段により読み出された編集プログラムを解析し
ながら実行し編集プログラムで記述した通りにメモリの
内容を編集して表示する。[Operation] In the memory contents display method in the interactive debugger of the present invention, a library file registers an editing program created using an editing description language that describes how to edit and display the contents of memory. When a dump command is input while the interactive debugger is in use, the edit specification analysis means determines and analyzes whether or not there is an edit program specification in the dump command, and the edit program search means uses the edit specification analysis means to dump the dump command. When it is determined that an editing program is specified in the command, it is checked whether the specified editing program exists in the library file and it is read out, and the editing program execution means analyzes the editing program read out by the editing program search means. The contents of the memory are edited and displayed as written in the editing program.
【0008】[0008]
【実施例】次に、本発明について図面を参照して詳細に
説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained in detail with reference to the drawings.
【0009】図1は、本発明の一実施例に係る対話型デ
バッガにおけるメモリ内容表示方式の構成を示すブロッ
ク図である。本実施例の対話型デバッガにおけるメモリ
内容表示方式は、編集指定解析手段1と、編集プログラ
ム検索手段2と、編集プログラム実行手段3と、キーボ
ード4と、ライブラリファイル5と、表示装置6とから
構成されている。FIG. 1 is a block diagram showing the configuration of a memory content display method in an interactive debugger according to an embodiment of the present invention. The memory content display method in the interactive debugger of this embodiment is composed of an edit specification analysis means 1, an edit program search means 2, an edit program execution means 3, a keyboard 4, a library file 5, and a display device 6. has been done.
【0010】図2は、本実施例の対話型デバッガにおけ
るメモリ内容表示方式でのダンプコマンドA1と、編集
プログラムA2と、画面イメージA3とを例示する図で
ある。ダンプコマンドA1の“/?B2 F/”はベ
ースレジスタ2番の内容に16進数の‘F’を加えたア
ドレスを表し、ダンプするメモリのアドレスとして編集
プログラムA2にパラメータとして渡される。編集プロ
グラムA2は、sampleというプログラム名を持ち
、ダンプコマンドA1がダンプするメモリのアドレスが
データinpに入る。文A21は、display関数
の引数の値である文字列“common table
dump”を画面に表示することを表す。文A22
は、hexcnv関数により第1引数の内容であるデー
タinpが示すメモリの内容を第2引数の値である10
バイト数分だけ16進文字列に変換して、displa
y関数により画面に表示することを表す。FIG. 2 is a diagram illustrating a dump command A1, an editing program A2, and a screen image A3 in the memory contents display method in the interactive debugger of this embodiment. "/?B2 F/" of the dump command A1 represents an address obtained by adding the hexadecimal number 'F' to the contents of base register No. 2, and is passed as a parameter to the editing program A2 as the address of the memory to be dumped. The editing program A2 has a program name of sample, and the address of the memory to which the dump command A1 dumps is stored in data inp. Statement A21 is the character string “common table” which is the argument value of the display function.
"dump" is displayed on the screen. Sentence A22
The hexcnv function converts the memory content indicated by data inp, which is the content of the first argument, to 10, which is the value of the second argument.
Convert the number of bytes to a hexadecimal string and display
It represents displaying on the screen using the y function.
【0011】なお、編集プログラムA2を記述する編集
記述言語は、メモリの内容をどのように編集して表示す
るかを記述するために新しく設けられたものである。[0011] The editing description language used to describe the editing program A2 has been newly created to describe how to edit and display the contents of the memory.
【0012】次に、このように構成された本実施例の対
話型デバッガにおけるメモリ内容表示方式の動作につい
て、図2に示す具体例に沿って説明する。Next, the operation of the memory content display method in the interactive debugger of this embodiment configured as described above will be explained with reference to a specific example shown in FIG.
【0013】利用者は、あらかじめオペレーティングシ
ステムが持つエディタ等でメモリの内容をどのように編
集して表示するかを記述する編集記述言語を使用して編
集プログラムA2を作成し、ライブラリファイル5に登
録する。[0013] The user creates the editing program A2 in advance using an editing description language that describes how to edit and display the contents of the memory using an editor of the operating system, and registers it in the library file 5. do.
【0014】ライブラリファイル5への編集プログラム
A2の登録後、利用者が、対話型デバッガ(以下、単に
デバッガという)の実行中にキーボード4よりダンプコ
マンドA1を入力したとする。Assume that after registering the editing program A2 in the library file 5, the user inputs a dump command A1 from the keyboard 4 while an interactive debugger (hereinafter simply referred to as the debugger) is being executed.
【0015】デバッガは、ダンプコマンドA1を識別す
ると、編集指定解析手段1を起動し、ダンプコマンドA
1中に編集プログラムの指定があるかどうかを解析する
。[0015] When the debugger identifies the dump command A1, it activates the edit specification analysis means 1 and executes the dump command A1.
Analyze whether there is an editing program specified in 1.
【0016】ダンプコマンドA1中に編集プログラムの
指定がなければ、デバッガは定められたダンプコマンド
A1の処理を行うが、本例では編集プログラムの指定と
してsample( )があるので、編集プログラム
検索手段2を起動する。If no editing program is specified in the dump command A1, the debugger processes the specified dump command A1, but in this example, since sample( ) is specified as the editing program, the editing program search means 2 Start.
【0017】編集プログラム検索手段2は、ライブラリ
ファイル5にsampleというプログラム名を有する
編集プログラムが存在するかどうかを調べ、存在しなけ
ればダンプコマンドA1をエラーとするが、本例では編
集プログラムA2が存在するのでライブラリファイル5
から編集プログラムA2を読み込み、編集プログラム実
行手段3を起動する。The editing program search means 2 checks whether an editing program with the program name "sample" exists in the library file 5, and if it does not exist, the dump command A1 is treated as an error. In this example, the editing program A2 is Since it exists, library file 5
The editing program A2 is read from the program A2, and the editing program execution means 3 is activated.
【0018】編集プログラム実行手段3は、ダンプコマ
ンドA1に指定されたダンプするメモリのアドレス“/
?B2 F/”を評価し(ベースレジスタ2番の内容
に16進数の‘F’を加えた値にし)、引数として編集
プログラムA2のデータinpに設定して編集プログラ
ムA2の実行を開始する。The editing program execution means 3 executes the dump command A1 at the address "/" of the memory to be dumped.
? B2 F/'' (makes it a value obtained by adding the hexadecimal number 'F' to the contents of base register No. 2), sets it as the data inp of the editing program A2 as an argument, and starts executing the editing program A2.
【0019】文A21の実行は、display関数の
引数である文字列“commontable dum
p”を表示装置6に表示する。The execution of statement A21 is executed using the character string "commontable dum" which is an argument of the display function.
p” is displayed on the display device 6.
【0020】文A22の実行は、hexcnv関数の引
数のinpが示すメモリ10バイトの内容を16進文字
列に変換して返却し、その返却値をdisplay関数
の引数として表示装置6に表示する。The execution of statement A22 converts the contents of 10 bytes of memory indicated by the argument inp of the hexcnv function into a hexadecimal character string, and displays the returned value on the display device 6 as an argument of the display function.
【0021】編集プログラムA2の実行が終了すると、
ダンプコマンドA1の処理を終了する。この時点での表
示装置6の画面は、画面イメージA3に示すようになる
。[0021] When the execution of the editing program A2 is finished,
The processing of dump command A1 ends. The screen of the display device 6 at this point becomes as shown in screen image A3.
【0022】[0022]
【発明の効果】以上説明したように本発明は、メモリの
内容をどのように編集して表示するかを記述する編集記
述言語を設け、あらかじめエディタ等で編集記述言語を
使用してプログラムを作成してライブラリファイルに編
集プログラムとして登録しておき、対話型デバッガの使
用中にダンプコマンドで編集プログラムの指定を行うこ
とでライブラリファイルから指定された編集プログラム
を読み込み、編集プログラムの記述に従って実行してメ
モリの内容を画面等に表示させることにより、編集プロ
グラムの記述内容によっては構造体データの各フィール
ドを属性に一致した表示形式で表示したり意味のあるメ
ッセージで表示したりすることもでき、メモリ内容の読
解性を向上させることができるという効果がある。[Effects of the Invention] As explained above, the present invention provides an editing description language that describes how to edit and display the contents of a memory, and creates a program in advance using the editing description language with an editor, etc. and register it as an editing program in the library file, and then specify the editing program with the dump command while using the interactive debugger to read the specified editing program from the library file and execute it according to the description of the editing program. By displaying the contents of the memory on the screen, etc., each field of the structure data can be displayed in a display format that matches the attributes or with a meaningful message depending on the contents written in the editing program. This has the effect of improving the readability of the content.
【0023】また、連鎖構造のデータでも順にポインタ
データをたどってデータを編集して出力することが一度
に可能となるため、対話型デバッガの操作性を向上させ
ることができるという効果がある。[0023] Furthermore, even in the case of data having a chain structure, it is possible to edit and output the data by following the pointer data in order at the same time, so there is an effect that the operability of the interactive debugger can be improved.
【図1】本発明の一実施例に係る対話型デバッガにおけ
るメモリ内容表示方式を示すブロック図である。FIG. 1 is a block diagram showing a memory content display method in an interactive debugger according to an embodiment of the present invention.
【図2】本実施例の対話型デバッガにおけるメモリ内容
表示方式でのダンプコマンドの入力イメージと編集プロ
グラムの記述と表示装置の画面イメージとを例示する図
である。FIG. 2 is a diagram illustrating an input image of a dump command, a description of an editing program, and a screen image of a display device in the memory content display method in the interactive debugger of this embodiment.
1 編集指定解析手段 2 編集プログラム検索手段 3 編集プログラム実行手段 4 キーボード 5 ライブラリファイル 6 表示装置 A1 ダンプコマンド A2 編集プログラム A3 画面イメージ 1 Edit specification analysis means 2 Editing program search means 3 Editing program execution means 4 Keyboard 5 Library file 6 Display device A1 Dump command A2 Editing program A3 screen image
Claims (1)
画面等に表示する機能を持つ対話型デバッガにおいて、
メモリの内容をどのように編集して表示するかを記述す
る編集記述言語を使用して作成された編集プログラムを
登録するライブラリファイルと、対話型デバッガの使用
中にダンプコマンドが入力されるとダンプコマンド中に
編集プログラムの指定があるかどうかを判定して解析す
る編集指定解析手段と、この編集指定解析手段によりダ
ンプコマンド中に編集プログラムの指定があると判定さ
れた場合に前記ライブラリファイルに指定された編集プ
ログラムがあるかどうかを調べて読み出す編集プログラ
ム検索手段と、この編集プログラム検索手段により読み
出された編集プログラムを解析しながら実行し編集プロ
グラムで記述した通りにメモリの内容を編集して表示す
る編集プログラム実行手段とを有することを特徴とする
対話型デバッガにおけるメモリ内容表示方式。[Claim 1] In an interactive debugger having a function of displaying the contents of memory on a screen etc. using a dump command,
A library file that registers an editing program written using an edit description language that describes how to edit and display the contents of memory, and a dump command that is entered while using an interactive debugger. an edit specification analysis means for determining and analyzing whether an editing program is specified in the command; and an edit specification analysis means for determining and analyzing whether an editing program is specified in the command; an editing program search means for checking and reading out whether or not there is an edited editing program; and an editing program searching means for checking and reading out the editing program read out by the editing program searching means, and executing the editing program while analyzing it to edit the contents of the memory as described in the editing program. 1. A method for displaying memory contents in an interactive debugger, comprising: means for executing a displaying editing program.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2414738A JPH04229343A (en) | 1990-12-27 | 1990-12-27 | Memory contents display system in interactive debugger |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2414738A JPH04229343A (en) | 1990-12-27 | 1990-12-27 | Memory contents display system in interactive debugger |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04229343A true JPH04229343A (en) | 1992-08-18 |
Family
ID=18523187
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2414738A Pending JPH04229343A (en) | 1990-12-27 | 1990-12-27 | Memory contents display system in interactive debugger |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04229343A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7318174B2 (en) | 2005-04-05 | 2008-01-08 | International Business Machines Corporation | Systems, methods, and computer readable medium for analyzing memory |
-
1990
- 1990-12-27 JP JP2414738A patent/JPH04229343A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7318174B2 (en) | 2005-04-05 | 2008-01-08 | International Business Machines Corporation | Systems, methods, and computer readable medium for analyzing memory |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0785510B1 (en) | Program debugging system for debugging a program having a graphical user interface | |
| JPH07219810A (en) | Module test method and device | |
| JP4055197B2 (en) | Device for analyzing procedures included in the program | |
| JPH02275539A (en) | Debugging system | |
| CN119961137B (en) | Method and device for generating fuzzy test cases, computer equipment and storage medium | |
| JPH05250221A (en) | Simulator execution system | |
| JP2811804B2 (en) | Variable output range specification method | |
| CN115408275A (en) | Debugging analysis method and device, computing equipment and storage medium | |
| JPH0511989A (en) | Parameter analyzing device | |
| JPH044434A (en) | Program tracing method | |
| JPH05108372A (en) | System for outputting compiler optimization processing content | |
| JP2999654B2 (en) | Terminal device | |
| JPH0659937A (en) | Device for supporting single body test of load module | |
| JPH0675816A (en) | Loop processing error detecting device | |
| JPH05204658A (en) | Source program registering system | |
| JPH0546434A (en) | Program debugging system | |
| JPH05158679A (en) | Program text editing device | |
| JPH03186933A (en) | Symbol processing system for language processing system | |
| JPH0264744A (en) | Fault analyzing information acquiring system | |
| JPH06348541A (en) | Program test system | |
| JPH04273328A (en) | Generation system for cross-reference list | |
| JPH04330521A (en) | Cross reference list forming system | |
| JPH05181653A (en) | Shell program generating device | |
| JPH0327452A (en) | Program debugging system | |
| JPH05181649A (en) | Crossreference output device |