Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Debugging method and debugging equipment

A technology of equipment and target programs, applied in the computer field, can solve problems such as poor concealment of debugging methods, and achieve high concealment effects

Inactive Publication Date: 2011-10-12
深圳市智通天下科技服务有限公司
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] During the research and practice of the prior art, the inventors of the present invention found that the currently more commonly used debugging method is to implement the breakpoint mechanism by modifying the target program code, which is easy to be found by the anti-debugging technology and restore the target program, so the existing debugging methods are less concealed

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
  • Debugging method and debugging equipment
  • Debugging method and debugging equipment
  • Debugging method and debugging equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] Embodiments of the present invention provide a debugging method and a debugging device. Each will be described in detail below.

[0034] When a page attribute fault occurs in the target program, it will jump to execute a fault handling function corresponding to a page attribute fault in an Interrupt Descriptor Table (IDT, Interrupt Descriptor Table) of the processor. Therefore, in the embodiment of the present invention, the location where the user wants to debug is used as the preset breakpoint address, the page attribute of the page where the address is located is modified, and the fault handling function corresponding to the page attribute fault of the IDT of the processor is modified It is the address of a custom fault handling function, so that when the target program runs to the page where the address is located, a page attribute fault occurs, and jumps to execute the custom fault processing function, so that the debugging device intercepts the control of the targ...

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 discloses a debugging method. The method comprises the following steps: modifying fault handling functional addresses corresponding to page property faults in an interrupt descriptor table (IDT) of a system processor into customized fault handling functional addresses; in case of a designated page property fault in a target program, acquiring field information; saving the field information in a virtual execution buffer area corresponding to the current thread; saving the field information in the buffer area in a stack-pushing manner; judging whether an extended instruction pointer (EIP) of the target program is matched with a preset break-point address of a faulty page; if yes, interacting with a user; if no, copying and constructing the instruction to which the EIP of the target program is directed into the virtual execution buffer area corresponding to the current thread; and popping up the field information from the stack, executing the instruction in the buffer area, and repeatedly judging whether the address is matched with the preset break-point address. The embodiment of the invention further provides corresponding debugging equipment. The method and the equipment provided by the embodiment of the invention have the advantage of higher imperceptibility.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a debugging method and debugging equipment. Background technique [0002] Debugging technology is widely used in code analysis, reverse engineering, and malicious code analysis. Debugging the software includes the following aspects: one is to set a breakpoint on the execution path of the target program and make it stop during execution; the other is to be able to single-step trace the target program; the third is to be able to provide Rich information about program runtime. [0003] During the research and practice of the prior art, the inventors of the present invention found that the currently more commonly used debugging method is to implement the breakpoint mechanism by modifying the target program code, which is easy to be discovered by the anti-debugging technology and restore the target program, so the existing debugging method is poor in concealment. Contents of the...

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/36
CPCG06F11/362
Inventor 李毅超刘丹陈沁源刘泽鹏仇冰雪张大成
Owner 深圳市智通天下科技服务有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products