Method and system for debugging a program in a multi-thread environment
Abstract
A method and system for debugging a program in multithread environment which interrupts the running of a debuggee program begins by replacing the instruction at the position at which a breakpoint for debugging is desired to be set with a breakpoint instruction. When the breakpoint instruction is replaced back with the instruction at the position at which the breakpoint for debugging is set, an instruction is set in front of the breakpoint for debugging as a fence breakpoint; and when the instruction at the position at which the breakpoint for debugging is set, is replaced again with the breakpoint instruction. On completion, the fence breakpoint is replaced with the original instruction of the debuggee program at that position.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 10.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for debugging a program in a multithread environment, comprising: replacing an instruction at a first position at which a breakpoint for debugging is desired with a breakpoint instruction that interrupts the running of a debuggee program; before debugging, setting an instruction in front of the breakpoint instruction for debugging as a fence breakpoint and locating the position of the instruction set as a fence breakpoint; debugging at least one instruction of the debuggee program; and replacing the fence breakpoint with an original instruction of the debuggee program at the position
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (10 of 10 total)
References Cited — Backward Prior Art (15)
Non-Patent Literature (4)
- "Debugging Multithread Application", www.netbeans.org/issues/show-bug.cgi?id=40901, NetBeans, Issue 40901, Mar. 10, 2004.
- Debugging multithread application, Zikmund, 10, Mar. 2004.
- Debugging tools and techniques for Linux on Power, Sze et al., Aug. 4, 2005.
- Ramsey, Norman "Correctness of Trap-Based Breakpoint Implementations" Bell Communications Research, ACM 0-89791-636, 1994.