Method for reconstructing debugging information for a decompiled executable file
First Claim
1. A decompiler for decompiling target executable code into target source code with debugging information, wherein executable code comprises a plurality of instructions for a particular computing environment and source code comprises a plurality of instructions in a form readable by programmers, and wherein the target executable code is a result of compiling initial source code, the decompiler comprising:
- source generation means for generating one or more source statements of the target source code from one or more instructions of the target executable code, wherein the one or more source statements are such that a compiler for the particular computing environment would compile the one or more source statements into the one or more instructions of the target executable code, or functionally equivalent instructions which are functionally equivalent to the one or more instructions of the target executable code, wherein the source generation means includes hooks for incorporating additional functionality at a plurality of hook points in the source generation means; and
means for generating debugging information independent of the initial source code, the debugging information being information about source code that would correspond to the target executable code, wherein the means for generating debugging information comprises additional functionality hooked at the plurality of hook points to generate the debugging information in response to the decompiler processing through each of the plurality of hook pints.
1 Assignment
0 Petitions
Accused Products
Abstract
A debugging system according to the present invention includes a decompiler that provides information to a table generator, which generates a line number map and a symbol table, each of which corresponds to an executable file being decompiled. In a specific embodiment, hooks into specific operations performed by the decompiler trigger the table generator operation. A debugging information program can be hooked into a decompiler to generate the debugging information and modify the source code output by the decompiler. For example, the program can be hooked into the decompiler to monitor when the decompiler inserts or deletes source statements, generates line numbers for source lines, or assigns variable names to variables encountered in the executable code.
134 Citations
10 Claims
-
1. A decompiler for decompiling target executable code into target source code with debugging information, wherein executable code comprises a plurality of instructions for a particular computing environment and source code comprises a plurality of instructions in a form readable by programmers, and wherein the target executable code is a result of compiling initial source code, the decompiler comprising:
-
source generation means for generating one or more source statements of the target source code from one or more instructions of the target executable code, wherein the one or more source statements are such that a compiler for the particular computing environment would compile the one or more source statements into the one or more instructions of the target executable code, or functionally equivalent instructions which are functionally equivalent to the one or more instructions of the target executable code, wherein the source generation means includes hooks for incorporating additional functionality at a plurality of hook points in the source generation means; and means for generating debugging information independent of the initial source code, the debugging information being information about source code that would correspond to the target executable code, wherein the means for generating debugging information comprises additional functionality hooked at the plurality of hook points to generate the debugging information in response to the decompiler processing through each of the plurality of hook pints. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
Specification