
When there is a function that is inlined at the current program counter. If you get the current `line_entry` using the program counter's address it will point to the location of the inline function that may be in another file. (this is in implicit step-in and should not happen what step over is called). Use the current frame to get the `line_entry`
21 lines
393 B
C++
21 lines
393 B
C++
#include "other.h"
|
|
|
|
int function(int x) {
|
|
if ((x % 2) == 0)
|
|
return function(x - 1) + x; // breakpoint 1
|
|
else
|
|
return x;
|
|
}
|
|
|
|
int function2() {
|
|
int volatile value = 3; // breakpoint 2
|
|
inlined_fn(); // position_after_step_over
|
|
|
|
return value;
|
|
}
|
|
|
|
int main(int argc, char const *argv[]) {
|
|
int func_result = function2();
|
|
return function(2) - func_result; // returns 0
|
|
}
|