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

A reverse debugging method, device and debugger

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

Active Publication Date: 2020-03-13
ZTE CORP
View PDF5 Cites 0 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
  • A reverse debugging method, device and debugger
  • A reverse debugging method, device and debugger
  • A reverse debugging method, device and 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

A reverse debug method, device and debugger, the method comprising: after transmitting a single-step instruction to a debug proxy module, receiving an event or command occurrence notification, the single-step instruction being determined by a debug control module according to a debug control command inputted by a user; determining whether the event or command occurrence notification is targeted at an event or a command, and acquiring a first determination result; when the event or command occurrence notification is targeted at the command, parsing a user command to obtain a first command for the event or command occurrence notification, and processing the first command; and when the event or command occurrence notification is targeted at the event, acquiring from the debug proxy module the completed event of the single-step instruction for the event or command occurrence notification, and processing the completed event. The technical solution realizes reverse debug in asynchronous debugging mode.

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 Patents(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