From fdda6c5706413467db43b1e4674c399918379c35 Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Tue, 27 May 2014 07:46:43 -0500 Subject: [PATCH] Prefer PCToLine --- proctl/proctl_linux_amd64.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/proctl/proctl_linux_amd64.go b/proctl/proctl_linux_amd64.go index 0819c16a..65dfe130 100644 --- a/proctl/proctl_linux_amd64.go +++ b/proctl/proctl_linux_amd64.go @@ -131,9 +131,8 @@ func (dbp *DebuggedProcess) Step() error { return err } - f := dbp.GoSymTable.PCToFunc(regs.PC()) - l := f.LineTable.PCToLine(regs.PC()) - fmt.Printf("Stopped at: %s:%d\n", f.Name, l) + f, l, fn := dbp.GoSymTable.PCToLine(regs.PC()) + fmt.Printf("Stopped at: %s %s:%d\n", fn.Name, f, l) return nil } -- GitLab