Unlock instant, AI-driven research and patent intelligence for your innovation.

Program breakpoint processing method and device

A technology of program breakpoints and processing methods, applied in the computer field, can solve problems such as complex processing flow and low efficiency, and achieve the effect of simple processing flow and reduced processing delay

Inactive Publication Date: 2015-12-02
HUAWEI TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the process of implementing the embodiment of the present invention, the inventor found that in the process of debugging the program in the prior art, there are two exception handling and two instruction replacements, the processing flow is complicated and the efficiency is low

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
  • Program breakpoint processing method and device
  • Program breakpoint processing method and device
  • Program breakpoint processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0017] figure 1 A schematic flowchart of a method for processing a program breakpoint provided by an embodiment of the present invention. like figure 1 As shown, the program breakpoint processing method provided by the embodiment of the present invention includes:

[0018] Step 101: set a breakpoint on the execution program, and ...

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 embodiment of the invention provides program breakpoint processing method and device. The method comprises the steps: setting breakpoints on the execution program, and revising a command at the breakpoint into a breakpoint command; triggering the breakpoint command to carry out abnormal processing, and revising the return address of the abnormal processing as a target code address; and after the abnormal processing is over, skipping and executing the target code. According to the embodiment of the invention, the method and the device can complete breakpoint detection by revising the return address as a target code and only doing one abnormal processing for the same one program, and the current executing program can also be directly skipped to another target program according to practical demand, so that the processing flow is simple, and the processing delay is reduced.

Description

technical field [0001] Embodiments of the present invention relate to software debugging technologies, and in particular, to a method and device for processing program breakpoints, which belong to the field of computers. Background technique [0002] The breakpoint function is a common debugging function in program development, and it is also the core function of the debugger. The breakpoint feature can pause the program and view the context in which the program is running. [0003] At present, software breakpoints are mainly implemented through two exceptions. Specifically, first, the instruction at the breakpoint is changed to a breakpoint instruction, and when the breakpoint hits the interrupt to the debugger, the debugger takes over the exception and suspends the program. When the user ends the analysis and resumes the debugged program, the first exception handling is required, that is, the breakpoint instruction at the breakpoint is restored to the original instructio...

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 Patents(China)
IPC IPC(8): G06F11/36
Inventor 楼超权戴华飞
Owner HUAWEI TECH CO LTD