Commit Graph

149 Commits

Author SHA1 Message Date
Anton Kochkov
e11b2a9145
Some Coverity defect fixes (#15626) 2019-12-13 11:25:19 -06:00
pancake
5a4178a9b2 Fix project data saving/loading related to flag/fcn/meta order ##projects 2019-08-10 14:33:08 +02:00
pancake
a36faaeac3 Fix projects, add of help and improve gb again 2019-07-31 05:34:48 +02:00
pancake
0e31f4935e Assertify the IO API a bit more 2019-07-31 05:34:48 +02:00
pancake
90fd81ca81 Fix warnings here and there 2019-05-14 10:44:19 +02:00
andry
1e9866bc7b Fix #11385 - load offset from project 2019-05-07 09:27:22 +02:00
pancake
08f3b768d1 Save aliases in projects 2019-03-25 04:40:16 +01:00
David CARLIER
7ea94bfb07 Few code cleanups (#13369) 2019-03-13 13:47:34 +01:00
David CARLIER
d9a15aa661 Further usage of thread debug (#13359) 2019-03-13 10:47:57 +01:00
GustavoLCR
f8fed5c38a Fix #13252 - Fix path with spaces in projects ##projects 2019-03-09 02:59:42 +01:00
radare
73f76a99b2
Make RCons.is_interactive() into the RConsContext and improve loading projects in tasks ##cons (#13132) 2019-02-18 06:20:01 +01:00
Riccardo Schirone
e5b4d9294c Use RSpaces in RFlag ##refactor 2019-02-03 09:06:45 -06:00
Maijin
0fba1dd2d4 Use pj in Pj 2019-01-20 11:40:05 +01:00
dav1901
a6b44e03fe Fix warnings (#12309) 2018-11-25 01:46:57 +01:00
Maijin
34abfd6d64
Remove all S commands ##refactoring 2018-10-30 13:23:18 +01:00
pancake
41ec949204 Fix #11112 - Rename {srwx,flags,perms} to perm. (-21 LOC)
Unify R_IO, R_BIN, R_BP, .. into R_PERM_* using 1 letter syntax
2018-09-22 11:31:45 +02:00
Florian Märkl
2883398942 Fix #11081 - Transient Tasks (#11214)
* Make r_th_free() not kill the thread
* Transient Tasks
* Add transient info to & list output
* Use refcounting for Tasks
2018-08-23 13:49:28 +02:00
cyanpencil
b747592598 Add asm.flags.real option disabled by default 2018-07-05 00:55:51 +08:00
cyanpencil
c90d548082 Fix linking error in flag.c 2018-07-05 00:55:51 +08: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
rrreeezzz
beb51dc85e Delete 'notes.txt' when a project is deleted. 2018-04-23 18:16:37 +02:00
pancake
2d660466ee Fix double-free in projects 2018-04-15 17:41:18 +02:00
pancake
ed48dc0940 Fix last covs 2018-04-15 10:56:12 +02:00
pancake
0487c52169 Remove project directory if empty with P- 2018-03-05 12:11:54 +01:00
pancake
7f07d52008 Fix #9550 - UAF in VVOOO 2018-03-05 11:20:15 +01:00
Jay Bhavsar
1b03ccf6c0 Fix #9500 - remove projects 2018-03-05 10:14:00 +01:00
Ariel Schon
30278ae14f Autocomplete project open (#9496)
* Added initial code for file completion - also completes from CWD :(
* Changed to use near-same code as in the 'Pl' command, still shows current directory files??
* Added comparison to select only the similar results. However, they are weirdly displayed.. UTF?
* Previously I pointed tmp_argv to foo, which was beeing freed.. I pointed it to a new string (r_str_newf). Now it works!
* Added check to make sure projectspath is not null.
2018-02-24 19:15:55 +01:00
pancake
52d93207af Initial de-rcorefile-fication 2018-01-10 13:45:37 +01:00
Rene Laemmert
a58ecb547c added simple project saving (#8800) 2017-11-07 17:45:13 +01:00
pancake
e12051c40d Enhance axtj again by adding flag + realname and fix warnings 2017-10-18 03:07:39 +02:00
condret
23ff2e0259 Fix multifiles for projects (#8635)
* store files and their corresponding maps

this is a hack, and needs rethinking

* Use empty file.path in project rc to indicate new style rc with on commands.  Make -p imply -- to further enable this.

* Some horrible hacks to make things work a bit smoother.

* fix maps in projects
2017-10-18 01:27:49 +02:00
Fangrui Song
b496b8804c Fix a mem leak in r_core_project_save (#8400) 2017-09-01 19:31:53 +02:00
pancake
52d5b1fec1 Fix sections for projects 2017-08-27 16:37:18 +02:00
condret
2f201bded0 opsalamance - merge the big siol branch
- Thanks @MaskRay and @condret
2017-08-22 09:42:16 +02:00
alvarofe
2e462ec8f0 Bring RIODesc from SIOL and cleanup 2017-08-18 01:31:57 +00:00
Anton Kochkov
246dd7f94a Fix more big memory leaks 2017-07-30 16:50:51 +08:00
Anton Kochkov
8041b3c284 Fix a few leaks 2017-07-29 20:30:02 +08:00
pancake
1b854be75e Add file.lastpath to fix regression in projects using malloc:// 2017-05-29 14:02:50 +02:00
Florian Märkl
6e1595d513 Set prj.name before saving a project to save that value correctly (#7485) 2017-05-14 23:17:37 +02:00
pancake
52dc44bc50 Honor user settings after loading the project when no bin info is found in RBin 2017-05-11 23:02:51 +02:00
pancake
4bd931731b Add arm-ios-{16,32,64} noreturn function types and enhance tail call analysis
- In addition JMP to imports are considered end of function
- Add iOS arm/thumb noreturn function type definitions
2017-04-12 03:16:59 +02:00
pancake
7db1a11d33 More reindent and use R_EMPTY instead of {0} 2017-03-25 02:30:00 +01:00
davidpolverari
1fb422b532 Fix #6162 - Renames r_str_concat to r_str_append 2017-03-16 22:29:49 +01:00
Khairul Azhar Kasmiran
3f62efdd56 Using R_SYS_DIR consistently in project code (#6983) 2017-03-11 09:39:54 +01:00
xarkes
94391a2106 Added warning when loading project with different binary (#6958) 2017-03-10 10:41:23 +01:00
xarkes
050f9c7c88 Fixed r_io_is_valid_offset: io->files is NULL when opening projects (#6963) 2017-03-09 23:35:54 +01:00
Rene Laemmert
a4191fc37c Add on*, file.offset and file.info to be able to save projects for files opened with -n -m (#6928) 2017-03-07 20:08:02 +01:00
Sven Steinbauer
91024d0d76 Add Pnx command for project notes (#6779)
* Notes command parsing

* Notes command parsing

* Add Pnx command
2017-02-14 14:52:23 +01:00
davidpolverari
a97a3c9d7c Fix #6723: Ps - project save - allow names with a hyphen (#6738) 2017-02-08 23:48:23 +01:00
SchumBlubBlub
6c00c9e2d5 Reorganize string macros 2017-02-06 00:00:03 +01:00