Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ExecutableHasDWARF (0.2 sec)

  1. src/internal/platform/supported.go

    			// see https://go.dev/cl/416174.
    			return false
    		}
    		return true
    	case "darwin":
    		return true
    	}
    	return false
    }
    
    // ExecutableHasDWARF reports whether the linked executable includes DWARF
    // symbols on goos/goarch.
    func ExecutableHasDWARF(goos, goarch string) bool {
    	switch goos {
    	case "plan9", "ios":
    		return false
    	}
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:50:22 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/stmtlines_test.go

    }
    
    func must(err error) {
    	if err != nil {
    		panic(err)
    	}
    }
    
    type Line struct {
    	File string
    	Line int
    }
    
    func TestStmtLines(t *testing.T) {
    	if !platform.ExecutableHasDWARF(runtime.GOOS, runtime.GOARCH) {
    		t.Skipf("skipping on %s/%s: no DWARF symbol table in executables", runtime.GOOS, runtime.GOARCH)
    	}
    
    	if runtime.GOOS == "aix" {
    		extld := os.Getenv("CC")
    		if extld == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 17:05:14 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  3. src/cmd/link/dwarf_test.go

    		os.Exit(1)
    	}
    	os.Exit(0)
    }
    
    func testDWARF(t *testing.T, buildmode string, expectDWARF bool, env ...string) {
    	testenv.MustHaveCGO(t)
    	testenv.MustHaveGoBuild(t)
    
    	if !platform.ExecutableHasDWARF(runtime.GOOS, runtime.GOARCH) {
    		t.Skipf("skipping on %s/%s: no DWARF symbol table in executables", runtime.GOOS, runtime.GOARCH)
    	}
    
    	t.Parallel()
    
    	for _, prog := range []string{"testprog", "testprogcgo"} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 17:05:14 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/dwarf_test.go

    	"testing"
    
    	intdwarf "cmd/internal/dwarf"
    	objfilepkg "cmd/internal/objfile" // renamed to avoid conflict with objfile function
    	"cmd/link/internal/dwtest"
    )
    
    func mustHaveDWARF(t testing.TB) {
    	if !platform.ExecutableHasDWARF(runtime.GOOS, runtime.GOARCH) {
    		t.Helper()
    		t.Skipf("skipping on %s/%s: no DWARF symbol table in executables", runtime.GOOS, runtime.GOARCH)
    	}
    }
    
    const (
    	DefaultOpt = "-gcflags="
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 01:38:11 UTC 2024
    - 48.6K bytes
    - Viewed (0)
Back to top