JPS63223927A - Multi-program symbol debug system - Google Patents

Multi-program symbol debug system

Info

Publication number
JPS63223927A
JPS63223927A JP62058040A JP5804087A JPS63223927A JP S63223927 A JPS63223927 A JP S63223927A JP 62058040 A JP62058040 A JP 62058040A JP 5804087 A JP5804087 A JP 5804087A JP S63223927 A JPS63223927 A JP S63223927A
Authority
JP
Japan
Prior art keywords
symbol
program
field
debugger
symbol table
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
JP62058040A
Other languages
Japanese (ja)
Inventor
Kazuya Hashimoto
一也 橋本
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 JP62058040A priority Critical patent/JPS63223927A/en
Publication of JPS63223927A publication Critical patent/JPS63223927A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To efficiently execute the symbol debugging by designating a symbol and program discriminating information so that a symbol table can be referred to with respect to a designated program. CONSTITUTION:At the time of starting debugging, by reading a symbol table into a debugger by a debugger command, a value is stored already in a program discriminating information field 104 of a symbol table 101, a symbol field 107 and a symbol attribute field 108. By a program identifier 109 designated simultaneously with a symbol 110 in a command to a debugger, the program identifying information fields 104, 107 and 108 in plural symbol tables 101-103 are retrieved, in which one coincides with the symbol 110 is selected, and the value of the symbol attribute field corresponding to its symbol field goes to symbol attribute information. In such a way, plural programs can be debugged by the symbol existing at every program thereof.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、プログラムのデバッグ方式に関し、特にシン
ボルデバッグ方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a program debugging method, and particularly to a symbol debugging method.

(従来の技術) 従来、プログラムのデバッグを行うツールとして、プロ
グラムに対するシンボルテーブルを参照しながらデバッ
グ対象のプログラムの実行を制御するプログラム(以下
シンボリックデバッガと称する)が使用されており、シ
ンボルテーブルは各プログラム毎に存在していた。
(Prior Art) Conventionally, as a tool for debugging programs, a program (hereinafter referred to as a symbolic debugger) that controls the execution of a program to be debugged while referring to a symbol table for the program has been used. It existed for each program.

従来のマイクロプロセッサ、パーソナルコンピュータ、
ミニコンおよびメインフレームにおけるシンボリックデ
バッガは一つのプログラムのみを対象としており、また
、複数のプログラムを対象としたデバッガであってもシ
ンボリックにデバッグできるのは一つのプログラムに対
してのみであった。
traditional microprocessor, personal computer,
Symbolic debuggers on minicomputers and mainframes target only one program, and even debuggers that target multiple programs can only symbolically debug one program.

(本発明が解決しようとする問題点) −しかし、実際にはメモリ上に複数のプログラムが存在
(例えば、オペレーティングシステム(O8)プ・ログ
ラムとアプリケーションプログラム等)できるため、複
数のプログラムを同時にデバッグできる必要がある。特
に、マイクロプロセッサにおける組み込みシステム(例
えば、マルチタスク機能を有するO8を組み込んだシス
テム)においては、デバッグ対象は単に一つのプログラ
ムだけではなく、システム全体となり、システムの構成
要素であるOSプログラムやアプリケーションプログラ
ムを同時にデバッグできる必要がある。
(Problem to be solved by the present invention) -However, in reality, multiple programs can exist in memory (for example, an operating system (O8) program and an application program), so multiple programs can be debugged at the same time. I need to be able to do it. In particular, in embedded systems using microprocessors (for example, systems incorporating O8 with multitasking functions), the object to be debugged is not just one program, but the entire system, and the OS programs and application programs that are the components of the system. It is necessary to be able to debug both at the same time.

