Commit graph

594 commits

Author SHA1 Message Date
radare
b82b24c135
Fix last coverity issues (#16114) 2020-03-03 12:41:32 +01:00
radare
5e629a3260
Avoidify the strTrim() APIs + cleanup/refactor ##util (#16056) 2020-03-02 21:39:37 +01:00
radare
6ae8806411
Do not use the elvis operator for bool expressions (#16073) 2020-02-28 15:19:37 +01:00
Khairulmizam Samsudin
2afe6ea71b
Use RString and minor cleanup (#16070) 2020-02-28 11:41:27 +01:00
Khairulmizam Samsudin
5c26bacac8
Use RTable API in r_core_debug_rr (#16066) ##debug 2020-02-28 01:07:58 +01:00
Anton Kochkov
9ae41ae69f
Revert "Avoidify the RUtil.strTrim() APIs, rename trimHeadTail() and add asserts in RConfig ##refactor" (#16055)
This reverts commit 38b61c7bcf.
2020-02-26 09:59:04 +08:00
radare
38b61c7bcf
Avoidify the RUtil.strTrim() APIs, rename trimHeadTail() and add asserts in RConfig ##refactor 2020-02-25 17:53:09 +01:00
Khairulmizam Samsudin
17026c8c62
Fix show register value in column (#16010) ##debug
* Fix for ar= and dr= and add tests
* increase width to accomodate register name larger than 4 chr
* fix flag type register value not printed
* update r_debug_reg_list() to accept '=' arg
2020-02-20 16:26:29 +01:00
pancake
00bf84610d Fix aeab and add V (values) in aea outputs ##anal 2020-02-11 01:20:56 +01:00
yossizap
0881f89703
Add 'dbH' to set hardware breakpoints (#15933) ##debug 2020-02-07 09:40:23 +01:00
pancake
f715f01fad A bit more picky fix 2020-01-19 17:59:26 -05:00
pancake
fe30246d91 Fix #15767 - Temporarily disable colors in drrj 2020-01-19 17:54:53 -05:00
pancake
84436bfaad Implement ar, and dr, commands to list registers in table format ##cons 2020-01-19 22:56:47 +01:00
yossizap
37797f7547 Moved drC to drpC for profile comments and added drC for reg comments ##debug 2020-01-14 11:35:13 +01:00
yossizap
ff38565a61 Set cfg.debug to true before running oodf in doof ##debug (#15787) 2020-01-11 16:50:27 +02:00
pancake
1e5a3a15bd Fix issues in iCj, drlj and arlj ##json 2020-01-08 14:11:52 +01:00
Kārlis Seņko
b0ff7f5285 Fix double free in r_bp_del_index and other breakpoint index bugs
* Lack of cleanup in r_bp_del_all causing use after free in other dbi
commands
* Copy paste error turning dbix into dbx
* Add dbi- command
* Allow dbi commands to operate with index 0
2020-01-05 18:34:03 +01:00
yossizap
2a5e470d30 Fix drt not printing non 64bit/32bit registers and flags ##debug
dr will still only show 64bit/32bit registers to avoid printing all
of the flags and d/w/b register variants.
2020-01-04 11:36:48 +01:00
yossizap
313d4b4893 Refactor breakpoint validation (#15754) ##debug
* Added RCoreBind.syncDebugMaps() and RCoreBind.getDebugMaps() api
* Refactor breakpoint validation ##debug
* Reenable db tests and add new tests to check validity
* Add perm check to isMapped and remove map sync to improve performance
2020-01-04 01:54:24 +01:00
radare
d884f76e9f
Add ccdd command to diff decompiler output of two functions ##diff 2020-01-04 01:51:12 +01:00
pancake
836ea638b7 Revert "Validate bp addr on rebase and restore instead of preventing creation ##debug (#15750)"
This reverts commit e503bdd9c2.
2020-01-03 01:35:05 +01:00
yossizap
e503bdd9c2 Validate bp addr on rebase and restore instead of preventing creation ##debug (#15750)
This way it is possible to set breakpoints before starting debug through
'db' and the user will be notified when a breakpoint points to an
invalid map.
2020-01-03 00:57:18 +01: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
yossizap
78142979d8 Fixed not killing child processes and added detach ##debug 2019-12-16 01:23:27 +01:00
Anton Kochkov
e11b2a9145
Some Coverity defect fixes (#15626) 2019-12-13 11:25:19 -06: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
yossizap
b961008fc9 Added oodf\doof to enable rebasing for remote debug ##debug (#15560) 2019-12-09 00:05:48 +01:00
GustavoLCR
4378645f31 Add command to identify window under cursor ##windows (#15518) 2019-11-28 18:40:17 +01:00
Armin Weihbold
82047cc580 Add experimental ymm regs support for linux-x64 and extend drm command ##debug 2019-11-07 17:23:18 +01:00
Armin Weihbold
1015d9dfe4 Refactor drm to be ready for the YMM registers (#15394) 2019-11-01 02:56:14 +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
Armin Weihbold
b9874fb102 Add support for setting xmm registers on linux (#15365) ##debug 2019-10-27 17:38:36 +01:00
yossizap
797803473b Fixed dpk ##debug 2019-10-26 11:02:23 +02:00
Armin Weihbold
fbd68eb1ce Fix drm[bwdq] command, add xmm0h/l and xmm8-15 registers (#15354) ##debug 2019-10-25 17:12:34 +02:00
yossizap
d8e08bc7ea Fix incomplete drr/drrj formatting when r_core_anal_hasrefs fails (#15277) ##debug 2019-10-15 02:54:20 +02:00
yossizap
a9478c0bb0 Added "dptj" and "dptj " (#15259) ##debug 2019-10-12 23:14:24 +02:00
Armin Weihbold
9b9103e00a Enhance drm command, add drm xmm0 functionality (#15214) ##debug
* Add shorthand versions of `drm` - `drm[bwdq]`
* Add mmx register to linux-x64
2019-10-10 04:40:08 +02:00
Armin Weihbold
db1b79b125 Fix #13118 - drf st0 - fpu regs (#15241) 2019-10-10 04:37:37 +02:00
Armin Weihbold
a4954a221e Fix drf output formatting ##debug 2019-10-09 10:18:30 +02:00
GustavoLCR
5bb2417119 Fixes for Windows (#14985)
* Fix dbW help message

* Fix memleak on r_w32_print_windows

* Imitate unix gotoxy behavior on Windows
2019-09-08 02:53:25 +08:00
GustavoLCR
c2287003f9 Implement Windows message breakpoints 2019-09-07 11:25:01 +02:00
pancake
a228c9297b Implement 'cols' RTable.query to filter by column names ##print
* r_str_split_list() rewritten to support nth limit

r2 -qq -c 'aac;aflt size/gt/200,addr/cols/name/nbbs,nbbs/sort/inc' /bin/ls
2019-08-28 23:25:31 +02:00
David CARLIER
0626013ac7 Linux debug plugin, page promotion feature ##debug
* Linux debug plugin, page promotion feature proposal.

Providing new 'dmL' debugger sub command.
This is the only system having THP feature, others are more into
 direct huge tlb equivalent ...
The system ought to be set in madvise mode and disabled on Android,
would not do any good in this environment if this is ever supported.
Once the syscall succeed, the address range ought to get the
 little 'hg' VmFlags.

* interface changes
2019-08-03 06:09:07 -07:00
ps1337
fceda4c3df cmd_debug.c: Make addroflib use basenames 2019-07-26 20:36:48 +02:00
Ayman Khamouma (ak42)
659cab4ba3 Step over rep and repne prefixed instructions with dsui ##debug 2019-07-23 10:06:10 +02:00
Anton Kochkov
20e19d6023 More spelling fixes in the code 2019-06-20 13:36:02 +08:00
radare
a49bb7cf66
Change the signature of r_str_trim to avoid confusions ##refactor 2019-06-16 20:58:40 +02:00
bart1e
e1724d9a48 Call r_anal_op_free after acquiring RAnalOp pointer (#14317) 2019-06-16 12:31:54 +02:00
bart1e
9e9ca5082a Faster dtd (trace disassembling) using API instead of RCore.cmd ##disasm 2019-06-15 12:08:22 +02:00