23230 Commits

Author SHA1 Message Date
Florian Märkl
2a27daac4c
Change Semantics of r_rbtree_upper_bound() and simplify Iter Fcns (#15698) 2019-12-23 17:21:20 +01:00
Florian Märkl
f13802b4f8 Remove RAnalBlock members only used in Java (#15679)
* Remove RAnalBlock members only used in Java
* Remove R_ANAL_BB_TYPE_(HEAD|BODY|LAST|FOOT)
* Fix a Test
* Fix afb+ help
2019-12-22 06:38:38 -06:00
Anton Kochkov
43196a6fc2
Try to test with PowerPC and SystemZ (#15452) 2019-12-20 21:13:33 -06:00
Khairul Azhar Kasmiran
eb7b4b756b When setting non-bool config var, set false/true if r_str_is_false()/_is_true() (#15681)
* When setting non-bool config var, set false/true if r_str_is_false()/_is_true()

* Fix for cmd_open tests

* Fix for cmd_print test
2019-12-20 21:12:54 -06:00
David Carlier
28ec4ca297 Debug, BSD systems refactoring ##r_debug
Separate pure BSD calls into its separate compilation unit.
2019-12-20 21:11:30 -06:00
GustavoLCR
62ee28dab8 Fix #15682 - Fix getting noreturn info from invalid addr (#15693) 2019-12-21 00:02:08 +01:00
Vane11ope
45fec159c5
fix some crashes of the widget (#15694)
fix some crashes of the widget
2019-12-21 06:57:29 +09:00
Vane11ope
4dcc9c03dd
JK moves the cursor by a page and g moves the cursor up to the first line, plus a few improvements (#15690) 2019-12-21 04:18:03 +09:00
pancake
c6d0c4a704 Release 4.1.1 - Codename 'reantull' 4.1.1 2019-12-20 21:22:09 +09:00
yossizap
bdd597376d Fix gdbr race conditions ##debug
gdbr lock depth wasn't handled in a mutex and there were two point where
a function would exit in a way that breaks the lock count
2019-12-20 13:17:36 +01:00
pancake
73bc4da69b Revert "Strip bins and libs for the Debian package"
This reverts commit 74fb0efbe3c590020514aaa79c9932c5671ea022.
2019-12-20 21:10:54 +09:00
yossizap
bfa40cd5db Fix gdbr reg sync and concurrency ##debug 2019-12-20 10:17:58 +09:00
yossizap
b5ae6d5521 Fix gdbr rebase crash ##debug
The crash was caused by gdb regs being different. This fix will prevent
the crash but vars won't be rebased for gdbr until we implement better
vars rebasing.
2019-12-20 10:17:58 +09:00
GustavoLCR
0e19329de7 Fix rebasing for remote GDB on windows 2019-12-19 17:42:22 -06:00
pancake
446cc8c7fc Release 4.1.0 - Codename 'antull' 4.1.0 2019-12-19 09:04:28 +09:00
radare
9fc6367338
Fix ignored asm.bits settings because of RBin overrides ##asm (#15677) 2019-12-18 17:33:56 +01:00
radare
74a42f0ead
Improve the interaction with decompilers in panels ##visual 2019-12-18 17:12:05 +01:00
Florian Märkl
e408789e34 Fix some Race Conditions with the thready task scheduler (#15667) ##core
* Fix lock ordering of RCoreTaskScheduler.lock vs. RCoreTask.dispatch_lock
* Remove RThreadLock.refs
* Fix a race in tasks
2019-12-18 16:54:37 +01:00
GustavoLCR
7d19556001 Improve SP based variable analysis ##anal
* Make SP based variable analysis aware of changes to SP
* Use delta inside stack to identify the variable used instead of offset to SP
* Keep track of offsets to SP used to access the variable
* Fix argument printing order for reg args
* Add test
2019-12-18 16:32:46 +01:00
yossizap
ebd6c917c4 Improve debug rebasing and fix partial windows rebase ##debug (#15669) 2019-12-18 15:48:33 +01:00
yossizap
712378d7a1 Revert pe coverity fixes to fix ihj
The format is reused for printing and internal type representation,
breaking the JSON by making the value field in ihj empty since "llx"
isn't a valid type
2019-12-18 05:25:52 -06:00
Anton Kochkov
a1dce9ad05 Fix ESIL UB 2019-12-18 03:18:27 -06:00
Anton Kochkov
6c2045aad4 Mark fixed tests as such 2019-12-18 01:55:28 -06:00
Florian Märkl
d9efd07415 Fix some FX Tests 2019-12-17 20:06:28 -06:00
yossizap
6cfdafdf51 Refactor debug native's wait function ##debug
Separate windows, linux and *bsd/apple since they have vastly different
logic and the ifdef jungle implementation was too confusing
2019-12-17 11:04:19 -06:00
Khairul Azhar Kasmiran
61a2d421dd sys/meson.py: Use == 'vs2017' instead 2019-12-17 10:42:22 -06:00
yossizap
b9bd88f82d Fix native debug not working with files that were opened as RW ##debug (#15655)
The FD was kept open and ptrace was prevented from opening it with the
error "Could not execvp: Text file busy". Fixes issue #15650.
2019-12-17 16:42:43 +02:00
David CARLIER
8caa059c9b Refactor signal handling for FreeBSD ##r_debug (#15659)
Solving r_debug_handle_signals build warning issue.
2019-12-17 15:08:50 +01:00
Khairul Azhar Kasmiran
3f5117aa2e Fix #15653: Silence MSVC XP deprecation warning 2019-12-17 07:37:22 -06:00
Khairul Azhar Kasmiran
8382e449e7 Use eprintf instead 2019-12-17 06:23:17 -06:00
Khairul Azhar Kasmiran
1485b03b7f Fix typo 2019-12-17 06:23:17 -06:00
Riccardo Schirone
982be50499 Make it possible to use sysmagic again (#15658) 2019-12-16 23:24:29 +01:00
Riccardo Schirone
fd1f980eca Pass R2_CONFIG file to ! commands and serialize methods ##config 2019-12-16 23:23:17 +01:00
Riccardo Schirone
595cb21ad4 Compile tree-sitter with std=c99 flag (#15654) 2019-12-16 23:21:43 +01:00
Anton Kochkov
2cdf4d5c0a SystemZ analysis logic error 2019-12-16 12:26:05 -06:00
Anton Kochkov
4e8e330475 Fix some MSVC warnings 2019-12-16 12:26:05 -06:00
yossizap
f1de1becfa Add ppid to dp and fix dp= for windows (#15649)
* Add ppid to win32 debug and 'dp''s display/json ##debug
* Add process selection to w32 debug ##debug

Previously, `dp=` wouldn't fully switch to the given process since it
was treated like `dpt` thread switching, leaving the debugger in
an undefined state.
2019-12-16 09:24:17 -06:00
Riccardo Schirone
2a676b5f62 Function r_anal_cc_arg should just return NULL when nothing is available (#15646)
* Function r_anal_cc_arg should just return NULL when nothing is available

Callers should be able to handle NULLs

* Fix memory leaks in unit tests
2019-12-16 08:56:40 -06:00
radare
31c100c7eb
Some more helpful messages for anal.verbose ##anal 2019-12-16 12:03:11 +01:00
Anton Kochkov
d5d5cd3bfa
Some coverity fixes (#15643) 2019-12-16 04:36:46 -06:00
yossizap
89a5320e5f Fixed a crash caused by reopening gdb ##debug
The plugin would try to work with an old version of desc that was already
freed by r_io_close_all after closing the session. I set debug_gdb's
global 'desc' to NULL in detach as a temporary solution. We should convert
to **desc to keep an updated copy of the pointer.
2019-12-16 01:23:27 +01:00
yossizap
78142979d8 Fixed not killing child processes and added detach ##debug 2019-12-16 01:23:27 +01:00
Florian Märkl
de59bada55 Fix warnings in or1k_disas.c 2019-12-16 00:30:45 +01:00
GustavoLCR
07b5e062f2 Fix #15545 - Fix NULL derefs after r_file_slurp() fails 2019-12-15 23:38:38 +01:00
GustavoLCR
7e4157bc2b Fix format string in windows_message.c 2019-12-15 23:37:54 +01:00
Paul I
9a4578a915 Replace some strstr() calls with strchr() 2019-12-15 23:37:27 +01:00
Florian Märkl
5870b5df85 Fix Alignment Check in aae on bit change 2019-12-15 23:36:44 +01:00
yossizap
6f546149cf Fixed gdbr warnings and a dpt crash after debug was over ##debug (#15636)
RDebugPid not being initialized with NULL resulted in a free on an invalid
pointer after gdbr_threads_list failed.
2019-12-15 04:45:11 -06:00
yossizap
28cac248a6 Added an event to signal the end of the debug session ##debug 2019-12-15 10:46:48 +01:00
Paul I
1d3698bc96 Fix memleak in r_anal_free() (#15631) 2019-12-15 02:38:37 +01:00