Commit Graph

1883 Commits

Author SHA1 Message Date
pancake
0a868ff59f
Fix segfault in dL and use SPDX namings on all debug plugins ##doc 2024-10-17 19:43:46 +02:00
Chédotal Julien
5fed9dcc09 Fix xmm?[hl] (dbg_drt test) for Linux x64 ##debug 2024-10-10 19:26:55 +02:00
Chédotal Julien
e7341a55d8
Add xmm registers for the FreeBSD debugger ##debug
Some checks are pending
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
2024-10-07 01:44:37 +02:00
Chédotal Julien
ee7c58b932
Added registers st0 to st7, mm0 to mm7 while debugging under FreeBSD ##debug
Some checks are pending
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
* added registers st0 to st7, mm0 to mm7 while debugging under FreeBSD.

* Apply suggestions from code review

---------

Co-authored-by: User Julien <julien@ryzen3950x.home>
Co-authored-by: pancake <pancake@nowsecure.com>
2024-10-05 19:21:46 +02:00
pancake
0189d66dc9 Fix #23357 - Add missing flag registers for the freebsd profile ##debug
Some checks failed
build / linux-static (push) Failing after 1s
build / check_abi_compatibility (push) Has been skipped
build / linux-acr-rpm-64 (push) Failing after 1s
build / linux-acr-deb (amd64) (push) Failing after 1s
build / linux-acr-deb (arm64, aarch64-linux-gnu) (push) Failing after 1s
build / linux-acr-deb (i386, multilib) (push) Failing after 1s
build / android-acr (16, arm) (push) Failing after 1s
build / android-acr (aarch64) (push) Failing after 1s
build / android-meson (x86_64) (push) Has been skipped
CI / linux-acr-oldlibsbug (push) Failing after 1s
CI / linux-nocs (push) Failing after 1s
CI / linux-acr-gperf (push) Failing after 1s
CI / linux-sys-capstone (push) Failing after 1s
CI / linux-acr-resymlink (push) Failing after 1s
CI / linux-test (push) Failing after 1s
CI / linux-static-meson (push) Failing after 1s
CI / linux-rpath (push) Failing after 1s
CI / linux-meson-spaces (push) Failing after 1s
CI / linux-tinyasan-fuzz (push) Failing after 1s
CI / linux-asan-fuzz (push) Failing after 1s
CI / w32-mingw (push) Failing after 1s
CI / w64-mingw (push) Failing after 1s
Code scanning - action / CodeQL-Build (push) Failing after 1s
Coverity Scan / latest (push) Failing after 1s
tcc / ubuntu-tcc-newabi (push) Failing after 1s
tcc / ubuntu-tcc-test (push) Failing after 1s
tcc / ubuntu-tcc-nodbg (push) Failing after 1s
tcc / r2pm-tcc (push) Failing after 1s
tcc / ubuntu-tcc-syslibs (push) Failing after 1s
Semgrep / Scan (push) Failing after 0s
2024-09-20 16:57:50 +02:00
pancake
992012d021 Fix bug when calling dr8 in the debug.io ##debug
Some checks failed
build / tarball (push) Failing after 1s
build / linux-static (push) Failing after 1s
build / check_abi_compatibility (push) Has been skipped
build / linux-acr-rpm-64 (push) Failing after 1s
build / linux-acr-deb (amd64) (push) Failing after 1s
build / linux-acr-deb (arm64, aarch64-linux-gnu) (push) Failing after 1s
build / linux-acr-deb (i386, multilib) (push) Failing after 1s
build / android-acr (16, arm) (push) Failing after 1s
build / android-acr (aarch64) (push) Failing after 1s
build / android-meson (x86_64) (push) Has been skipped
CI / linux-acr-oldlibsbug (push) Failing after 1s
CI / linux-nocs (push) Failing after 1s
CI / linux-acr-gperf (push) Failing after 1s
CI / linux-sys-capstone (push) Failing after 1s
CI / linux-acr-resymlink (push) Failing after 1s
CI / linux-test (push) Failing after 1s
CI / linux-static-meson (push) Failing after 1s
CI / linux-rpath (push) Failing after 1s
CI / linux-meson-spaces (push) Failing after 1s
CI / linux-tinyasan-fuzz (push) Failing after 1s
CI / linux-asan-fuzz (push) Failing after 1s
CI / w32-mingw (push) Failing after 1s
CI / w64-mingw (push) Failing after 1s
Code scanning - action / CodeQL-Build (push) Failing after 1s
Coverity Scan / latest (push) Failing after 1s
tcc / ubuntu-tcc-newabi (push) Failing after 1s
tcc / ubuntu-tcc-test (push) Failing after 1s
tcc / ubuntu-tcc-nodbg (push) Failing after 1s
tcc / r2pm-tcc (push) Failing after 1s
tcc / ubuntu-tcc-syslibs (push) Failing after 1s
2024-09-20 13:59:30 +02:00
pancake
b46f70a4bf Fix #23298 - Breakpoints recoil not working on FreeBSD ##debug
Some checks failed
build / linux-static (push) Failing after 0s
build / check_abi_compatibility (push) Has been skipped
build / linux-acr-rpm-64 (push) Failing after 0s
build / linux-acr-deb (amd64) (push) Failing after 0s
build / linux-acr-deb (arm64, aarch64-linux-gnu) (push) Failing after 0s
build / linux-acr-deb (i386, multilib) (push) Failing after 0s
build / android-acr (16, arm) (push) Failing after 0s
build / android-acr (aarch64) (push) Failing after 0s
build / android-meson (x86_64) (push) Has been skipped
CI / linux-acr-oldlibsbug (push) Failing after 0s
CI / linux-nocs (push) Failing after 0s
CI / linux-acr-gperf (push) Failing after 0s
CI / linux-sys-capstone (push) Failing after 0s
CI / linux-acr-resymlink (push) Failing after 0s
CI / linux-test (push) Failing after 0s
CI / linux-static-meson (push) Failing after 0s
CI / linux-rpath (push) Failing after 0s
CI / linux-meson-spaces (push) Failing after 0s
CI / linux-tinyasan-fuzz (push) Failing after 0s
CI / linux-asan-fuzz (push) Failing after 0s
CI / w32-mingw (push) Failing after 0s
CI / w64-mingw (push) Failing after 0s
Code scanning - action / CodeQL-Build (push) Failing after 0s
Coverity Scan / latest (push) Failing after 0s
tcc / ubuntu-tcc-newabi (push) Failing after 0s
tcc / ubuntu-tcc-test (push) Failing after 0s
tcc / ubuntu-tcc-nodbg (push) Failing after 0s
tcc / r2pm-tcc (push) Failing after 0s
tcc / ubuntu-tcc-syslibs (push) Failing after 0s
Semgrep / Scan (push) Failing after 0s
2024-09-13 20:24:20 +02:00
satk0
060d976412
Replace other r_return_* uses and update DEVELOPERS.md ##refactor 2024-08-05 13:31:58 +02:00
pancake
361b8b0c15
!! for session history, !. for history save ##shell 2024-08-05 13:06:19 +02:00
satk0
ebd8bf9042
Replace r_return_val_if_fail with uppercase alternative 2024-08-05 12:26:32 +02:00
Claudio Jeker
cdf4e18dd0
Adjust OpenBSD code to set the process state to be less wrong ##debug
Use the p_stat of the main thread to decide in which state the process is.
For multi-threaded applications this is still not quite correct but at
least this compiles on OpenBSD-current.

