744 Commits

Author SHA1 Message Date
cyanpencil
7a246f3cea Fix auto complete in offset seek in visual 2018-06-30 01:54:22 +02:00
Florian Märkl
c6a3b6bc49 Add tasks_running to RCore to reduce tasks overhead (#10514) 2018-06-27 12:59:23 +02:00
Giovanni
3e6f5a41de Blind fix coverity 1393602/1393610/1393603/1393609/1393606/1393608/1393605/1393607 (#10491) 2018-06-25 13:32:56 +02:00
Giovanni
a3c6f782cd Coverity - 24/06/18 (#10469)
* fix for coverity 1393580

* fix for coverity 1393579

* fix for coverity 1393577

* fix for coverity 1393578
2018-06-24 20:09:26 +02:00
Florian Märkl
5e35ad898b RConsContext (#10450)
* Add RConsContext
* Swap cons in tasks using RConsContext
* Create cons context for background tasks
* Move event_interrupt to RConsContext
* Fix breaking main cons from signal
* Make r_print_is_interrupted() use callback
2018-06-23 12:10:13 +02:00
pancake
c8043844f8 Fix !!!? and !!!- behaviours 2018-06-22 11:27:56 +02:00
Giovanni
9620ffab16 Implement !!!: to register new autocompletion logic (#10407) 2018-06-22 02:08:21 +02:00
pancake
d495d531b0 Implement $r{} to access register values by name 2018-06-19 12:37:58 +02:00
pancake
f5f090b709 Implement named breakpoints with support for expressions 2018-06-19 12:27:57 +02:00
pancake
46dc3ecb44 Fix uaf with r2frida deinitialization 2018-06-18 23:45:51 +02:00
Florian Märkl
8d92f4045d Fix breaking from SIGINT 2018-06-17 11:34:03 +02:00
Florian Märkl
43449afcfe Fix joining Tasks 2018-06-17 11:34:03 +02:00
Florian Märkl
842f0984e5 Fix freeing stuff before joining tasks 2018-06-17 11:34:03 +02:00
Florian Märkl
fa3ff32569 Fix Task Commands for new Tasks 2018-06-17 11:34:03 +02:00
Florian Märkl
6cba82c066 Flatten RThreadMsg into RCoreTask 2018-06-17 11:34:03 +02:00
Florian Märkl
ea98d95e8f Fix an invalid cons load in tasks 2018-06-17 11:34:03 +02:00
Florian Märkl
6730a93e9c Sleep during prompt
Sleep during prompt for Windows
2018-06-17 11:34:03 +02:00
Florian Märkl
1d4a2bd678 Add Task Sleeping 2018-06-17 11:34:03 +02:00
Florian Märkl
1a30d17d31 Keep current task in RCore 2018-06-17 11:34:03 +02:00
Florian Märkl
eeab1869c1 Schedule Tasks in r_cons_is_breaked() 2018-06-17 11:34:03 +02:00
Florian Märkl
f449ae66f5 Fix Command History and Quit 2018-06-17 11:34:03 +02:00
Florian Märkl
88fa23e53a Add r_core_cmd_task_sync() 2018-06-17 11:34:03 +02:00
Florian Märkl
90810d2ff7 Change task id assigning, Properly set task thread 2018-06-17 11:34:03 +02:00
Florian Märkl
b3714f6fdf Initial Task Scheduling Implementation
Fix Creation and Deletion of tasks_queue
2018-06-17 11:34:03 +02:00
sivaramaaa
55d9aa1c93 Added autocompletion for remaining t commands 2018-06-10 21:04:57 +02:00
sivaramaaa
772ada399d Add autocompletion for pf.fmt.ele 2018-06-10 03:16:11 +02:00
sivaramaaa
5830198378 Add autocompletion for ts and fix te query 2018-06-10 03:16:11 +02:00
pancake
b75cd5239f Fix memleak reported by coverity 2018-06-03 18:17:27 +02:00
sivaramaaa
e5bbaffbfe Refactor code to change R_ANAL_OP_MASK_ALL to appropriate value 2018-05-31 19:05:54 +02:00
pancake
38d6dada8d Implement {flag} to get flag size 2018-05-30 13:00:39 +02:00
radare
d461644977
Add --with-libr and deprecate --with-{nonpic,pic,merged} (#10212) 2018-05-28 17:14:49 +02:00
Luca Di Bartolomeo
80c92bd01e Added ag autocompletion + final ag* fixes (#10187)
* Added ag autocompletion + shortcuts hidden when graph not interactive
* Renamed command 'agt' to 'abt'
2018-05-28 20:06:02 +08:00
pancake
b63e146300 Fix ft help message and install flag tags file 2018-05-27 15:55:33 +02:00
radare
6da28493f5
Initial work on using idpool+idstorage from RBin + initial new RBin.open() api (#10160) 2018-05-22 17:48:34 +02:00
pancake
31ad955bab Use r_io_read_at instead of r_core_read_at which is now deprecated 2018-05-21 23:06:00 +02:00
sivaramaaa
97de3ff035 Manage types enum more properly (#10139) 2018-05-21 01:54:50 +02:00
pancake
4c2cdaf3a2 Autocomplete for 's+ ' 2018-05-19 01:29:00 +02:00
pancake
19044a7e33 Fix crash in dmh when creating a new core
- the cons->user changed and it segfaulted in r_cons_is_breaked()
2018-05-19 01:01:51 +02:00
Adrian Studer
8b1257f12f Always return sorted xref/ref lists (#10070) 2018-05-16 10:18:12 +02:00
pancake
d6971f71b5 Fix last covs 2018-05-06 13:19:27 +02:00
Riccardo Schirone
b703dfbf17 anal/xrefs: single, global xrefs API
* several bugfixes
* Fix xrefs/refs confusion with asm.cmt.refs
* Also check if xref source is valid offset
* Fix ax* to show type of ref
* anal/xrefs: pass the right hashtable to mylistrefs
* r_anal_refs_get should use anal->refs, not anal->xrefs
* anal/fcn: add xref also when there's a CALL to a noreturn function
* projects: use radare2 output of ax command to save/restore xrefs
* core/cmd_anal: when analyzing calls, we should use REF_TYPE_CALL
* core/canal: use xrefs API, because the list is a just a copy
* core/canal: rename "loc." entries to "fcn." when a CALL is found
* sort xrefs to make results consistent
* core/canal: avoid recomputing function every time during `aan`
* anal: move fcn_refs/xrefs functions to the xrefs.c file
* core/canal.c: avoid iterating fcn xrefs list
* anal/xrefs: compute fcn xrefs by analyzing fcn addresses
* remove other unused functions
* anal/xrefs: remove fcn_xrefs_add and fcn_xrefs_deln
* anal/xrefs: remove old fcn->refs/xrefs
* anal/xrefs: directly store RAnalRef objects in the hash table
* libr: prevent memory leaks when using refs/xrefs
* anal/xrefs: merge anal/ref and anal/xref and clean API

Big xrefs/refs refactoring that provides a more uniform and simple API.
It avoids changes to refs/xrefs except through the API and it keeps all
xrefs/refs info in one single place, to improve consistency.

Thanks to:
Riccardo Schirone <sirmy15@gmail.com>
pancake <pancake@nopcode.org>
rene <rlaemmert@gmail.com>
2018-05-04 21:40:47 +02:00
Khairul Azhar Kasmiran
cbe9a12be2 Fix $$$ when in nested cmd (#10010) 2018-05-04 20:08:21 +02:00
Khairul Kasmiran
2faadf6d86 r_cons_singleton() 🠊 r_cons_singleton () 2018-05-02 21:36:08 +08:00
Paul I
cc90ec6be5 [WIP] Move hardcoded paths to r_userconf.h (#9959)
* Move hardcoded paths to r_userconf.h

* Add R2_HOME_* macros

* Some cleanup
2018-04-28 10:02:55 +02:00
Khairul Azhar Kasmiran
41b2b25593 Fix #9835: $$$ - current non-temporary virtual seek (#9971) 2018-04-27 18:41:29 +02:00
pancake
5a899f2846 Add r_th_try_pause() and improve task threading support 2018-04-25 12:30:57 +02:00
pancake
fce51ed9d1 Dont pause bg tasks, avoid deadlock, needs proper fix 2018-04-24 23:11:08 +02:00
pancake
19c4f5223c Fix a lot of things broken in previous merged PRs. grrrrrr 2018-04-24 11:32:51 +02:00
Khairul Azhar Kasmiran
ec75785c7c Highlight seek line using different background color (#9853) 2018-04-24 09:51:14 +02:00
radare
a30c5c3722
Initial work on supporting pauseable CoreTasks (#9921) 2018-04-20 00:25:33 +02:00