Commit Graph

320 Commits

Author SHA1 Message Date
NighterMan
371ebd35d8 Fix for #3285 (Increment pc before executing esil op)
- Increments pc before evaluating the esil op, instead of doing it after
- Fixes CALL instruction at anal_x86_cs.c
2015-09-16 13:03:21 +02:00
pancake
b515a34676 More stdboolification 2015-09-14 12:35:38 +02:00
pancake
8eb71af9ed Internal reg prefix is now $, 85008 for curpc, TRAP for traps 2015-09-14 11:31:54 +02:00
pancake
9f95d5c1aa Initial implementation of asm.esil.anal. WIP 2015-09-10 00:34:21 +02:00
pancake
d9c934f6b4 Fix some recent covs 2015-09-09 11:16:49 +02:00
pancake
7dc293b427 Fix #3254 - Invalid range issue in r2 -A 2015-09-09 10:55:36 +02:00
pancake
930c8e7535 Implement esil.iotrap. Handle invalid read/write ops 2015-09-09 01:17:55 +02:00
pancake
b40a1e80a4 Add scripting support for syscall handlers in ESIL 2015-09-08 02:53:33 +02:00
pancake
3d3dff77ff Use API instead of RCore.cmd in "aaa" 2015-09-07 18:30:29 +02:00
pancake
10bb7e9a4d Honor ^C in aar 2015-09-07 18:20:29 +02:00
pancake
fe30154228 Honor ^C in aac 2015-09-07 18:12:08 +02:00
pancake
195e1d9ea4 Add aan as an alias for .afna@@fcn.* 2015-09-07 00:36:18 +02:00
pancake
90c22d90ab Fix #3162 - Duplicate(or more) on analysis warnings 2015-09-07 00:30:48 +02:00
pancake
4f7f75c0f5 Fix regression introduced in afi 2015-09-01 00:32:23 +02:00
pancake
6d8cf6b960 Fix aflq 2015-08-31 23:57:57 +02:00
David Manouchehri
997d102719 Typo correction. 2015-08-31 12:46:42 +02:00
pancake
67b4139e7e More goodies for the Visual panels 2015-08-31 11:53:03 +02:00
pancake
ecf5205e64 Add support for remote aliases with =$ command
For example
	=$dr   - `dr` will do `=!dr`
	=$-dr  - unset that alias command
2015-08-20 02:26:57 +02:00
pancake
4a22a56c12 Fix #3111 - Fix afv function local variables project save/restore 2015-08-19 01:51:56 +02:00
pancake
0574542d6d Fix #3109 - Implement drpj 2015-08-19 01:15:55 +02:00
pancake
1400547fb2 Seek and restore section address in aaa 2015-08-14 13:58:33 +02:00
pancake
e3a1bc1829 Run afna after aac in aaa for better results 2015-08-14 14:03:19 +02:00
pancake
1f277f72e9 Add asm.indentspace and implement .atd and atl 2015-08-12 10:40:24 +02:00
Riccardo Schirone
6b47a68c91 core/anal,cmd_anal;anal/bb,data,fcn: general cleaning
* core/cmd_anal: extract cmd_anal_all function
* core/anal;anal/bb,data,fcn: indentation
* core/anal;anal/anal,data,fcn: remove dead code
* core/anal: remove macros in the middle of function
* core/anal: avoid blocks in the middle of functions
* core/anal: fix macro name R_ANAL_BB_HA_OPS -> R_ANAL_BB_HAS_OPS
* core/anal: fix if/else if/else
* core/anal: remove r_ prefix from static functions
2015-08-11 08:57:01 +02:00
pancake
de072e7b27 Make aae handle more memory references for ARM-thumb 2015-08-09 03:23:40 +02:00
pancake
f1cc477178 Enable anal.calls for aaa and remove debug printf 2015-07-28 22:44:42 +02:00
pancake
b2f0c86bb1 Add aat command to analyze all consecutive functions in section 2015-07-28 18:57:01 +02:00
pancake
80c6d73ae6 Add afr and anal.calls, ensure we flag all functions (wip) 2015-07-27 23:56:11 +02:00
Álvaro Felipe Melchor
7dec5d289d Fix two double frees in agn command 2015-07-25 01:26:58 +02:00
Álvaro Felipe Melchor
050c2fe9f8 Fix some COVS 2015-07-25 01:26:54 +02:00
pancake
43ecb3939e Better aae, more hits, better emulation, fix boundary bug 2015-07-24 18:19:11 +02:00
pancake
c0dfc507fe Initial WIP implementation of aae for linear ESIL code analysis 2015-07-24 15:20:32 +02:00
Riccardo Schirone
5ef6454ee0 core/graph: sdbization of RAGraph
* core/graph: refactor check_changes of agraph
* core/graph: udpate info when getting the Sdb from the graph
* core/graph: add in sdb info about nodes
* core/graph: add "agraph.delta_x" to rebase all coordinates and make
              them unsigned integers
* core/cmd_anal: add 'agg*' to print r2 commands to generate the graph
* core/cmd_anal: add helps to 'agn' and 'age' commands
2015-07-24 14:00:11 +02:00
Riccardo Schirone
67735a34ed core/cmd_anal: fix base64 body for 'agn' command 2015-07-24 13:50:06 +02:00
Riccardo Schirone
3738b5fe59 core/graph: make the title a field of RAGraph
* core/graph: add r_agraph_set_title function to the API
2015-07-19 01:35:01 +02:00
Riccardo Schirone
41c88042c9 core/cmd_anal: remove non existent command from help 2015-07-19 01:32:42 +02:00
pancake
e059474761 Fix aar in 2331 PE bin 2015-07-17 11:47:52 +02:00
pancake
939b524a45 Fix aar from aaa. Run aac from aaa 2015-07-16 16:29:40 +02:00
pancake
1ca19fe194 Run aar from aaa 2015-07-16 13:11:47 +02:00
deffi420
9d92712cea Add aar command to search xrefs in code
- Ignore references to sections with vaddr=0
- Skip overlapping instructions in xref search
- Improve debugger mode support of `axa`
- Remove unused cmd variable
2015-07-16 00:32:18 +02:00
pancake
00556c9db6 Handle regalias in ar. Add aeip to init pc and use it in aei 2015-07-15 18:18:04 +02:00
pancake
390a0e61bc Fix some coverities 2015-07-15 15:08:56 +02:00
pancake
46a11b52b2 Add function flags with .afl* 2015-07-15 03:23:11 +02:00
Álvaro Felipe Melchor
0038c473b2 Fix PR #2935 2015-07-15 00:37:46 +02:00
Jeffrey Crowell
31172751d2 make the fmtstring portable in axtj 2015-07-14 17:51:36 -04:00
Riccardo Schirone
6d5d7a1fc9 core/cmd_anal: accept base64 body for 'agn' 2015-07-14 18:39:32 +02:00
Riccardo Schirone
66753a1050 core/cmd_anal: accept spaces in title and body for 'agn' and 'age' 2015-07-14 18:39:31 +02:00
Álvaro Felipe Melchor
aaa55ed98f Fix properly #2870 2015-07-13 23:28:46 +02:00
Riccardo Schirone
4eedd69a91 core/cmd_anal: implement ag-/agn/age/agg to work with core->graph 2015-07-13 13:48:31 +02:00
pancake
bdfbc4f076 Fix several COVs, and build issues related to appveyour 2015-07-13 11:21:21 +02:00