See also 290aac5691
2024-07-27 07:02:11 +01:00
pancake
8e3a87264f
Better output for dL command ##debug 2024-06-29 08:45:04 +02:00
pancake
9b9574ba36 Implement Vbw command to browse window types in visual ##visual
* Choose p/P/TAB using hud input with proper descriptions
2024-06-19 01:02:18 +02:00
pancake
7479389043 Fix a couple of debugger warnings for linux and macos 2024-06-13 14:37:28 +02:00
pancake
07b372b0fe Initial support for native debugger on Linux/s390x ##debug 2024-06-13 12:50:19 +02:00
pancake
2434c5d501 Fix the double-increment in the debug traces, avoid double tracing ##debug 2024-06-06 00:17:39 +02:00
pancake
e4a3750a8d Add missing rv64 case for the native debugger ##debug 2024-05-22 01:28:49 +02:00
pancake
0ab56494da Fix two format strings receiving less arguments ##crash 2024-05-16 19:32:51 +02:00
pancake
e40fb27edb No wait for anybody, just pressed the power button 2024-05-13 01:35:48 +02:00
pancake
5225ba580a Fix segfault in 'drf' command ##debug 2024-05-03 11:30:29 +02:00
pancake
d3558a31b0 Fix #22707 - regression in debugger map names on windows 2024-04-16 23:21:48 +02:00
pancake
8c2a012cb7 Do not make THREAD_CONVERT_THREAD_STATE_TO_SELF mandatory for old macs 2024-04-16 14:26:49 +02:00
pancake
693a7d5ebe
Fix regression in asm.trace.times ##disasm (#22835)
* Add test with esil emulation instruction tracing
* Fix UAF in debug traces, vector fields are not constant
2024-04-16 02:45:12 +02:00
Sevan Janiyan
acf85e6a7e
Guard off parts which do no apply to Darwin/PowerPC ##build
* ppc_debug_state_t was never type defined
2024-04-02 03:25:00 +02:00
Armin Weihbold
180fea967b
Fix the fix for dmh after ood ##debug 2024-03-22 23:23:23 +01:00
pancake
a6752fec33 Do not do more work if the first check fails 2024-03-18 07:26:15 +01:00
pancake
91349294b0 Fix #22667 - do not call drx() on non-intel chips ##debug 2024-03-15 18:23:46 +01:00
pancake
8975e3e1a2
Expose ownership and permissions to the posix filesystem ##fs 2024-03-15 16:59:31 +01:00
Francesco Tamagni
37e60315a7 Fix call to thread_set_state in armv7 ##debug
count is not an output argument
2024-02-20 11:43:24 +01:00
Francesco Tamagni
f6defc3fbb Fix armv7 build for xnu native ##debug 2024-02-20 11:43:24 +01:00
Francesco Tamagni
231973e682 Avoid failing reg read if conversion fails on xnu native ##debug 2024-02-19 19:41:53 +01:00
pancake
08e232db22
Fix thread_set_state on arm64e ##debug
* Fix regset on iOS/macOS arm64
* Handle arm64e as arm64 also for linux
* Add test
2024-02-19 18:49:27 +01:00
Richard Patel
add975a801 Fix MSVC Arm support ##port 2024-02-18 07:24:09 +01:00
Dāvis Mosāns
aa2bed5cef Fix windows-x86 register type names 2024-02-16 12:44:45 +01:00
Dāvis Mosāns
169923932d Enable winkd 2024-02-16 12:44:12 +01:00
pancake
d4d73836b3 Check for permission string parsing errors on all r_str_rwx callers 2024-02-16 07:47:47 +01:00
pancake
057af65d6e
Fix #22563 - fix 'cannot assemble' in dmp, using egg shellcodes ##debug
* debug's eggs must share the same asm instance
2024-02-15 19:36:35 +01:00
Yiheng Cao
38c8e5ded6 Use the safe r_str_scanf instead of scanf to parse gdb profile ##crash 2024-02-15 10:09:14 +01:00
Armin Weihbold
b6c28b3830
Autodetect libc version and support manual specification ##debug
* Improve dmh usability
* Add unit tests for regexpes used
2024-02-14 14:38:40 +01:00
pancake
80e637f76d Fix windows build for debug.evm 2024-02-10 10:07:07 +01:00
pancake
dcdf4be163
Import the debug.evm plugin from radare2-extras ##debug 2024-02-09 18:58:16 +01:00
pancake
f1d368e012 Add the tricky 'tmp' register in the arm64 debugger protilfe
* Many arm64 instructions use the tmp register
2024-02-03 15:15:27 +09:00
pancake
73a20c563c Fix bad parsing, uaf and other crashes in the dts command ##debug 2024-01-04 17:07:08 +01:00
pancake
0cf564ddbb dcco steps over the function call after finding the call ##debug 2023-12-12 11:54:10 +01:00
pancake
565e572c79 Minor cleanups in debug 2023-11-21 12:07:02 +01:00
pancake
9ece938b3c
Fix 'attach to pid 1' error regression in the linux debugger 2023-11-18 23:15:35 +01:00
pancake
2e64ce0112 Debug plugin fallbacks ##debug 2023-11-17 11:31:48 +01:00
pancake
1fe0153702 Fix some wasi build warnings 2023-11-15 20:30:26 +01:00
pancake
a62d03c2e1
Refactor RDebugPlugin access solving a null deref in plugin-less builds 2023-11-15 12:04:17 +01:00
pancake
d8f0b3c7d4 Fix null deref when no debugger backend is selected 2023-11-14 22:01:21 +01:00