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
Paul I
829c6bc59f
Fix heap-buffer-overflow bug in get_src_regname() ( #15630 )
2019-12-14 18:59:54 +01:00
Khairul Azhar Kasmiran
bb870f1d2f
r2r.v: Fix test skipping ( #15629 )
2019-12-14 18:26:26 +01:00
Khairul Azhar Kasmiran
db558bd38b
r2r.v: Move threads into r2r ( #15628 )
2019-12-14 03:36:52 -06:00
Anton Kochkov
e11b2a9145
Some Coverity defect fixes ( #15626 )
2019-12-13 11:25:19 -06:00
Francesco Tamagni
902426c8bb
Add 64-bit iOS SEP xtr plugin ##bin
2019-12-13 15:49:35 +01:00
yossizap
eadbbaf3fd
Fix 'oo' rebasing when leaving debug and add 'doc' to exit ##debug
...
Not all of the data was rebased after reopening the original file and
there was warning message from set_baddr which isn't needed here.
Switched to __rebase_everything instead of the old methods that were used.
2019-12-13 15:49:20 +01:00
Khairul Azhar Kasmiran
5ac505f119
r2r.v: Support running of just 1 cmd testfile ( #15616 )
2019-12-13 15:48:40 +01:00
Khairul Azhar Kasmiran
1d0c3290b1
r2r.v: Fix invocation of json tests ( #15624 )
2019-12-13 21:18:40 +08:00
Anton Kochkov
a43cc2664d
Fix AppVeyor ( #15623 )
2019-12-13 04:58:16 -06:00
pancake
49e523937e
Refix magic's bgets()
2019-12-12 18:11:52 +01:00
pancake
e7ae25fbfb
Fix another infite loop in RMagic.loadBuffer()
2019-12-12 18:04:12 +01:00
pancake
8a8a28e4cf
Fix bread in RMagic.loadBuffer()
2019-12-12 17:52:50 +01:00
radare
376943c6d4
Loading json tests is not the same as running them ( #15618 )
2019-12-12 17:14:28 +01:00
radare
f680995474
Introduce the r_magic_load_buffer() api and boolify a bit ##search ( #15617 )
2019-12-12 17:12:33 +01:00
Florian Märkl
631cb78fc3
Fix first r_anal_op call after asm.bits change ##anal
2019-12-11 18:57:32 +01:00
Francesco Tamagni
aa52c1762e
Add PIE flag check in kernelcache detection ##bin
...
In this way 64-bit SEP kernels aren’t wrongly detected as XNU kernel caches.
2019-12-11 18:56:52 +01:00
Francesco Tamagni
9fd379faff
Rename or1k insns
global ( #15613 )
...
As in certain build configurations it conflicts with the Capstone’s symbol of the same name, raising errors in the linking phase.
2019-12-11 18:56:14 +01:00
yossizap
79abeea09a
Silence drr warning on UT64_MAX registers ##debug ( #15611 )
...
The warning:
WARNING: r_core_anal_hasrefs_to_depth: assertion 'core && value != UT64_MAX'
failed (line 2062)
This way registers like 'orax' will simply have an empty reference like before,
just without an annoying warning when there really is nothing to telescope.
{"reg":"orax","value":"0xffffffffffffffff","ref":""}
2019-12-11 13:20:29 +01:00
radare
55e5260bd2
Implement asm, fuzz and json test runner in r2r.v ##test
2019-12-10 17:36:44 +01:00
Khairul Kasmiran
2b79446157
Use ONE_STREAM=1 instead and assume it sets scr.onestream
2019-12-10 14:26:38 +01:00
GustavoLCR
56d8a0b233
Improve SP based var analysis ##anal
...
* Name variables based on their offset from the start of the stack frame
* Fix tests
2019-12-10 00:15:25 +01:00
GustavoLCR
9a3482710d
Fix ms cc wrong argument analysis ##anal
2019-12-10 00:15:25 +01:00
pancake
91f6a310f0
Fully implement the asm test runner in r2r.v
...
- Must use the native api to speedup
- TODO: Multiple cores to run in parallel
2019-12-09 23:59:35 +01:00
Florian Märkl
7355d8c1f4
Fix N and V results in 6502 BIT ESIL ( #15562 )
2019-12-09 16:54:22 +01:00
Anton Kochkov
bb974bb86a
r2r.v - better portability
2019-12-09 20:48:48 +08:00