wasm-micro-runtime icon indicating copy to clipboard operation
wasm-micro-runtime copied to clipboard

Calling "step-over" on the last line of the function failed

Open WNsACE opened this issue 1 month ago • 1 comments

Here is the assembly of test code image

When the breakpoint is triggered at "fun [79] return", as shown in the following figure: image

At this point, the runtime is in the following code: image

When the user calls "step-over", the following code will be triggered image

But the value of "step_count" is 1, so the pause signal will not be triggered image

At the same time, the value of "step_count" is 1, so the pause signal will not be triggered. However, "return_func" restores the stack, so only the next section of code can be executed. If the next line of code is a calling function, it will enter the function and cause debugging information errors.

May I ask why "step_count" needs to be equal to 2? And how to resolve the appeal issue?

WNsACE avatar May 27 '24 12:05 WNsACE