Supercharge Your Innovation With Domain-Expert AI Agents!

Method and system for accomplishing observation point

A technology of observation points and breakpoints, applied in the computer field, can solve the problems of slow speed, expensive hardware resources and high complexity

Inactive Publication Date: 2008-06-04
IBM CORP
View PDF2 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] advantage shortcoming hardware mechanism quick Can support read and write watchpoints non-universal, platform-dependent; Hardware resources are expensive and limited single step simulation Universal, platform independent slow, in some cases unbearably slow; Read watchpoints are not supported Changed paging mechanism medium speed High complexity, need to modify kernel

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for accomplishing observation point
  • Method and system for accomplishing observation point
  • Method and system for accomplishing observation point

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The present invention includes changes to existing compilers and debuggers. As known to those skilled in the art, a compiler is used to convert source code written in a high-level language into executable binary code to generate an executable program. The debugger is used to detect and debug the executable program generated by the compiler to find and correct errors in the program. The debugger depends on the compiler to work well, because the compiler generates information such as source information and line information, Call frame (call frame) information can be used by the debugger. The compiler and debugger are often located in the same integrated development environment (IDE) to facilitate program development and debugging. Of course, the two can also be independent of each other.

[0032] The core idea of ​​the present invention is to utilize the data flow analysis capability of the compiler. As known to those skilled in the art, data flow analysis is a static ana...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and a system for realizing an observation point used in computer program debugging, wherein, the method includes the following steps: during the compile phase of a program, addressable position information of each variable of the program is generated through data flow analysis; during the debug phase of the program, the observation point of the program variables is realized according to the addressable position information of the program variables designated by a user. Optimizedly, a read access position set and a write access position set are generated from the DU chain or the UD chain of the program variables. Optimizedly, through setting break points at each access position of the read access position set and the write access position set, the implementation procedure sets the observation point through marking and binding the break points to the designated program variables; moreover, the observation point is triggered when the break points, which are marked to be bound to the designated program variables, are hit.

Description

technical field [0001] The present invention generally relates to the field of computers, in particular to computer program debugging technology, and more particularly to a method and system for realizing a watchpoint (watchpoint) used in computer program debugging. Background technique [0002] As we all know, debugging is an important stage in software development. In this stage, developers spend a lot of time and use various debugging methods and techniques to find the root cause of program failures and correct them. Watchpoint is the debugging process One of the key techniques used. Watchpoints are notifications presented to the debugger when specified portions of the debugged program's address space are accessed. Watchpoints "observe" an address range in the debugged program's memory space, and Triggered when any attempt to access the address range occurs, that is, the program being debugged is stopped. Developers use watchpoints to monitor access to specified variables...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36
CPCG06F11/3644
Inventor 周武任党恩彭红波孙红东
Owner IBM CORP
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More