mirror of
https://github.com/go-delve/delve.git
synced 2025-10-27 20:23:41 +08:00
proc: bugfix: status does not work with programs containing spaces
/proc/pid/stat needs more complex parsing Fixes #239
This commit is contained in:
@ -800,3 +800,13 @@ func TestProcessReceivesSIGCHLD(t *testing.T) {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func TestIssue239(t *testing.T) {
|
||||
withTestProcess("is sue239", t, func(p *Process, fixture protest.Fixture) {
|
||||
pos, _, err := p.goSymTable.LineToPC(fixture.Source, 17)
|
||||
assertNoError(err, t, "LineToPC()")
|
||||
_, err = p.SetBreakpoint(pos)
|
||||
assertNoError(err, t, fmt.Sprintf("SetBreakpoint(%d)", pos))
|
||||
assertNoError(p.Continue(), t, fmt.Sprintf("Continue()"))
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user