しかし、上述した従来のシンボリックデバッガにおいて
は、プログラムに対するシンボルテーブルを一つしか保
持しておらず、異なるプログラム間の同一のシンボルに
ついては識別することはできなかった。また、異なるプ
ログラムのシンボルテーブルを参照する場合には、デバ
ッが使用者がデバッガに対する制御指令(以下、コマン
ドと称する)を発行して該シンボルテーブルをデバッガ
内に読込む操作が必要となるため、手間がかがるという
欠点があった。
However, the conventional symbolic debugger described above only holds one symbol table for a program, and cannot identify the same symbols between different programs. In addition, when referencing the symbol table of a different program, the debugger requires the user to issue a control command (hereinafter referred to as a command) to the debugger to read the symbol table into the debugger. The drawback was that it was time-consuming.

本発明の目的は、上記の欠点を除去し、任意のプログラ
ムに対するシンボルテーブルを簡単に指定できる機能を
提供し、効率のよいシンボルデバッグを可能にすること
にある。
SUMMARY OF THE INVENTION An object of the present invention is to eliminate the above-mentioned drawbacks, provide a function for easily specifying a symbol table for any program, and enable efficient symbol debugging.

(問題点を解決するための手段) 本発明のシンボルデバッグ方式は、少なくとも、プログ
ラム識別情報を保持し、さらに該プログラム識別情報と
対応するプログラム中で定義されたシンボルと、該シン
ボルの属性情報をも保持するテーブルを有し、シンボル
とプログラム識別情報を指定することをもって指定され
たプログラムに対するシンボルテーブルの参照を可能に
する。
(Means for Solving the Problems) The symbol debugging method of the present invention retains at least program identification information, and further stores symbols defined in the program corresponding to the program identification information and attribute information of the symbols. By specifying a symbol and program identification information, it is possible to refer to the symbol table for the specified program.

(実施例) 次に、本発明について図面を参照して説明する。第1図
は本発明の詳細な説明するための図である。第1図にお
いて、101はシンボルテーブルであり、プログラム識
別情報を格納するフィールド104(以下、プログラム
識別情報フィールドと称する)、シンボル値が格納され
るフィールド107(以下シンボルフィールドと称する
)、および、そのシン゛ポル値に対応する属性情報が格
納されるフィールド108(以下、シンボル属性フィー
ルドと称する)を保持している。シンボルフィールド1
07に格納されている値とシンボル属性フィールド10
8に格納されている値は対をなし、複数個存在する。1
02.103も101と同様のフィールドを保持するシ
ンボルテーブルであり、105は102シンボルテーブ
ル2中のプログラム識別情報フィールド、106は10
3シンボルテーブル3中の識別情報フィールドである。
(Example) Next, the present invention will be described with reference to the drawings. FIG. 1 is a diagram for explaining the present invention in detail. In FIG. 1, 101 is a symbol table, which includes a field 104 for storing program identification information (hereinafter referred to as program identification information field), a field 107 for storing symbol values (hereinafter referred to as symbol field), and It holds a field 108 (hereinafter referred to as a symbol attribute field) in which attribute information corresponding to a symbol value is stored. symbol field 1
Value stored in 07 and symbol attribute field 10
The values stored in 8 form pairs, and there are multiple values. 1
02.103 is also a symbol table that holds fields similar to 101, 105 is the program identification information field in 102 symbol table 2, and 106 is the 10
This is an identification information field in the 3-symbol table 3.

また、110はデバッガに対するコマンド中で指定され
たシンボルであり、109はそのシンボルと同時に指定
されたプログラム識別子である。プログラム識別子10
9は、あるシンボルテーブルのプログラム識別情報フィ
ールドの値と一致する値を保持するものとする。
Further, 110 is a symbol specified in a command to the debugger, and 109 is a program identifier specified at the same time as the symbol. program identifier 10
9 holds a value that matches the value of the program identification information field of a certain symbol table.

さらに、111はシンボルに対する属性情報(以下、シ
ンボル属性情報と称する)である。
Furthermore, 111 is attribute information for the symbol (hereinafter referred to as symbol attribute information).

以下では101のシンボルテーブル1について述べる。The symbol table 1 of 101 will be described below.

