bugfix: Issue #170 (partial) set function breakpoints on the first instruction

the entry point of a function is the beginning of the prologue, which can be run multiple times for each invocation of a function if the stack needs to be expanded or the scheduler needs to be run.
This commit is contained in:
aarzilli
2015-07-10 17:16:03 +02:00
committed by Derek Parker
parent a353735715
commit a0115e3a15
3 changed files with 25 additions and 8 deletions

View File

@ -278,7 +278,6 @@ func testnext(program string, testcases []nextTest, initialLocation string, t *t
func TestNextGeneral(t *testing.T) {
testcases := []nextTest{
{17, 19},
{19, 20},
{20, 23},
{23, 24},
@ -299,7 +298,6 @@ func TestNextGeneral(t *testing.T) {
func TestNextGoroutine(t *testing.T) {
testcases := []nextTest{
{46, 47},
{47, 42},
}
testnext("testnextprog", testcases, "main.testgoroutine", t)
@ -307,7 +305,6 @@ func TestNextGoroutine(t *testing.T) {
func TestNextFunctionReturn(t *testing.T) {
testcases := []nextTest{
{13, 14},
{14, 35},
}
testnext("testnextprog", testcases, "main.helloworld", t)