Invention Grant
US07996722B2 Method for debugging a hang condition in a process without affecting the process state
失效
调试进程中的挂起状态而不影响进程状态的方法
- Patent Title: Method for debugging a hang condition in a process without affecting the process state
- Patent Title (中): 调试进程中的挂起状态而不影响进程状态的方法
-
Application No.: US12348079Application Date: 2009-01-02
-
Publication No.: US07996722B2Publication Date: 2011-08-09
- Inventor: Dean Joseph Burdick , Basu Vaidyanathan
- Applicant: Dean Joseph Burdick , Basu Vaidyanathan
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Yee & Associates, P.C.
- Agent Jill A. Poimboeuf
- Main IPC: G06F11/00
- IPC: G06F11/00

Abstract:
Embodiments of the invention are associated with an application process that comprises multiple threads, wherein threads of the process are disposes to run on a data processing system, and each thread can have a user mode or a kernel mode machine state, or both, selectively, when it is running. An embodiment directed to a method comprises the steps of allocating a specified memory location for each of the threads, and responsive to a given thread entering a sleep state, selectively saving the kernel mode machine state of the given thread in the specified memory location for the given thread. The saved machine state comprises the state of the given thread immediately prior to the given thread entering the sleep state. In response to detecting a hang condition in the operation of the process, a debugger is attached to the process to access at least one of the saved user mode machine states. The method further includes analyzing information provided by the at least one accessed machine state to determine the cause of the hang condition, and restoring the original state upon detachment, so the debugger attachment is completely transparent to the target process.
Public/Granted literature
- US20100174946A1 Method for Debugging a Hang Condition in a Process Without Affecting the Process State Public/Granted day:2010-07-08
Information query