Identifying a source file for use in debugging compiled code

US11074154B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11074154-B2
Application numberUS-201816000961-A
CountryUS
Kind codeB2
Filing dateJun 6, 2018
Priority dateJun 6, 2018
Publication dateJul 27, 2021
Grant dateJul 27, 2021

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Method and system are provided for identifying a source file for use in debugging compiled code. The method includes referencing a compiled file for debugging and searching for potential source files of the compiled file from configured repositories. The method obtains the potential source files from the configured repositories and iterates over the obtained potential source files to compile and compare each potential source file to the compiled file. One or more matching source files are identified for use in debugging the compiled file.

First claim

Opening claim text (preview).

What is claimed is: 1. A computer-implemented method for identifying one or more source files for use in debugging compiled code, comprising: receiving a binary file with no corresponding source file available; extracting two or more source files from one or more source repositories; compiling the two or more source files; determining that one or more field signatures or method signatures of at least one of the two or more compiled source files match one or more field signatures or method signatures, respectively, of the binary file; responsive to the determining, identifying that a plurality of bytecodes of the at least one of the two or more compiled source files match a plurality of bytecodes of the binary file; and responsive to the identifying, determining that the at least one of the two or more source files as corresponding with the binary file. 2. The method as claimed in claim 1 , further comprising: configuring the one or more source repositories, wherein the one or more source repositories contain the two or more source files. 3. The method as claimed in claim 1 , comprising: responsive to identifying a plurality of source files as corresponding with the binary file, selecting a most recent source file from the plurality of source files. 4. The method as claimed in claim 1 , comprising: responsive to identifying a plurality of source files as corresponding with the binary file, selecting one of the plurality of source files based on an originating location of the plurality of source files. 5. The method as claimed in claim 1 , wherein if no source file is identified as corresponding with the binary file, decompiling the binary file and using a decompiled output in debugging the binary file. 6. The method as claimed in claim 1 , wherein the method is carried out at a point a debugging tool needs to step through the binary file with no source file available. 7. The method as claimed in claim 1 , wherein the method is carried out at server start or on a background thread prior to a debugging tool requiring a source file. 8. A system for identifying one or more source files for use in debugging compiled code, comprising: one or more processors, one or more computer-readable memories, one or more computer readable tangible storage media, and program instructions stored on at least one of the one or more tangible storage media for execution by at least one of the one or more processors via at least one of the one or more memories, wherein the system is capable of performing a method comprising: receiving a binary file with no corresponding source file available; extracting two or more source files from one or more source repositories; compiling the two or more source files; determining that one or more field signatures or method signatures of at least one of the two or more compiled source files match one or more field signatures or method signatures, respectively, of the binary file; responsive to the determining, identifying that a plurality of bytecodes of the at least one of the two or more compiled source files match a plurality of bytecodes of the binary file; and responsive to the identifying, determining that the at least one of the two or more source files as corresponding with the binary file. 9. The system as claimed in claim 8 , further comprising: configuring the one or more source repositories, wherein the one or more source repositories contain the two or more source files. 10. The system as claimed in claim 8 , comprising: responsive to identifying a plurality of source files as corresponding with the binary file, selecting a most recent source file from the plurality of source files. 11. The system as claimed in claim 8 , comprising: responsive to identifying a plurality of source files as corresponding with the binary file, selecting one of the plurality of source files based on an originating location of the plurality of source files. 12. The system as claimed in claim 8 , wherein if no source file is identified as corresponding with the binary file, decompiling the binary file and using a decompiled output in debugging the binary file. 13. The system as claimed in claim 8 , wherein the system is provided as part of an integrated development environment including a debugging tool. 14. The system as claimed in claim 13 , wherein the system is activated at a point the debugging tool needs to step through the binary file with no source file available. 15. The system as claimed in claim 8 , wherein the system is activated at a server start or on a background thread prior to a debugging tool requiring a source file. 16. A computer program product for identifying one or more source files for use in debugging compiled code, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to perform a method comprising: receiving a binary file with no corresponding source file available; extracting two or more source files from one or more source repositories; compiling the two or more source files; determining that one or more field signatures or method signatures of at least one of the two or more compiled source files match one or more field signatures or method signatures, respectively, of the binary file; responsive to the determining, identifying that a plurality of bytecodes of the at least one of the two or more compiled source files match a plurality of bytecodes of the binary file; and responsive to the identifying, determining that the at least one of the two or more source files as corresponding with the binary file.

Assignees

Inventors

Classifications

  • Environments for analysis, debugging or testing of software · CPC title

  • Version control (security arrangements therefor G06F21/57); Configuration management · CPC title

  • Compilation · CPC title

  • by performing operations on the source code, e.g. via a compiler · CPC title

  • G06F8/75Primary

    Structural analysis for program understanding · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11074154B2 cover?
Method and system are provided for identifying a source file for use in debugging compiled code. The method includes referencing a compiled file for debugging and searching for potential source files of the compiled file from configured repositories. The method obtains the potential source files from the configured repositories and iterates over the obtained potential source files to compile an…
Who is the assignee on this patent?
IBM
What technology area does this patent fall under?
Primary CPC classification G06F11/3624. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Jul 27 2021 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 4 related publications on this page (citations in our corpus or others sharing the same primary CPC).