Invention Grant
- Patent Title: Electronic device and method for debugging programs
- Patent Title (中): 用于调试程序的电子设备和方法
-
Application No.: US13286086Application Date: 2011-10-31
-
Publication No.: US08370815B2Publication Date: 2013-02-05
- Inventor: Xiao-Mei Liu , Guang-Jian Wang , Jin-Rong Zhao
- Applicant: Xiao-Mei Liu , Guang-Jian Wang , Jin-Rong Zhao
- Applicant Address: CN Shenzhen TW New Taipei
- Assignee: Hong Fu Jin Precision Industry (ShenZhen) Co., Ltd.,Hon Hai Precision Industry Co., Ltd.
- Current Assignee: Hong Fu Jin Precision Industry (ShenZhen) Co., Ltd.,Hon Hai Precision Industry Co., Ltd.
- Current Assignee Address: CN Shenzhen TW New Taipei
- Agency: Altis Law Group, Inc.
- Priority: CN201110092111 20110413
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F11/00

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.
Public/Granted literature
- US20120266028A1 ELECTRONIC DEVICE AND METHOD FOR DEBUGGING PROGRAMS Public/Granted day:2012-10-18
Information query