Improve array evaluation support

* First of a few commits to allow for evaluating arrays of arbitrary
  types
* Adds support for 32 bit integer arrays
This commit is contained in:
Derek Parker
2014-12-28 22:37:18 -06:00
parent 9e8ac82104
commit 623ec5e53d
3 changed files with 16 additions and 17 deletions

View File

@ -30,10 +30,11 @@ func TestVariableEvaluation(t *testing.T) {
{"i8", "1", "int8"},
{"f32", "1.2", "float32"},
{"a6.Baz", "8", "int"},
{"i32", "[2]int32 [1 2]", "[2]int32"},
}
withTestProcess(executablePath, t, func(p *DebuggedProcess) {
pc, _, _ := p.GoSymTable.LineToPC(fp, 29)
pc, _, _ := p.GoSymTable.LineToPC(fp, 30)
_, err := p.Break(uintptr(pc))
assertNoError(err, t, "Break() returned an error")