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

Debugging method for dynamic binary translation

A technology of dynamic binary and debugging methods, applied in the field of binary translation, can solve problems such as inability to debug programs, and achieve the effects of saving debugging time, powerful functions, and improving speed

Inactive Publication Date: 2008-08-13
SHANGHAI JIAO TONG UNIV
View PDF0 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005]The general execution process of the dynamic binary translator: the executed binary program is translated into local code by the binary translator in units of code blocks, and the translated native code is Stored in the code cache, the next time it is executed, it will directly obtain the translated local code from the code cache for execution. The local code corresponding to the binary code to be run is dynamically generated, and its address is also allocated at runtime , which makes existing debuggers that debug statically generated code unable to debug programs running on dynamic binary translation platforms

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] In order to better understand the technical solution of the present invention, the following specific examples are used for further description. The following examples are not intended to limit the present invention.

[0020] Common debugger framework in dynamic binary translator generally has basic functions such as breakpoint, single step, check register and memory value, and the present invention has realized fallback execution in the debugger of dynamic binary translator, observation point and debugging script Function.

[0021] 1. Suspend source machine program execution through breakpoints

[0022] Setting breakpoints is one of the basic functions of a debugger. In traditional debuggers, breakpoints can be divided into two categories: "hardware" breakpoints and "software" breakpoints. The realization of "hardware" breakpoints requires a special processor. Support, its disadvantage is that the number of breakpoints is limited, and it depends too much on the compu...

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 present invention provides a debug method for active binary translation, providing a debug method for active binary translation. The invention improves the basic function such as breakpoint, single step of general debugger, making it more proper for debug of active binary translation; The improved viewport function of the invention can monitor inrernal access and read-write, having a complex method and strong function contrast to the method of the traditional debugger viewport, observing the inner activity when is executed, finding problem when the program goes wrong, locating the faults in the program; the invention introduces new function of retroversion execution to the debugger, providing a binary inaccurating retroversion execution algorithm, capable of retroversion execution arbitrary binary code in the binary translation plane, saving the debug time of the longer executing time program, great enhancing the speed of alignment error of programmer, it is a powerful tool of alignment error of developer.

Description

technical field [0001] The invention relates to a debugging method for dynamic binary translation, which is used for debugging dynamically translated codes in a dynamic binary translator. The invention belongs to the technical field of binary translation. Background technique [0002] Dynamic binary translation is the most widely used method in virtual machine technology. It is an effective means to solve legacy code and improve the adaptability of software platforms. It can dynamically translate The binary program on the source machine platform is converted to run on other target machine platforms. Provide a debugger for the dynamic binary translation platform. On the one hand, it can be used to debug the program running on it, which is helpful for the development of the program, especially when the platform is used to simulate an actual machine to develop a system program such as an operating system. The development of the operating system has a greater role in promoting...

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): G06F9/45
Inventor 管海兵梁阿磊郑举育
Owner SHANGHAI JIAO TONG UNIV
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