Check patentability & draft patents in minutes with Patsnap Eureka AI!

Reverse debugging method and device as well as debugger

A debugging method and reverse technology, applied in the field of debugging

Active Publication Date: 2016-06-01
ZTE CORP
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0030] There is no implementation of reverse debugging in asynchronous mode in the current debugger

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
  • Reverse debugging method and device as well as debugger
  • Reverse debugging method and device as well as debugger
  • Reverse debugging method and device as well as debugger

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment

[0119] The following will take the local_zdb user-mode command line debugger developed by ZTE Central Research Institute Chengdu Research Institute as an example to briefly explain the reverse debugging supported by this asynchronous mode debugger.

[0120] (1) Command recording

[0121] Each time an instruction is executed, the control module will record the operation of the instruction. The information can completely describe the effect of an instruction execution, including two types: operation information on registers and operation information on memory.

[0122] If a machine instruction modifies memory, it records the address and value of the modified memory; if it modifies a register, it records the serial number and value of the register. These modification records are represented and stored by structrecord_entry:

[0123]

[0124]

[0125] Multiple record_entries are connected into a record_list linked list through prev and next. A machine instruction may modif...

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

Embodiments of the invention provide a reverse debugging method and device as well as a debugger. The method comprises the following steps: after a single-step instruction is sent to an agent module, receiving an event or command generation notification, wherein the single-step instruction is determined by a control module according to a debugging control command input by a user; judging whether the event or command generation notification aims at events or commands to obtain a first judging result; when the first judging result indicates that the event or command generation notification aims at commands, analyzing a user command to obtain a first command aiming at the event or command generation notification, and processing the first command; and when the first judging result indicates that the event or command generation notification aims at events, obtaining a completion event of the single-step instruction aiming at the event or command generation notification from the agent module, and processing the completion event. According to the embodiments of the invention, the reverse debugging under an asynchronous debugging mode is realized.

Description

technical field [0001] The invention relates to the field of debugging, in particular to a reverse debugging method, device and debugger. Background technique [0002] Debugging is often a guessing process that requires repeated analysis of suspected codes, and it is generally not possible to place breakpoints in the most appropriate position for the first time. For example, we often find that important code has been missed or some state of the program is incorrect before running to the breakpoint. Usually we can only exit the debugging and restart the new debugging to start from scratch. The debugging efficiency is relatively low. [0003] If there is a reverse debugging function, in this case, we don’t need to restart the debugging, we just simply let the called program execute backwards to the place we suspect, and we can continue to execute the debugging forward after the investigation is completed. This will undoubtedly greatly improve the debugging efficiency. [000...

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/36
Inventor 蒋曦
Owner ZTE 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