[debugger] Fix test ShouldCorrectlyStepOverOnExitFromArgsAfterStepInMethodParameter...
commit0b6eff6ed4d50393b50af47b0424c82212b65933
authorThays Grazia <thaystg@gmail.com>
Tue, 8 Jan 2019 11:47:04 +0000 (8 09:47 -0200)
committerGitHub <noreply@github.com>
Tue, 8 Jan 2019 11:47:04 +0000 (8 09:47 -0200)
tree2dac025636d1fefd7d2161adb121fa81fc512e32
parentb9e209fc9376f823707b674ea0a734a54b7a7fb4
[debugger] Fix test ShouldCorrectlyStepOverOnExitFromArgsAfterStepInMethodParameter (#12114)

The problem was in this line:
ss_nested_with_two_args(ss_nested_arg (), ss_nested_arg ());
The first step_into works correctly entering in the ss_nested_arg method, but the second one doesn't work.
The problem was because this flag MONO_SEQ_POINT_FLAG_NONEMPTY_STACK was set, so the debugger don't consider that it was a possible break.
The solution of the issue was create another flag to identify nested calls and ignore the  MONO_SEQ_POINT_FLAG_NONEMPTY_STACK.
2 new tests were added to test other nested calls.
#Fixes 7326
mcs/class/Mono.Debugger.Soft/Test/dtest-app.cs
mcs/class/Mono.Debugger.Soft/Test/dtest.cs
mono/metadata/seq-points-data.h
mono/mini/debugger-engine.c
mono/mini/interp/transform.c
mono/mini/method-to-ir.c
mono/mini/mini.h
mono/mini/seq-points.c