mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 05:09:43 +00:00
Add xmm registers for the FreeBSD debugger ##debug
Some checks are pending
build / linux-wasi (push) Waiting to run
build / linux-wasi-api (push) Waiting to run
build / linux-csnext (push) Waiting to run
build / tarball (push) Waiting to run
build / linux-static (push) Waiting to run
build / linux-acr-rpm-64 (push) Waiting to run
build / linux-acr-deb (amd64) (push) Waiting to run
build / linux-acr-deb (arm64, aarch64-linux-gnu) (push) Waiting to run
build / linux-acr-deb (i386, multilib) (push) Waiting to run
build / macos-acr (arm64, 13) (push) Waiting to run
build / macos-acr (x86_64, 12) (push) Waiting to run
build / ios (cydia32) (push) Waiting to run
build / ios (true, cydia) (push) Waiting to run
build / android-acr (16, arm) (push) Waiting to run
build / android-acr (aarch64) (push) Waiting to run
build / android-meson (x86_64) (push) Waiting to run
build / w32-meson (push) Waiting to run
build / w64-static-2022 (push) Waiting to run
build / w64-static (push) Waiting to run
build / w64-meson (push) Waiting to run
build / check_abi_compatibility (push) Blocked by required conditions
build / check_release (push) Blocked by required conditions
build / release (push) Blocked by required conditions
CI / linux-acr-oldlibsbug (push) Waiting to run
CI / linux-nocs (push) Waiting to run
CI / linux-acr-gperf (push) Waiting to run
CI / linux-sys-capstone (push) Waiting to run
CI / linux-acr-resymlink (push) Waiting to run
CI / linux-test (push) Waiting to run
CI / linux-static-meson (push) Waiting to run
CI / macos-test (push) Waiting to run
CI / linux-rpath (push) Waiting to run
CI / macos-rpath (push) Waiting to run
CI / linux-meson-spaces (push) Waiting to run
CI / linux-tinyasan-fuzz (push) Waiting to run
CI / linux-asan-fuzz (push) Waiting to run
CI / w64-make (push) Waiting to run
CI / w32-mingw (push) Waiting to run
CI / w64-mingw (push) Waiting to run
Code scanning - action / CodeQL-Build (push) Waiting to run
Coverity Scan / latest (push) Waiting to run
tcc / ubuntu-tcc-newabi (push) Waiting to run
tcc / ubuntu-tcc-test (push) Waiting to run
tcc / ubuntu-tcc-nodbg (push) Waiting to run
tcc / r2pm-tcc (push) Waiting to run
tcc / ubuntu-tcc-syslibs (push) Waiting to run
Some checks are pending
build / linux-wasi (push) Waiting to run
build / linux-wasi-api (push) Waiting to run
build / linux-csnext (push) Waiting to run
build / tarball (push) Waiting to run
build / linux-static (push) Waiting to run
build / linux-acr-rpm-64 (push) Waiting to run
build / linux-acr-deb (amd64) (push) Waiting to run
build / linux-acr-deb (arm64, aarch64-linux-gnu) (push) Waiting to run
build / linux-acr-deb (i386, multilib) (push) Waiting to run
build / macos-acr (arm64, 13) (push) Waiting to run
build / macos-acr (x86_64, 12) (push) Waiting to run
build / ios (cydia32) (push) Waiting to run
build / ios (true, cydia) (push) Waiting to run
build / android-acr (16, arm) (push) Waiting to run
build / android-acr (aarch64) (push) Waiting to run
build / android-meson (x86_64) (push) Waiting to run
build / w32-meson (push) Waiting to run
build / w64-static-2022 (push) Waiting to run
build / w64-static (push) Waiting to run
build / w64-meson (push) Waiting to run
build / check_abi_compatibility (push) Blocked by required conditions
build / check_release (push) Blocked by required conditions
build / release (push) Blocked by required conditions
CI / linux-acr-oldlibsbug (push) Waiting to run
CI / linux-nocs (push) Waiting to run
CI / linux-acr-gperf (push) Waiting to run
CI / linux-sys-capstone (push) Waiting to run
CI / linux-acr-resymlink (push) Waiting to run
CI / linux-test (push) Waiting to run
CI / linux-static-meson (push) Waiting to run
CI / macos-test (push) Waiting to run
CI / linux-rpath (push) Waiting to run
CI / macos-rpath (push) Waiting to run
CI / linux-meson-spaces (push) Waiting to run
CI / linux-tinyasan-fuzz (push) Waiting to run
CI / linux-asan-fuzz (push) Waiting to run
CI / w64-make (push) Waiting to run
CI / w32-mingw (push) Waiting to run
CI / w64-mingw (push) Waiting to run
Code scanning - action / CodeQL-Build (push) Waiting to run
Coverity Scan / latest (push) Waiting to run
tcc / ubuntu-tcc-newabi (push) Waiting to run
tcc / ubuntu-tcc-test (push) Waiting to run
tcc / ubuntu-tcc-nodbg (push) Waiting to run
tcc / r2pm-tcc (push) Waiting to run
tcc / ubuntu-tcc-syslibs (push) Waiting to run
This commit is contained in:
parent
7bb6140a7a
commit
e7341a55d8
@ -661,13 +661,19 @@ static int bsd_reg_read(RDebug *dbg, int type, ut8* buf, int size) {
|
||||
return true;
|
||||
break;
|
||||
case R_REG_TYPE_FPU:
|
||||
case R_REG_TYPE_VEC64: // MMX
|
||||
ret = ptrace (PT_GETFPREGS, pid, (caddr_t)buf, sizeof (struct fpreg));
|
||||
break;
|
||||
case R_REG_TYPE_VEC64: // MMX
|
||||
case R_REG_TYPE_VEC128: // XMM
|
||||
case R_REG_TYPE_VEC256: // YMM
|
||||
case R_REG_TYPE_VEC512: // ZMM
|
||||
// not implemented
|
||||
#if __KFBSD__
|
||||
struct ptrace_xstate_info info;
|
||||
ret = ptrace (PT_GETXSTATE_INFO, pid, (caddr_t)&info, sizeof (info));
|
||||
if (info.xsave_len != 0) {
|
||||
ret = ptrace (PT_GETXSTATE, pid, (caddr_t)buf, info.xsave_len);
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
case R_REG_TYPE_SEG:
|
||||
case R_REG_TYPE_FLG:
|
||||
|
@ -118,8 +118,20 @@ bool bsd_reg_write(RDebug *dbg, int type, const ut8 *buf, int size) {
|
||||
#endif
|
||||
break;
|
||||
case R_REG_TYPE_FPU:
|
||||
case R_REG_TYPE_VEC64: // MMX
|
||||
r = ptrace (PT_SETFPREGS, dbg->pid, (caddr_t)buf, sizeof (struct fpreg));
|
||||
break;
|
||||
case R_REG_TYPE_VEC128: // XMM
|
||||
case R_REG_TYPE_VEC256: // YMM
|
||||
case R_REG_TYPE_VEC512: // ZMM
|
||||
#if __KFBSD__
|
||||
struct ptrace_xstate_info info;
|
||||
r = ptrace (PT_GETXSTATE_INFO, dbg->pid, (caddr_t)&info, sizeof (info));
|
||||
if (info.xsave_len != 0) {
|
||||
r = ptrace (PT_SETXSTATE, dbg->pid, (caddr_t)buf, info.xsave_len);
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
return r == 0;
|
||||
}
|
||||
|
@ -112,4 +112,54 @@ return strdup (
|
||||
"vec64@fpu mm5 .64 112 8\n"
|
||||
"vec64@fpu mm6 .64 128 8\n"
|
||||
"vec64@fpu mm7 .64 144 8\n"
|
||||
|
||||
"vec128@fpu xmm0 .128 160 16\n"
|
||||
"fpu xmm0l .64 160 8\n"
|
||||
"fpu xmm0h .64 168 8\n"
|
||||
"vec128@fpu xmm1 .128 176 16\n"
|
||||
"fpu xmm1l .64 176 8\n"
|
||||
"fpu xmm1h .64 184 8\n"
|
||||
"vec128@fpu xmm2 .128 192 16\n"
|
||||
"fpu xmm2l .64 192 8\n"
|
||||
"fpu xmm2h .64 200 8\n"
|
||||
"vec128@fpu xmm3 .128 208 16\n"
|
||||
"fpu xmm3l .64 208 8\n"
|
||||
"fpu xmm3h .64 216 8\n"
|
||||
"vec128@fpu xmm4 .128 224 16\n"
|
||||
"fpu xmm4l .64 224 8\n"
|
||||
"fpu xmm4h .64 232 8\n"
|
||||
"vec128@fpu xmm5 .128 240 16\n"
|
||||
"fpu xmm5l .64 240 8\n"
|
||||
"fpu xmm5h .64 248 8\n"
|
||||
"vec128@fpu xmm6 .128 256 16\n"
|
||||
"fpu xmm6l .64 256 8\n"
|
||||
"fpu xmm6h .64 264 8\n"
|
||||
"vec128@fpu xmm7 .128 272 16\n"
|
||||
"fpu xmm7l .64 272 8\n"
|
||||
"fpu xmm7h .64 280 8\n"
|
||||
"vec128@fpu xmm8 .128 288 16\n"
|
||||
"fpu xmm8l .64 288 8\n"
|
||||
"fpu xmm8h .64 296 8\n"
|
||||
"vec128@fpu xmm9 .128 304 16\n"
|
||||
"fpu xmm9l .64 304 8\n"
|
||||
"fpu xmm9h .64 312 8\n"
|
||||
"vec128@fpu xmm10 .128 320 16\n"
|
||||
"fpu xmm10l .64 320 8\n"
|
||||
"fpu xmm10h .64 328 8\n"
|
||||
"vec128@fpu xmm11 .128 336 16\n"
|
||||
"fpu xmm11l .64 336 8\n"
|
||||
"fpu xmm11h .64 344 8\n"
|
||||
"vec128@fpu xmm12 .128 352 16\n"
|
||||
"fpu xmm12l .64 352 8\n"
|
||||
"fpu xmm12h .64 360 8\n"
|
||||
"vec128@fpu xmm13 .128 368 16\n"
|
||||
"fpu xmm13l .64 368 8\n"
|
||||
"fpu xmm13h .64 376 8\n"
|
||||
"vec128@fpu xmm14 .128 384 16\n"
|
||||
"fpu xmm14l .64 384 8\n"
|
||||
"fpu xmm14h .64 392 8\n"
|
||||
"vec128@fpu xmm15 .128 400 16\n"
|
||||
"fpu xmm15l .64 400 8\n"
|
||||
"fpu xmm15h .64 408 8\n"
|
||||
"fpu x64 .64 416 0\n"
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user