Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for checkdwarf (0.22 sec)

  1. src/cmd/cgo/internal/testplugin/testdata/checkdwarf/main.go

    // Usage:
    //
    //  checkdwarf <exe> <suffix>
    //
    // Opens <exe>, which must be an executable or a library and checks that
    // there is an entry in .debug_info whose name ends in <suffix>
    
    package main
    
    import (
    	"debug/dwarf"
    	"debug/elf"
    	"debug/macho"
    	"debug/pe"
    	"fmt"
    	"os"
    	"strings"
    )
    
    func usage() {
    	fmt.Fprintf(os.Stderr, "checkdwarf executable-or-library DIE-suffix\n")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testplugin/plugin_test.go

    }
    
    func TestDWARFSections(t *testing.T) {
    	// test that DWARF sections are emitted for plugins and programs importing "plugin"
    	globalSkip(t)
    	goCmd(t, "run", "./checkdwarf/main.go", "plugin2.so", "plugin2.UnexportedNameReuse")
    	goCmd(t, "run", "./checkdwarf/main.go", "./host.exe", "main.main")
    }
    
    func TestBuildID(t *testing.T) {
    	// check that plugin has build ID.
    	globalSkip(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top