22989 Commits

Author SHA1 Message Date
condret
acc449c702 Hardening esil-dfg 2019-11-02 05:33:43 +01:00
yossizap
05b000bb13 Modified debug_native to handle break's thread switching behavior
The user was interrupted during continue and switched to a different
thread since DebugBreakProcess creates a thread that triggers a breakpoint.
With these changes the DebugBreak thread is recorded to skip the breakpoint
event afterwards.
2019-11-02 00:30:25 +01:00
yossizap
12391ae483 Modified r_debug_native_wait to avoid switching between threads for each event
The debugger should return to the requested thread after handling events
in other threads except for breakpoints.
2019-11-02 00:30:25 +01:00
Armin Weihbold
1015d9dfe4 Refactor drm to be ready for the YMM registers (#15394) 2019-11-01 02:56:14 +01:00
GustavoLCR
58579bd51b Fix Appveyor hang. (#15396) 2019-11-01 02:55:06 +01:00
Johannes
5d76b9ff99 fix linux x86 build (#15395) 2019-11-01 02:54:48 +01:00
pancake
4b2bf8dccd Fix assert 2019-10-30 23:33:33 +01:00
pancake
b763328a1d Fix build 2019-10-30 21:00:36 +01:00
pancake
194e90fc69 After release version bump 2019-10-30 20:24:23 +01:00
pancake
23540846db Add some asserts in rreg 2019-10-30 20:17:00 +01:00
Óscar Carrasco
bdeceab6e3 Insert arguments into types SDB on function analysis ##anal 2019-10-30 19:42:38 +01:00
yossizap
45782c7705 Fixed w32dbg breaking issues (#15386) ##debug
* Fixed w32dbg breaking issues and moved break_push to w32_dbg_wait to support stepping as well

Previously, breaking would only work during 'dc' because it was pushed
in debug.c specifically for continue. This change moves the
responsibility of pushing/popping w32_break_process_wrapper to
windows_debug.c instead to support calls to w32_dbg_wait from anywhere.
2019-10-30 18:58:34 +01:00
Khairul Azhar Kasmiran
dc65828446 sys/meson.py: Use -fsanitize=... instead of -lasan when linking (#15390) 2019-10-30 18:58:11 +01:00
yossizap
930ad29b00 Use pj api in drrj (#15391)
This also solves an issue with drrj in windows since the code relied
on iter->p to know if a comma should be prepended, but windows always
has it initialized so it was always prepended - invalidating the JSON.
2019-10-30 18:57:40 +01:00
Armin Weihbold
daf361fb93 Add support for printing xmm* as packed floats and doubles (#15378) ##debug 2019-10-30 13:07:09 +01:00
radare
f639c3b6a1
Fix build for 32bit Linux systems ##build (#15384) 2019-10-30 13:04:25 +01:00
dok
73ef6da100 Add utf-8 support in r_print_rangebar (#15389) ##print 2019-10-30 13:04:16 +01:00
Qian
83920bd908 Add ARM strd support (#15388) ##asm 2019-10-30 13:03:54 +01:00
pancake
0257d4be10 Add refs, xrefs and esil columns to pdt ##disasm 2019-10-29 18:37:27 +01:00
pancake
6d5f123799 Add asm.cmt.esil to show ESIL as comment ##disasm 2019-10-29 18:22:36 +01:00
pancake
eaf5826533 Fix build of the onefied shared lib ##build 2019-10-29 16:53:41 +01:00
TheGoddessInari
d42ed33f41 Make the generated r2.bat use bat path_relative syntax instead of hardcoding. (#15383) 2019-10-29 22:13:38 +08:00
GustavoLCR
293b244caa Fix hang when running dc in a task ##windows (#15380) 2019-10-29 11:31:03 +01:00
GustavoLCR
5da7f2476c Fix double-free in canvas.c (#15379) 2019-10-29 10:24:09 +01:00
Kamil Lorenc
6ad8b49b6c Fix links to Doxygen documentation (#15377) ##doc
stack.nl is no longer active
2019-10-28 22:56:46 +01:00
pancake
e97047299a Release v4.0.0 - Codename Krampack 4.0.0 2019-10-28 16:46:22 +01:00
radare
e0e593c94c
Show flagname and realname in json format for fnj and such ##json 2019-10-28 16:46:14 +01:00
Khairul Azhar Kasmiran
6190995828 sys/asan.sh: Use -fsanitize=... instead of -lasan when linking (#15375) ##build 2019-10-28 16:09:11 +01:00
radare
27e68f0005
Fix #14247 - fn.j/fnj. show all flags in current offset, not just one ##core (#15374) 2019-10-28 16:08:33 +01:00
radare
319839830f
Better pdi output when Cd is involved ##disasm 2019-10-28 11:45:02 +01:00
pancake
0ff8f24a05 Fix #15297 - Update ESIL help message ##esil 2019-10-28 11:30:13 +01:00
yossizap
29e2ffe476 Fix issues in windows thread switching (#15366)
* Fixed issues in windows thread switching by implementing thread attach for w32dbg =!pid

Previously the function attempted to OpenProcess even though the main
pid is already opened by __open and the fact that re-opening the main
pid wouldn't do anything. This way it attaches to new threads when
called by r_debug_select.

* Modified w32_continue to update rio->pi.dwThreadId after switching to the requested thread

Manually changing iop->pi.dwThreadId in io_w32dbg's =!pid created a
problematic scenario when w32_continue is called with the last event's
tid from dbg_wait. This solution makes sure iop->pi.dwThreadId keeps
being updated after events on other threads arrive and that w32_continue
actually uses the given tid.

* Modified w32_continue return values
2019-10-28 11:06:57 +01:00
pancake
cc7f17dec0 Fix build 2019-10-28 10:39:49 +01:00
pancake
5c3bd9fd47 Bring back the MASK_DISASM because not all nanal plugins support it yet 2019-10-28 10:16:44 +01:00
condret
a62575c3d9 Improve registers handling in ESIL dfg ##esil 2019-10-28 10:10:24 +01:00
GustavoLCR
47a440cae5 Implement w32dbg_wrap 2019-10-28 05:56:10 +01:00
GustavoLCR
317c0ee811 Fix reading registers after thread exited 2019-10-28 05:56:10 +01:00
pancake
e61fc9a3e4 Implement 'pdt' - print disasm in table, supports queries ##disasm 2019-10-28 05:55:26 +01:00
pancake
a51fd45a0e Add :json,:quiet,strlen,minlen,maxlen,sortlen in table queries ##table 2019-10-28 05:55:26 +01:00
GustavoLCR
11859ab63b Use RTable for Windows heap info output (#15368) ##debug 2019-10-28 02:11:48 +01:00
Armin Weihbold
b9874fb102 Add support for setting xmm registers on linux (#15365) ##debug 2019-10-27 17:38:36 +01:00
yossizap
b133761f3b Fixed continue not being associated with the current thread in unix ##debug 2019-10-26 11:02:23 +02:00
yossizap
74c54e24bb Added a way to break while in dbg_wait (continue, step etc) ##debug 2019-10-26 11:02:23 +02:00
yossizap
797803473b Fixed dpk ##debug 2019-10-26 11:02:23 +02:00
Riccardo Schirone
d5bf57258a On AArch64 there is a new special symbol $x (#15362) ##bin 2019-10-25 20:56:30 +02:00
pancake
7ac7570ef8 Minor code cleanup 2019-10-25 20:20:37 +02:00
pancake
a019caadcc Add the r_anal_fcn_rename() function 2019-10-25 19:49:53 +02:00
yossizap
82b02e8b89 Fixed opcodes not being associated with the current thread in gdbr (#15358) ##debug 2019-10-25 19:41:34 +02:00
Armin Weihbold
5742c3498c Fix xmm register offsets (#15360) 2019-10-25 19:41:18 +02:00
radare
89a98f7e1c
Fix #14489 - Do not print newline in k commands (#15361) 2019-10-25 19:40:43 +02:00