Multibreak software debugging device and method

A software debugging, multi-breakpoint technology, applied in software testing/debugging, machine execution devices, instruments, etc., can solve problems such as implementation difficulties and large storage space consumption

Active Publication Date: 2015-07-15
SANECHIPS TECH CO LTD
View PDF6 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The above-mentioned software multi-breakpoint debugging technology needs to back up the real instruction at the breakpoint location, and a high-level language is required to parse the real instruction at the breakpoint when replacing the real instructi

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
  • Multibreak software debugging device and method
  • Multibreak software debugging device and method
  • Multibreak software debugging device and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In the embodiment of the present invention, the IDE sets a breakpoint in the software program; the driver obtains the breakpoint information in the software program, and replaces the real instruction at the breakpoint with a breakpoint instruction according to the breakpoint information; When the command is clicked, the microprocessor reports an interrupt to the IDE and freezes the pipeline; the driver changes the breakpoint command back to the real command according to the command issued by the IDE; the microprocessor unfreezes the pipeline and fetches the real command at the breakpoint ; The driver replaces the real instruction at the breakpoint with the breakpoint instruction again in the interval between the execution of the breakpoint instruction, and realizes the software debugging of multiple breakpoints through the above method.

[0039] The present invention will be described in further detail below through the accompanying drawings and specific embodiments;

...

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

Disclosed are a multi-breakpoint software debugging device and method. The software debugging device comprises: a driver, a microprocessor, an instruction memory and a microcode integrated development environment (IDE). The software debugging device realizes multi-breakpoint software debugging by using a method of setting breakpoints in a software program, acquiring breakpoint information, replacing instructions at the breakpoints with breakpoint instructions, upon execution of a breakpoint instruction, reporting the interruption, freezing the pipeline, changing the breakpoint instruction back to the real instruction according to a command delivered by the IDE, unfreezing the pipeline, and fetching the real instruction at the breakpoint, and replacing the real instruction at the breakpoint with the breakpoint instruction again at the break of breakpoint instruction execution. Also disclosed is a computer storage medium for storing a computer program that executes the software debugging method.

Description

technical field [0001] The invention relates to software debugging technology, in particular to a multi-breakpoint software debugging device and method. Background technique [0002] Microprocessor debugging technology is widely used in software fault location, software code analysis and reverse engineering, and plays a vital role in the design and use of microprocessors. [0003] Debugging the software of the microprocessor generally includes the following two aspects: setting breakpoints in the software program, so that when the program executes to the set breakpoint position, an interrupt is generated and the execution is stopped; the user can perform single-step operation on the program. Or get it out of the interrupted state and continue to execute. [0004] As can be seen from the above content, breakpoint technology is an indispensable and decisive technology in software debugging of microprocessors. The current breakpoint technology is mainly divided into two types...

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/36G06F9/30
CPCG06F11/362
Inventor 郝宇安康王志忠
Owner SANECHIPS TECH CO LTD
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