Patent ID: 8555256
Filing Date: 2013-10-08
Classification: G06F

Abstract:
1. A processor-implemented pass-by breakpoint setting and debugging method, comprising: receiving a breakpoint setting command; determining an instruction at a breakpoint in a source program code according to the breakpoint setting command; if one of the instruction at the breakpoint and an instruction directly prior to the instruction at the breakpoint is a relative jump instruction, setting an instruction duplicate for the relative jump instruction and an instruction next to the relative jump instruction, and setting the instruction at the breakpoint in the source program code as a first abnormal instruction, wherein setting an instruction duplicate comprises: storing the relative jump instruction and the instruction next to the relative jump instruction in the instruction duplicate, a jump relative offset of the relative jump instruction in the instruction duplicate being set according to a storage position of an absolute jump instruction in the instruction duplicate, a jump absolute offset of the absolute jump instruction being an original jump relative offset of the relative jump instruction, setting a second valid instruction next to the relative jump instruction in the instruction duplicate as a second abnormal instruction, and setting an instruction next to the absolute jump instruction as an invalid instruction; and determining an abnormal instruction that causes a breakpoint abnormality, and obtaining and outputting a site information of the breakpoint abnormality.