Method and system for debugging program in multi-threading surroundings

A debugger, multi-threading technology, applied in the field of data processing, which can solve the problems of limited number of breakpoint registers, difficult to meet requirements, and hardware architecture that does not support hardware breakpoint mechanism.

Inactive Publication Date: 2008-10-29
IBM CORP
View PDF0 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the number of these breakpoint registers is quite limited, for example, there are only 4 hardware breakpoint registers in Intel's X86 architecture, which is often difficult to meet the needs of practical applications
In addition, there are many hardware architectures that do not support hardware breakpoint mechanism
Therefore, the hardware breakpoint mechanism can often only be used as an auxiliary to the software breakpoint mechanism.

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 debugging program in multi-threading surroundings
  • Method and system for debugging program in multi-threading surroundings
  • Method and system for debugging program in multi-threading surroundings

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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 used for debugging programs under a multi-thread environment. The method for debugging the programs under the multi-thread environment interrupts the execution of the debugged programs by replacing an instruction at the position where the broken point used for debugging is required to be arranged with an interruption instruction. The method comprises that when the instruction at the position where the broken point used for debugging is arranged is replaced by the interruption instruction, the instruction before the position of the broken point used for debugging is set as a protection broken point; furthermore, when the interruption instruction is reused to replace the instruction at the position of the broken point used for debugging, the protection broken point is replaced by the original instruction at the position of the debugged program. The method of the invention arranges the protection broken point before the broken point used for debugging after one thread of the debugged program is executed to a broken point used for debugging and enters a broken point disposal mechanism, thus avoiding other threads from missing the broken point used for debugging. Furthermore, the method of the invention does not need to suspend other threads and can realize the program debugging under the multi-thread environment with low expense.

Description

Method and system for debugging program in multi-thread environment technical field The invention relates to the field of data processing, in particular to a method and a system for debugging a program in a multi-thread environment. Background technique Computer systems and computer-based devices (such as industrial automation systems) usually consist of one or more central processing units, random access memories for storing data or control instructions, and input and output interfaces for data or instruction input and user interaction. and other related components. Such computer systems and computer-based devices cannot function without the support of operating systems and application software. All software products need to be debugged before they are put into use to ensure the correctness of their operation results and make them meet the design requirements. Therefore, debugging tools are used. A debugger (debugger) is a software product that can be used to start ot...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36G06F9/48
CPCG06F11/362
Inventor 齐尧于维英郑勇李研
Owner IBM CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products