fix(debug): cross-compile for arm64, riscv64 and loong64
Assisted-by: GLM 5.3 Flash
This commit is contained in:
@@ -145,7 +145,7 @@ func (s *Session) getHWBreakState() (*hwBreakState, error) {
|
||||
var state hwBreakState
|
||||
iovec := syscall.Iovec{
|
||||
Base: (*byte)(unsafe.Pointer(&state)),
|
||||
Len: uint32(unsafe.Sizeof(state)),
|
||||
Len: uint64(unsafe.Sizeof(state)),
|
||||
}
|
||||
_, _, errno := syscall.Syscall6(
|
||||
syscall.SYS_PTRACE,
|
||||
@@ -164,7 +164,7 @@ func (s *Session) getHWBreakState() (*hwBreakState, error) {
|
||||
func (s *Session) setHWBreakState(state *hwBreakState) error {
|
||||
iovec := syscall.Iovec{
|
||||
Base: (*byte)(unsafe.Pointer(state)),
|
||||
Len: uint32(unsafe.Sizeof(*state)),
|
||||
Len: uint64(unsafe.Sizeof(*state)),
|
||||
}
|
||||
_, _, errno := syscall.Syscall6(
|
||||
syscall.SYS_PTRACE,
|
||||
|
||||
Reference in New Issue
Block a user