Electronic device and method for debugging programs
Abstract
In a method for debugging programs of an electronic device, the method adds an appended block to one or more memory blocks allocated by one or more memory allocation functions of a specified program, so as to obtain one or more appended blocks, stores an identifier of each memory allocation function into a corresponding appended block, and executes a memory leak test to determine one or more unqualified memory allocation functions. The method further searches for one or more identifiers from the appended blocks if the memory leak test fails, and obtains a position of each unqualified memory allocation function in the specified program according to each found identifier if source codes of the specified program are available in a storage device of the electronic device.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method for performing program debugging using an electronic device, the method comprising: adding an appended block to one or more memory blocks of a specified application program using a user-defined function upon a condition that the memory blocks are allocated by one or more memory allocation functions of the specified application program, so as to obtain one or more appended blocks in a memory of the electronic device, wherein the specified application program is a kernel routine program or a driver program in an operating system of the electronic device; storing an
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (15)
Non-Patent Literature (5)
- Corbet, "Detecting kernel memory leaks" Jun. 19, 2006, retrieved from , total pp. 5.
- Corbet, "Detecting kernel memory leaks" Jun. 19, 2006, retrieved from <http://lwn.net/Articles/187979/>, total pp. 5.
- Jeong et al. "KAL: Kernel-assisted Non-invasive Memory Leak Tolerance with a General-purpose Memory Allocator", Softw. Pract. Exper. 2000; 00:1-7, retrieved from <http://csl.skku.edu/papers/spe10.pdf> total pp. 28.
- Jeong et al. "KAL: Kernel-assisted Non-invasive Memory Leak Tolerance with a General-purpose Memory Allocator", Softw. Pract. Exper. 2000; 00:1-7, retrieved from total pp. 28.
- Robert Love, "Kernel Korner-Allocating Memory in the Kernel", Dec. 1, 2003, Retrieved from , total pp. 9.