func ptraceDef(arch string) (string, error) {
	filename := fmt.Sprintf("ztypes_linux_%s.go", arch)
	data, err := ioutil.ReadFile(filename)
	if err != nil {
		return "", fmt.Errorf("reading %s: %v", filename, err)
	}
	start := bytes.Index(data, []byte("type PtraceRegs struct"))
	if start < 0 {
		return "", fmt.Errorf("%s: no definition of PtraceRegs", filename)
	}
	data = data[start:]
	end := bytes.Index(data, []byte("\n}\n"))
	if end < 0 {
		return "", fmt.Errorf("%s: can't find end of PtraceRegs definition", filename)
	}
	return string(data[:end+2]), nil
}
// ptraceDef returns the definition of PtraceRegs for arch.
ptraceDef returns the definition of PtraceRegs for arch.
// ptraceDef returns the definition of PtraceRegs for arch .
func ptraceDef(arch string) (string, error) {
	filename := fmt.Sprintf("ztypes_linux_%s.go", arch)
	data, err := ioutil.ReadFile(filename)
	if err != nil {
		return "", fmt.Errorf("reading %s: %v", filename, err)
	}
	start := bytes.Index(data, []byte("type PtraceRegs struct"))
	if start < 0 {
		return "", fmt.Errorf("%s: no definition of PtraceRegs", filename)
	}
	data = data[start:]
	end := bytes.Index(data, []byte("\n}\n"))
	if end < 0 {
		return "", fmt.Errorf("%s: can't find end of PtraceRegs definition", filename)
	}
	return string(data[:end+2]), nil
}
func ptraceDef ( arch string ) ( string , error ) { filename := fmt . Sprintf ( " " , arch ) data , err := ioutil . ReadFile ( filename ) if err != nil { return " " , fmt . Errorf ( " " , filename , err ) } start := bytes . Index ( data , [ ] byte ( " " ) ) if start < 0 { return " " , fmt . Errorf ( " " , filename ) } data = data [ start : ] end := bytes . Index ( data , [ ] byte ( " \n \n " ) ) if end < 0 { return " " , fmt . Errorf ( " " , filename ) } return string ( data [ : end + 2 ] ) , nil }
ptraceDef returns the definition of PtraceRegs for arch.
ptraceDef returns the definition of PtraceRegs for arch .