Browse Prior Art Database

Method for displaying and modifying the contents of a morphable program construct

IP.com Disclosure Number: IPCOM000014923D
Original Publication Date: 2001-Nov-08
Included in the Prior Art Database: 2003-Jun-20
Document File: 2 page(s) / 45K

Publishing Venue

IBM

Abstract

Disclosed is a method for displaying and modifying the contents of mophable programming constructs in a debugging environment. Morphable programming constructs contain attributes (i.e. length, size, and type) that can change throughout the execution of a software program that uses them. The debugger environment consists of a debug engine, which is responsible for controlling the execution of a particular program as directed by a debug user interface. The use of status information in the debugger engine provides the ability to debug(display, modify, etc.) the contents of these dynamic programming constructs. This method eliminates the need for the user to repeatedly query the debug engine to debug such constructs.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 52% of the total text.

Page 1 of 2

  Method for displaying and modifying the contents of a morphable program construct

    Disclosed is a method for displaying and modifying the contents of mophable programming constructs in a debugging environment. Morphable programming constructs contain attributes (i.e. length, size, and type) that can change throughout the execution of a software program that uses them. The debugger environment consists of a debug engine, which is responsible for controlling the execution of a particular program as directed by a debug user interface. The use of status information in the debugger engine provides the ability to debug(display, modify, etc.) the contents of these dynamic programming constructs. This method eliminates the need for the user to repeatedly query the debug engine to debug such constructs.

    Status information is required to determine the occurrence of an attribute change for a morphable construct that is being debugged. This status information is maintained in the debug engine and used to compare against the new attributes of a construct upon re-evaluation. If differences are detected between the status information and the new attributes, then the information(format and content) sent to the user is changed accordingly. Otherwise, the attributes of the construct are unchanged and the information sent to the user may only change in content and not form.

    The invention solves the problem by keeping track of the attributes for a morphable construct to be used for comparison after re-evaluation of the construct at a new point of execution during a debugging session.

Below is portion of pseudocode to help explain the invention:

001 Declare and Initialize Variable A as a morphable construct with a size attribute equal to 4 002 Store to Variable A
003 Read from Variable A
004 Change the size attribute to 8
005 Store to Variable A
006 ...

After Execution of Line 1: Variable A is declared as a morphable construct and its size attribute is set to 4. When a debug engine is finished with the execution of line 1, Variable A can be displayed and modified through the debug user interface based on the current set o...