From a2924686b8dc50508b2c550f6168b63d825bee50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20S=C3=A1ez?= Date: Wed, 21 Sep 2022 17:11:48 +0200 Subject: [PATCH] WIP --- pkg/proc/native/support_sentinel_linux.go | 4 ++-- pkg/proc/ppc64le_arch.go | 2 ++ pkg/proc/proc_test.go | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/proc/native/support_sentinel_linux.go b/pkg/proc/native/support_sentinel_linux.go index 1325f09cc4..10c8bb16c6 100644 --- a/pkg/proc/native/support_sentinel_linux.go +++ b/pkg/proc/native/support_sentinel_linux.go @@ -1,6 +1,6 @@ // This file is used to detect build on unsupported GOOS/GOARCH combinations. -//go:build linux && !amd64 && !arm64 && !386 -// +build linux,!amd64,!arm64,!386 +//go:build linux && !amd64 && !arm64 && !386 && !ppc64le +// +build linux,!amd64,!arm64,!386,!ppc64le package your_linux_architecture_is_not_supported_by_delve diff --git a/pkg/proc/ppc64le_arch.go b/pkg/proc/ppc64le_arch.go index 351e078f5a..531c983dff 100644 --- a/pkg/proc/ppc64le_arch.go +++ b/pkg/proc/ppc64le_arch.go @@ -2,6 +2,7 @@ package proc import ( "encoding/binary" + "fmt" "strings" "github.com/go-delve/delve/pkg/dwarf/frame" @@ -191,6 +192,7 @@ func ppc64leSwitchStack(it *stackIterator, callFrameRegs *op.DwarfRegisters) boo // ppc64leRegSize returns the size (in bytes) of register regnum. func ppc64leRegSize(rn uint64) int { // FIXME(alexsaezm) Fix this, this is clearly not correct + fmt.Println("Here") if rn == regnum.PPC64LE_PC { return 8 } diff --git a/pkg/proc/proc_test.go b/pkg/proc/proc_test.go index 21d241e4ee..000ebd69fc 100644 --- a/pkg/proc/proc_test.go +++ b/pkg/proc/proc_test.go @@ -890,6 +890,7 @@ func TestStacktrace(t *testing.T) { locations, err := proc.ThreadStacktrace(p.CurrentThread(), 40) assertNoError(err, t, "Stacktrace()") + fmt.Println("Locations:", locations) if len(locations) != len(stacks[i])+2 { t.Fatalf("Wrong stack trace size %d %d\n", len(locations), len(stacks[i])+2) }