Support 32 bit floats

This commit is contained in:
Derek Parker
2014-10-26 12:44:26 -05:00
parent 6af32b40e6
commit f1ceba0909
3 changed files with 19 additions and 8 deletions

View File

@ -31,10 +31,11 @@ func TestVariableEvaluation(t *testing.T) {
{"baz", "bazburzum", "struct string"},
{"neg", "-1", "int"},
{"i8", "1", "int8"},
{"f32", "1.2", "float32"},
}
helper.WithTestProcess(executablePath, t, func(p *proctl.DebuggedProcess) {
pc, _, _ := p.GoSymTable.LineToPC(fp, 23)
pc, _, _ := p.GoSymTable.LineToPC(fp, 24)
_, err := p.Break(uintptr(pc))
assertNoError(err, t, "Break() returned an error")