mirror of
https://github.com/go-delve/delve.git
synced 2025-10-30 02:07:58 +08:00
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:
@ -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")
|
||||
|
||||
Reference in New Issue
Block a user