From ae1076ec3952c3f95a1de3f4908ca60c02ebb734 Mon Sep 17 00:00:00 2001 From: Marko Bencun Date: Sun, 19 Jul 2015 02:06:37 +0200 Subject: [PATCH] Put '> ' in front of the location marker. This makes parsing by external tools much easier. It is consistent with pdb. --- terminal/command.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminal/command.go b/terminal/command.go index ae88a774..19c13655 100644 --- a/terminal/command.go +++ b/terminal/command.go @@ -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 {