まず、プログラムのデバッグ開始時には、デバッガコマ
ンドでシンボルテーブルをデバッガ内に読込むことによ
り、101のシンボルテーブルの各フィールド、つまり
、プログラム識別情報フィールドlO4、シンボルフィ
ールド107およびシンボル属性フィールド108には
既に値が格納されているものとする。なお、102.1
03のシンボルテーブルについても同様に値が格納され
ているものとする。プログラム識別情報フィールドの値
は、例えば、フィールド104にはシンボルテーブルに
対応するプログラム名が考えられる。以下の説明ではプ
ログラム識別情報フィールドの値としてプログラム名を
考える。
First, when you start debugging a program, by reading the symbol table into the debugger using a debugger command, each field of the 101 symbol tables, that is, the program identification information field lO4, the symbol field 107, and the symbol attribute field 108, already has a value. is stored. In addition, 102.1
It is assumed that values are similarly stored in the symbol table 03. As for the value of the program identification information field, for example, field 104 may contain a program name corresponding to the symbol table. In the following explanation, the program name will be considered as the value of the program identification information field.

デバッガに対するコマンド中にシンボル110と同時に
指定されたプログラム識別子109により、複数のシン
ボルテーブル中のプログラム識別情報フィールドを検索
し、プログラム識別子109と一致する該プログラム識
別情報フィールドを決定する。
Using the program identifier 109 specified at the same time as the symbol 110 in the command to the debugger, program identification information fields in a plurality of symbol tables are searched to determine the program identification information field that matches the program identifier 109.

次に、・決定されたプログラム識別情報フィールドを含
むシンボルテーブル中のシンボルフィール“ドを検索し
、コマンド中のシンボル110と一致するものを選択し
、そのシンボルフィールドに対応するシンボル属性フィ
ールドの値をシンボル属性情報とする。
Next, search for a symbol field in the symbol table that includes the determined program identification information field, select the one that matches symbol 110 in the command, and set the value of the symbol attribute field corresponding to that symbol field. This is symbol attribute information.

以上の構成と動作により、複数のプログラムをそのプロ
グラム毎に存在するシンボルによるデバッグが可能とな
る。
With the above configuration and operation, it is possible to debug a plurality of programs using symbols that exist for each program.

尚、本例は一実施例であり、プログラム識別子をキーに
したプログラム識別情報フィールドの検索方法、シンボ
ルをキーにしたシンボルフィールドの検索方法、および
各フィールドの構成方法を変えても本発明を適用できる
Note that this example is just one example, and the present invention is applicable even if the method of searching the program identification information field using the program identifier as the key, the method of searching the symbol field using the symbol as the key, and the method of configuring each field are changed. can.

(発明の効果) 以上説明したように本発明は、プログラムを一意に識別
できる機能を有し、プログラム毎のシンボルテーブルを
一意に識別できるため、異なるシンボルテーブル上で同
一シンボルが複数個存在しても一意にシンボルの識別が
でき、従来のデバッガに比べ、デバッグ効率の向上が期
待できる。
(Effects of the Invention) As explained above, the present invention has a function that can uniquely identify a program and can uniquely identify a symbol table for each program. It can also uniquely identify symbols, and is expected to improve debugging efficiency compared to conventional debuggers.

また、デバッガ内でプログラム実行中断(ブレーク)し
た時のプログラム識別子、つまりプログラム名を党えて
おくだけで、デバッガ使用者は何の操作も必要とせず現
在実行中断しているプログラムのシンボルを使用できる
In addition, by simply keeping track of the program identifier, or program name, when program execution is interrupted (break) in the debugger, the debugger user can use the symbol of the program whose execution is currently interrupted without any operations required. .

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

第1図は、本発明の一実施例を説明するための図である
。 図において、 101・・・シンボルテーブル1. 102・・・シンボルテーブル2. 103・・・シンボルテーブル3. 104・・・シンボルテーブル1のプログラム識別フィ
ールド、 105・・・シンボルテーブル2のプログラム識別フィ
ールド、 106・・・シンボルテーブル3のプログラム識別フィ
ールド、 107・・・シンボルテーブル1のシンボルフィールド
、 108・・・シンボルテーブル1のシンボル属性フィー
ルド、 109・・・プログラム識別子、 110・・・シンボル、 111・・・シンボル属性情報 第1図
FIG. 1 is a diagram for explaining one embodiment of the present invention. In the figure, 101... symbol table 1. 102...Symbol table 2. 103...Symbol table 3. 104...Program identification field of symbol table 1, 105...Program identification field of symbol table 2, 106...Program identification field of symbol table 3, 107...Symbol field of symbol table 1, 108... -Symbol attribute field of symbol table 1, 109...Program identifier, 110...Symbol, 111...Symbol attribute information Fig. 1

