23344 Commits

Author SHA1 Message Date
pancake
38522450ab After release version bump 2019-12-28 12:54:22 +01:00
Khairul Azhar Kasmiran
ec8e8c97e7 Add sys/r2env.sh: Set up env for r2 in non-standard loc (#15696) 2019-12-28 12:48:22 +01:00
Florian Märkl
cdbcffe108 Remove dupped basic block analysis in core (#15714) ##anal 2019-12-28 12:37:48 +01:00
EggUncle
06d9632a3d Fix invalid JSON in rabin2 -j (#15709) 2019-12-28 02:38:27 +01:00
Sylvain Pelissier
8e114069c1 Correct RISC-V division and add test (#15712) ##esil 2019-12-28 02:35:33 +01:00
Florian Märkl
ba234e8dca Fix Field Seek in Visual Menus (#15710) 2019-12-27 12:30:53 -06:00
radare
016af7332d Fix some warnings (#15705)
* Fix some warnings
* Remove unnecessary duplication

Co-authored-by: Anton Kochkov <xvilka@gmail.com>
2019-12-27 08:21:16 -06:00
David Carlier
7ee39fb157 Few warning build fixes proposal. 2019-12-27 06:13:53 -06:00
yossizap
59ce43d52c Fix reopening of windows debug after detaching not working ##debug
attach_new_process was called instead of regular attach because the
saved pid and tid in core->dbg weren't reset before calling r_debug_select
in a new session. Made sure this won't be a problem when using dp= after
dp- either.
2019-12-27 02:46:59 -06:00
yossizap
f0027aa263 Fix windows breakpoint rebasing ##debug
Calculate the diff ourselves since bp->delta is calculated with the
dbg->bp->baddr at the time of breakpoint creation, which may not
reflect the correct baddr and break the rebase.
2019-12-27 02:46:59 -06:00
yossizap
0c34ef3c0a Prevent the restoration of disabled breakpoints ##debug (#15707)
Previously, disabled breakpoints were restored and then hit during
execution. The debug logic ignored them and continued but that's
an unnecessary slow down. To achieve this type of behavior the user
should use tracepoints.
2019-12-27 02:45:54 -06:00
pancake
bbde62307a Minor syntax issues in panels 2019-12-24 19:07:08 +01:00
pancake
9fe0d9daf9 Limit panel tabs to 9 to avoid keybinding and click issues ##visual 2019-12-24 19:06:41 +01:00
pancake
2e1805d5e8 Use v fmt to indent the new testsuite 2019-12-24 17:06:42 +01:00
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