mirror of
https://github.com/cheat/cheat.git
synced 2024-09-19 18:11:30 +02:00
3786ac96a5
* makefile wip * feat: adds Makefile Adds a `Makefile` for managing build-related tasks. * chore: updates dependencies * chore: updates dependencies * chore: updates bin scripts - Removes `build_release.sh` - Places deprecation notice in `build_devel.sh`, as its purpose has been superceded by the `Makefile`. * chore: updates bin scripts - Removes `build_release.sh` - Places deprecation notice in `build_devel.sh`, as its purpose has been superceded by the `Makefile`. * fix: Makefile Makes several corrections and improvements to the `Makefile`: - Previously, the `ifeq` rules were not behaving as intended, due to false assumptions regarding how `make` fundamentally behaves. Malfunctioning imperative-style programming has been replaced with declarative rules to repair this issue. - Previously, all release executables were zipped after compilation. In order to spare non-Windows users from (possibly) needing to install a package to unzip the executables, all non-Windows binaries are now compressed with `gzip`. (Windows executables are still compressed with `zip`.) - Removes a bit of needlessly verbosity in several rules and paths. * chore: updates dependencies * chore: bumps version to 3.3.1
42 lines
1.2 KiB
Go
42 lines
1.2 KiB
Go
// Code generated by linux/mkall.go generatePtracePair("arm", "arm64"). DO NOT EDIT.
|
|
|
|
// +build linux
|
|
// +build arm arm64
|
|
|
|
package unix
|
|
|
|
import "unsafe"
|
|
|
|
// PtraceRegsArm is the registers used by arm binaries.
|
|
type PtraceRegsArm struct {
|
|
Uregs [18]uint32
|
|
}
|
|
|
|
// PtraceGetRegsArm fetches the registers used by arm binaries.
|
|
func PtraceGetRegsArm(pid int, regsout *PtraceRegsArm) error {
|
|
return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
|
}
|
|
|
|
// PtraceSetRegsArm sets the registers used by arm binaries.
|
|
func PtraceSetRegsArm(pid int, regs *PtraceRegsArm) error {
|
|
return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
|
}
|
|
|
|
// PtraceRegsArm64 is the registers used by arm64 binaries.
|
|
type PtraceRegsArm64 struct {
|
|
Regs [31]uint64
|
|
Sp uint64
|
|
Pc uint64
|
|
Pstate uint64
|
|
}
|
|
|
|
// PtraceGetRegsArm64 fetches the registers used by arm64 binaries.
|
|
func PtraceGetRegsArm64(pid int, regsout *PtraceRegsArm64) error {
|
|
return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
|
}
|
|
|
|
// PtraceSetRegsArm64 sets the registers used by arm64 binaries.
|
|
func PtraceSetRegsArm64(pid int, regs *PtraceRegsArm64) error {
|
|
return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
|
}
|