// PeekText is the same as PeekData, except for the text segment. On AMD64
// there is no difference between PeekData and PeekText.
PeekText is the same as PeekData, except for the text segment. On AMD64
there is no difference between PeekData and PeekText.
// PeekText is the same as PeekData except for the text segment . On AMD64 // there is no difference between PeekData and PeekText .
func (t *Tracer) PeekText(addr uintptr, data []byte) (int, error) {
	var nread int
	for nread < len(data) {
		n, err := unix.PtracePeekText(t.pid, addr, data[nread:])
		if n == 0 || err != nil {
			return nread, err
		}
		nread += n
	}
	return nread, nil
}
func ( t * Tracer ) PeekText ( addr uintptr , data [ ] byte ) ( int , error ) { var nread int for nread < len ( data ) { n , err := unix . PtracePeekText ( t . pid , addr , data [ nread : ] ) if n == 0 || err != nil { return nread , err } nread += n } return nread , nil }
PeekText is the same as PeekData, except for the text segment.
PeekText is the same as PeekData except for the text segment .