Put '> ' in front of the location marker.

This makes parsing by external tools much easier.
It is consistent with pdb.
This commit is contained in:
Marko Bencun 2015-07-19 02:06:37 +02:00 committed by Derek Parker
parent 8faeaecb97
commit ae1076ec39

@ -546,9 +546,9 @@ func printcontext(state *api.DebuggerState) error {
for _, arg := range state.CurrentThread.Function.Args {
args = append(args, arg.Value)
}
fmt.Printf("%s(%s) %s:%d\n", fn.Name, strings.Join(args, ", "), state.CurrentThread.File, state.CurrentThread.Line)
fmt.Printf("> %s(%s) %s:%d\n", fn.Name, strings.Join(args, ", "), state.CurrentThread.File, state.CurrentThread.Line)
} else {
fmt.Printf("%s() %s:%d\n", fn.Name, state.CurrentThread.File, state.CurrentThread.Line)
fmt.Printf("> %s() %s:%d\n", fn.Name, state.CurrentThread.File, state.CurrentThread.Line)
}
if state.BreakpointInfo != nil {