Claims (1)

【特許請求の範囲】[Claims] 複数のプログラムのデバッグを行うシステムにおいて、
少なくとも複数のプログラムを一意に識別するプログラ
ム識別情報を保持し、さらに該プログラム識別情報と対
応するプログラム中で定義されたシンボルと、該シンボ
ルの属性情報をも保持するシンボルテーブルを有し、シ
ンボルとプログラム識別情報を指定することをもって、
指定されたプログラムに対するシンボルテーブルの参照
を可能にすることを特徴とするシンボルデバッグ方式。
In a system that debugs multiple programs,
It has a symbol table that holds program identification information that uniquely identifies at least a plurality of programs, and also holds symbols defined in the programs that correspond to the program identification information and attribute information of the symbols. By specifying program identification information,
A symbol debugging method characterized by making it possible to refer to a symbol table for a specified program.
JP62058040A 1987-03-13 1987-03-13 Multi-program symbol debug system Pending JPS63223927A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62058040A JPS63223927A (en) 1987-03-13 1987-03-13 Multi-program symbol debug system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62058040A JPS63223927A (en) 1987-03-13 1987-03-13 Multi-program symbol debug system

Publications (1)

Publication Number Publication Date
JPS63223927A true JPS63223927A (en) 1988-09-19

Family

ID=13072820

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62058040A Pending JPS63223927A (en) 1987-03-13 1987-03-13 Multi-program symbol debug system

Country Status (1)

Country Link
JP (1) JPS63223927A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899070A (en) * 2015-05-19 2015-09-09 京信通信技术(广州)有限公司 Method, system and apparatus for implementing device command line

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60175155A (en) * 1984-02-21 1985-09-09 Mitsubishi Electric Corp Program debugging device
JPS61101847A (en) * 1984-10-25 1986-05-20 Nec Corp Program debugging system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60175155A (en) * 1984-02-21 1985-09-09 Mitsubishi Electric Corp Program debugging device
JPS61101847A (en) * 1984-10-25 1986-05-20 Nec Corp Program debugging system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899070A (en) * 2015-05-19 2015-09-09 京信通信技术(广州)有限公司 Method, system and apparatus for implementing device command line

Similar Documents

Publication Publication Date Title
US6550056B1 (en) Source level debugger for debugging source programs
JP2927180B2 (en) Debugging method of information processing program and debugger therefor
US5737521A (en) Tracer system for analyzing errors in running real-time systems
JPS63223927A (en) Multi-program symbol debug system
CN105550575A (en) Method and device for obtaining un-exported function address and data structure offset
CN110688103A (en) Code writing method and device, electronic equipment and computer readable storage medium
JPH0784797A (en) Method and device for registering source code row number to load module
JPH05297911A (en) Sequence control circuit for sequence controller
JPH0461380B2 (en)
JPS5894041A (en) Debug backup device for high-class language
JP2751423B2 (en) Program debug processing method
JPS63223929A (en) Address identifying method
KR100198949B1 (en) Method of generating logical thread identification for restarting in thread program
JP2827724B2 (en) Program debug processing method
JPH0250731A (en) Compiling device
JPH07152577A (en) Sharing system for compiling and linking method
JPS61272834A (en) Retrieval execution system for backup program
JPH02264332A (en) Retrieving and registering system for alphabetic name
JPH05274176A (en) Symbol information storing system
JPH04107642A (en) Fault analysis processing system
JPS62147533A (en) Debug back-up device
JPH04157533A (en) Control system for label table in translation system
JPS6072033A (en) Split compiling system
JPH04304525A (en) Processing system for optical read-in data
JPS61206041A (en) Extension method for program language