Step over operation for machine code function calls
First Claim
1. A computer-implemented method for implementing a step over command by a debugger for a machine code instruction in a routine, comprising:
- receiving a step over command for a machine code instruction;
determining whether the machine code instruction is a branch used for a function call;
in response to determining that the machine code instruction is not a branch used for a function call, setting a first breakpoint at a next machine code instruction in the routine and setting a second breakpoint at a target machine code instruction of the branch;
in response to determining that the machine code instruction is a branch used for a function call, determining whether the machine code instruction is generated from source code;
in response to determining that the machine code instruction is a branch used for a function call and is not generated from source code, setting the first breakpoint at a next machine code instruction in the routine and setting a second breakpoint at a target machine code instruction of the branch; and
in response to determining that the machine code instruction is a branch used for a function call and is generated from source code, setting the first breakpoint at the next machine code instruction of the routine.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for implementing a step over operation by a debugger for an instruction in a routine includes receiving a step over command for an instruction and determining whether the instruction is a branch used for a function call. If the instruction is not a branch used for a function call, then the debugger treats the instruction as not a function call. If the instruction is a branch used for a function call, then the debugger determines whether the instruction is generated from source code. If the instruction is not generated from source code, then the debugger treats the instruction as not a function call. If the instruction is generated from source code, then the debugger treats the instruction as a function call.
-
Citations
8 Claims
-
1. A computer-implemented method for implementing a step over command by a debugger for a machine code instruction in a routine, comprising:
-
receiving a step over command for a machine code instruction; determining whether the machine code instruction is a branch used for a function call; in response to determining that the machine code instruction is not a branch used for a function call, setting a first breakpoint at a next machine code instruction in the routine and setting a second breakpoint at a target machine code instruction of the branch; in response to determining that the machine code instruction is a branch used for a function call, determining whether the machine code instruction is generated from source code; in response to determining that the machine code instruction is a branch used for a function call and is not generated from source code, setting the first breakpoint at a next machine code instruction in the routine and setting a second breakpoint at a target machine code instruction of the branch; and in response to determining that the machine code instruction is a branch used for a function call and is generated from source code, setting the first breakpoint at the next machine code instruction of the routine. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
Specification