Claims
- 1. In a computer system, a method for automatically generating a debugger command file having debug commands for execution during source code simulation comprising the steps of:
- (1) embedding at least one debug command in at least one line of a source program;
- (2) assembling said source program, said assembling step including:
- (a) extracting said embedded debug commands,
- (b) generating a break-point command associated with each of said embedded debug commands,
- (c) creating said command file by writing said break-point commands and associated debug commands into said command file, and
- (d) generating an object code from said source program; and
- (3) upon modification of said source program, removing said break point commands and associated embedded debug commands from said command file so that during re-assembly of said modified source program, a new command file is automatically created containing new break point commands associated with said embedded debug commands at their new respective locations in said source program.
- 2. An apparatus for automatic regeneration of break-points in a debugger command file for execution in conjunction with a simulation of a source program comprising:
- a source program with at least one embedded debug command;
- an assembler, said assembler including
- a decoder for extracting said embedded debug commands from said source program,
- an object file generator for assembling said source program into object code,
- a debug command file generator for creating a debug command file including said embedded debug commands extracted by said decoder and break-point commands associated with said extracted embedded debug commands; and
- a debugger for executing said break point commands and said embedded debug commands in said debug command file during said simulation of said source program;
- such that said break-point commands and embedded debug commands are automatically re-generated after a modification is made to said source program by the subsequent re-assembly of said source program prior to simulation execution.
- 3. The apparatus of claim 2 wherein said source program is written in a high level language.
- 4. The apparatus of claim 2 wherein said embedded debug commands are written in a different language than said source code program.
- 5. The apparatus of claim 2 including a command line option for selectively enabling and disabling execution of said embedded debug commands.
- 6. The apparatus of claim 2 wherein said source program comprises lines having a comment field, said comment field including said embedded debug command and a special prefix indicating the presence of said embedded debug command.
Parent Case Info
This is a continuation of application Ser. No. 08/366,050 filed Dec. 29, 1994 now abandoned.
US Referenced Citations (2)
Number |
Name |
Date |
Kind |
5265254 |
Blasciak et al. |
Nov 1993 |
|
5321828 |
Phillips et al. |
Jun 1994 |
|
Non-Patent Literature Citations (2)
Entry |
UNIX Programmer's Manual, vol. 5, "Languages and Support Tools", Ed. Steven V. Earhart, Holt, Rinehart and Winston (1986). |
Ream, E.K. "Debugging with Sherlock." C Users Journal, vol. 10, n6, Jun. 1992. pp. 121(3). |
Continuations (1)
|
Number |
Date |
Country |
Parent |
366050 |
Dec 1994 |
|