Patent US5815714A successfully refreshed from Google Patents.
← Back to Patent Explorer
US5815714A Expired / Lapsed US ⏱️ 0.0 years remaining

Embedded debug commands in a source file

Assignee: Hitachi America Ltd
•
Filing: 1997-04-21
•
Granted: 1998-09-29
•
Expires: 2017-04-21
📄 Original PDF 🌐 Google Patents 🔄 Sync Now

Abstract

Abstract A method and apparatus for re-generating debug commands is provided comprising a source program having embedded debug commands in a first distinguishable field, and an assembler. The assembler operates on the source code extracting the embedded debug commands and associated address information from the source code while generating object code. The debug commands are stored in a command file for use during simulation. A simulator executes the assembled object code in conjunction with a debugger which executes the stored debug commands as designated during the execution cycle. Upon the termination of a simulation run and the subsequent modification of the source program, the debug commands are automatically re-generated with correct addresses as determined during the subsequent assembly. When the edited source file is loaded, the break-points are cleared and a new command file is executed to insure that the break-points are relocated to the correct source lines. The execution of the embedded debug commands can be enabled or disabled by means of a command line option, so when the debugging is complete, the debug information will not be outputted.

Inventors

  • 👤 Avadhani Shridhar
  • 👤 John Simons

Bibliographic Details

Application Number —
Jurisdiction US
Data Source google_patents
Last Synchronized 2026-11-08 07:16
CPC Classifications
G; G06; G06F; G06F11/00; G06F11/36; G06F11/362; G06F11/3624; G06F8/00; G06F8/30; G06F11/30; G06F11/34; G06F11/3466

Claims Analysis

Total Claims: 8
Claim 1
Independent Claim 156 words
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.
Claim 2
Dependent Claim 156 words
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.
Claim 3
Independent Claim 152 words
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.
Claim 4
Independent Claim 152 words
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.
Claim 5
Dependent Claim 16 words
The apparatus of claim 2 wherein said source program is written in a high level language.
Claim 6
Dependent Claim 21 words
The apparatus of claim 2 wherein said embedded debug commands are written in a different language than said source code program.
Claim 7
Dependent Claim 21 words
The apparatus of claim 2 including a command line option for selectively enabling and disabling execution of said embedded debug commands.
Claim 8
Dependent Claim 35 words
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.

References Cited (Backward Citations)

US5321828A Cited
US5265254A Cited

USPTO Annuity & Maintenance Windows

Annuity Stage Window Opens Payment Deadline Surcharge Period Until Estimated Fee Status
3.5 Years (Year 4) 2001-09-28 2002-03-30 2002-09-29 $2000.00 Window Closed / Lapsed
7.5 Years (Year 8) 2005-09-28 2006-03-30 2006-09-29 $3760.00 Window Closed / Lapsed
11.5 Years (Year 12) 2009-09-28 2010-03-30 2010-09-29 $7700.00 Window Closed / Lapsed

Assigned Categories & Tags

No categories assigned to this patent yet.

Assign Category Tag