提交 ae6a5f50 编写于 作者: A aarzilli

cmd/dlv/main: trace subcommand shows duplicate entries

The tracepoint should be set on the function's first line, not the
function's entry point to avoid function prologue weirdness.

Fixes #389
上级 975a114c
......@@ -193,7 +193,7 @@ starts and attaches to it, and enables you to immediately begin debugging your p
return 1
}
for i := range funcs {
_, err := client.CreateBreakpoint(&api.Breakpoint{FunctionName: funcs[i], Tracepoint: true})
_, err := client.CreateBreakpoint(&api.Breakpoint{FunctionName: funcs[i], Line: -1, Tracepoint: true})
if err != nil {
fmt.Fprintln(os.Stderr, err)
return 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册