Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsaezm committed Oct 13, 2022
1 parent aade38c commit a292468
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/proc/native/support_sentinel_linux.go
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions pkg/proc/ppc64le_arch.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package proc

import (
"encoding/binary"
"fmt"
"strings"

"github.com/go-delve/delve/pkg/dwarf/frame"
Expand Down Expand Up @@ -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
}
Expand Down
1 change: 1 addition & 0 deletions pkg/proc/proc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit a292468

Please sign in to comment.