Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Method for debugging binary application program based on dynamic inverse compiling technique

A technology of application program and debugging method, applied in the direction of program control design, software testing/debugging, instruments, etc., can solve problems such as debugging of unapplied programs, and achieve the effect of improving efficiency

Active Publication Date: 2009-04-22
INSIGMA TECHNOLOGY CO LTD
View PDF0 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, as mentioned earlier, static decompilation technology has its limitations, and because of this limitation, such technology is not used in program debugging

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
  • Method for debugging binary application program based on dynamic inverse compiling technique
  • Method for debugging binary application program based on dynamic inverse compiling technique

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments:

[0019] In a Linux operating system, support is provided for the ptrace system call. In this system, the / proc / pid / exe file is a link to the executable file of the process whose process number is pid, and the / proc / pid / maps file records that when the process whose process number is pid is executed, the operating system The filename mapped in memory and the virtual address mapped in memory. The program name of the program being debugged is assumed to be debuggedproc, and the program name of the debugger is assumed to be debugger.

[0020] 1) The user starts the debugger. The user can specify the file path of the debuggedproc, and let the debugger start a new process for debugging. At this time, the debugger records the process number pid...

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 invention relates to a debug method of a binary application program based on a dynamic decompiling technology. Debug staff starts the application program by a debugger or assigns a process number of a process to be debugged, if the debugged program is started by the debugger, the debugger records a process number of a sub-process; when the program is executed to a breakpoint, an operating system suspends the debugged program, and the debugger obtains a command; an instruction of the debugged program is obtained by a system call or application programming interface (API) which is provided by the operating system, the instruction is decompiled by the dynamic decompiling technology, and the obtained C language code is displayed to the debug staff. The debug method has the advantages of being capable of facilitating the debug staff to debug the binary application program without reading complicated assembly codes, and effectively enhancing efficiency of debugging programs.

Description

technical field [0001] The invention relates to a computer program debugging technology, and mainly relates to a binary application program debugging method based on a dynamic decompilation technology. Background technique [0002] The debugger is a technology that has appeared for a long time, but the existing debuggers often need to obtain the source code of the program. In the absence of program source code, most debuggers can only display the disassembled assembly code. For debuggers, the efficiency of debugging work will be relatively low. Some debugging tools based on higher-level languages ​​(such as Java) can also display the corresponding source code by using static decompilation tools (such as Jad). However, existing static decompilation tools are not perfect enough to support programs written in relatively low-level programming languages, such as C or C++. In fact, to statically distinguish the data and code in the program is an undecidable problem similar to th...

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/45
Inventor 卜家俊陈华金涛费海林张毅超盛其彬罗琰蔡晖
Owner INSIGMA TECHNOLOGY 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
Eureka Blog
Learn More
PatSnap group products