pancake
e2700bf951
Fix process detach in the xnu debugger ##debug
...
* Inspired by f6664c2cee715b54b13ba4cf77f752917242a08b from rizin
* AuthorDate: Sun Jul 10 16:06:59 2022 +0200
* Author: Florian Märkl <info@florianmaerkl.de>
2022-08-22 21:02:34 +02:00
pancake
d2d241a5c0
Fix arm64 register access in xnu debugger ##debug
...
* Inspired by commit e893d2fb66916734fa71589058f7de9bb8c8fbf5
* in rizinorg/rizin by Author: Florian Märkl <info@florianmaerkl.de>
* Date: Sat Aug 6 19:09:11 2022 +0200
Fix arm64 register access in xnu debugger
ARM_THREAD_STATE64 fetches arm_thread_state64_t but our struct was
arm_unified_thread_state_t, which adds a header. The pc in the register
profile was hacked to account for the shift, but all the x-regs were
not, so x7 had the value of x8 for example. Now we just use the specific
state for 32 or 64.
2022-08-22 20:49:51 +02:00
pancake
8d13147055
Use more RLOG in debug and fix the remaining warnings
2022-08-22 19:48:48 +02:00
pancake
82646917c7
Use RLOG in fs, fix null fs.mount and unused drx_at warning
2022-08-22 01:50:32 +02:00
pancake
55d9d55787
Linting for 'cmp (' and asan in Cf
2022-08-20 12:35:11 +02:00
Richard Patel
46d7213dba
Fix unused static in xnu_debug
2022-08-19 15:49:51 +02:00
pancake
785a469a6d
else block linting
2022-08-18 18:35:22 +02:00
pancake
7a35f03471
More source spacing linting
2022-08-18 14:37:29 +02:00
pancake
a538b2b700
Add =0 and =1 lintings
2022-08-18 13:58:40 +02:00
pancake
52a22ab995
Add lint for \tfree(
2022-08-18 10:27:06 +02:00
pancake
41cf0bcf39
Add the 'i<' lint
2022-08-18 10:27:00 +02:00
pancake
660478b3cc
sys/lint for '0 ;'
2022-08-18 10:26:56 +02:00
pancake
d93330479d
Fix debugger build
2022-08-18 09:36:41 +02:00
pancake
e4e4ecc605
Add lint for ';;$' and remove strncmp from io plugins
2022-08-18 00:11:36 +02:00
pancake
aa990230cc
Lint for col0 eprintfs
2022-08-15 18:28:07 +02:00
Richard Patel
b78855c38d
Refactor a few eprintf 'Cannot …' to R_LOG_ERROR
2022-08-01 16:46:46 +02:00
Richard Patel
dcd740dd53
Refactor a few eprintf to R_LOG_ERROR ##refactor
2022-08-01 00:21:21 +02:00
Paul B Mahol
75a206cb17
Check for memory allocation failure in backtrace_fuzzy()
2022-07-31 14:24:10 +02:00
Paul B Mahol
2cc93d76c2
Fix leak in backtrace_fuzzy()
...
The stack pointer is written once and then read
and after that is abandoned.
2022-07-31 14:24:10 +02:00
pancake
091b7c96c2
Fix last covs and support mount
in ms
##fs
2022-07-08 09:51:21 +02:00
pancake
ad1add71cb
Fix a new linting to remove the double error message in RLOG calls ##lint
2022-07-07 20:25:26 +02:00
pancake
e2bbe2b14e
Add a linting to avoid R_LOG calls ending with a dot ##lint
2022-07-04 17:42:25 +02:00
pancake
9f12bfd0a8
Get rid of some globals and tls-ify others
2022-07-03 10:01:58 +02:00
pancake
47b7e8ae2b
Add and fix two more for loop linter rules
2022-07-02 22:40:28 +02:00
pancake
3db3750eb0
Lint for x"" ##cleanup
2022-06-28 12:07:58 +02:00
pancake
304a3a7fcf
Use more R_LOG instead of eprintfs and add more linting checks ##refactor
2022-06-28 11:24:06 +02:00
Richard Patel
363df75c06
Replace some instances of eprintf with R_LOG_
2022-06-28 02:49:42 +02:00
pancake
4039c23f3e
Cleanup gdb:// uri handling in r2's main.c
2022-06-08 20:18:38 +02:00
ypsvlq
774a31031a
Support building windbg plugin under mingw ##windows
...
* Fix empty args in variadic macros
* Use old dbgeng interfaces as provided by mingw
* Fix incorrect string comparisons
* Remove windbg -kqm since it wasn't usable anyway
* Rewrite windbg_read
2022-06-06 01:03:52 +02:00
pancake
6f6ea27b67
Introduce R_LIKELY macros and update sdb ##core
...
* Bear in mind the gnuisms
2022-05-21 21:34:25 +02:00
pancake
6a832aad6c
Use RArchConfig in RReg, Add RReg.hasbits() apis ##anal
...
* Remove unused variables in RReg struct
* bits and big_endian is checked from archconfig
* hasbits is now accessed via api
* Ensure bits are a valid value
2022-05-17 10:12:42 +02:00
pancake
90bd713794
Add d:
to run the cmd callback of the debug plugins ##debug
2022-05-07 11:58:38 +02:00
pancake
5b7c970f2b
eprintf requires newline
...
* git grep eprintf | grep -v '\\n'| grep '('
2022-05-05 13:11:52 +02:00
pancake
cfd66d0d28
Fix last covs
2022-04-25 23:00:37 +02:00
pancake
560f7fb424
Introduce r_arch.h. Use RArchConfig in RAnal and improve RRef api ##api
...
* Fix unaligned issue in hex asan test
2022-04-24 23:11:26 +02:00
pancake
4823451497
Fix build and tests
...
* Fix one x86-64-specific test to pass everywhere
2022-04-22 05:46:34 +02:00
pancake
99b7a74640
Fix last covs, mainly memleaks in w
2022-04-22 05:46:34 +02:00
Lazula
0404d2d845
Fix #19966 - Reset seek in r_debug_execute() to real PC ##debug
...
* Add return value output arg to r_debug_execute()
* Always restore the full 4k at the stack
* Fix maybe-uninitialized warning
* Use raw RCore->offset instead of RCore.seek()
* Move seek handling into cmd_debug()
2022-04-21 18:08:21 +02:00
Lazula
724d23a6c0
Refactor, fix, and test dd
command ( #19842 )
...
* Test dd commands
* Improve dd help text
* Move dd command into a self-contained function
* Take correct arguments for ddr and ddw
* Add O_CREAT to dd+ flags for python-style automatic creation
* Add permission checks to ddr and ddw
Linux debug file descriptor info bugfixes (`linux_desc_list()`)
* Fix normal files being reported as sockets due to inaccurate S_IFSOCK check
* Fix file descriptor permission reporting
* Implement offset checking functionality
2022-04-19 07:43:54 -05:00
Lazula
540a357b8e
Add dxrs command and tests for dx/dxr/dxrs
2022-04-19 01:49:12 +02:00
Lazula
cc8e2b3f55
Improve variable names in r_debug_execute
2022-04-19 01:49:12 +02:00
pancake
28533a32c5
Minor cleanups in the xnu debugger codebase
2022-04-11 17:10:08 +02:00
pancake
167eb98179
Apple Silicon can hwstep ##debugger
2022-03-28 11:19:58 +02:00
Sergi Àlvarez i Capilla
607134947e
Honor esil.maxsteps in more commands and stop earlier when no =PC ##esil
2022-03-23 13:02:55 +01:00
Sergi Àlvarez i Capilla
50b8813f1d
Fix w64blob artifact name for the release
...
* Fix meson -Dplugins=arm reg profile issue
* Fix an infinite loop when emulating with no valid regprofile
2022-03-22 20:06:43 +01:00
pancake
c8ae21f68f
Only build library archives when -Dblob is provided ##build
...
* Lowers the amount of objects from 2400 to 1500
2022-03-22 11:59:13 +01:00
pancake
34f1bbbcc8
Fix unitialized buffer read bug enumerating process files ##debug
2022-03-17 18:34:06 +01:00
pancake
7699f37c7d
Fix warnings spotted by latest XCode (unused variables)
2022-03-17 10:12:02 +01:00
pancake
4ba0af5d1d
Fix meson -Dblob=true builds for static ##windows
2022-03-16 00:48:50 +01:00
pancake
f8a35da205
Dont use != NULL as its implicit in C, even for bool casts ##refactor
...
$ find binr libr -name "*.c" -exec sed -i -e 's/ != NULL//g' {} \;
2022-03-15 19:54:04 +01:00