1037 Commits

Author SHA1 Message Date
sivaramaaa
c858dae72c Honor op mask in r_core_anal_op 2018-06-10 03:17:33 +02:00
David CARLIER
19160ff217 Fix macros redefinitions warning (#10284) 2018-06-07 09:41:55 +02:00
redmed666
cc3a5ddfe7 disasm.c: r_core_print_disasm_json prints a void object if it has not printed something else before (#10257) 2018-06-04 20:28:52 +02:00
Luca Di Bartolomeo
b119dad829 Add asm.lines.jmp and make asm.lines config var for all lines (#10254)
* First substition asm.lines with asm.lines.jmp
* ds->show_lines with ds->show_lines_jmp
* revert wrong substitutions
* rename asm.lines.jmp to asm.lines.bb
2018-06-04 16:03:58 +02:00
Khairul Kasmiran
58e48c8267 ec line_highlight -> linehl 2018-06-04 15:51:36 +02:00
Luca Di Bartolomeo
12cbb24980 Add asm.xrefs.fold to avoid gigantic graph nodes (#10243) 2018-06-03 01:14:22 +02:00
redmed666
f4973a93d4 disasm.c: Corrected result bool for r_core_print_disasm_json (lead to uncorrect value) (#10237) 2018-06-01 15:04:48 +02:00
sivaramaaa
e5bbaffbfe Refactor code to change R_ANAL_OP_MASK_ALL to appropriate value 2018-05-31 19:05:54 +02:00
radare
ce2dfbf0d6
Honor asm.cmt.col in pdJ (#10184) 2018-05-31 02:30:59 +02:00
redmed666
97182473be Fix #10223 (#10226)
* Corrected a condition on the first op
* modified r_core_print_disasm_json in disasm.c in order to know if something was printed before + cmd_print.c in order to take into account the previous result from r_core_print_disasm_json
2018-05-30 22:14:07 +02:00
pancake
05715bc3a5 Fix two gcc7 warnings (uninitialized and stack overflow) 2018-05-26 19:09:21 +02:00
Florian Märkl
f5fe86b790 Add r_cons_lastline_utf8_ansi_len() and use in ds_align_comment() 2018-05-26 18:27:29 +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
pancake
be89180e7b Cleaning up asn1 apis, standarize IS_* apis and some more cleanup 2018-05-21 22:13:07 +02:00
Khairul Azhar Kasmiran
08ffbf4001
asm.highlight works with ecHw even when it's not $$$ (#10146) 2018-05-21 21:40:43 +08:00
Giovanni
b4b3563567 asm.fcnlines > asm.lines.fcn (#10140) 2018-05-21 02:01:47 +02:00
radare
24d750aabd
Rename many asm.* vars (#10136)
* Rename asm.imm* into asm.imm.*
* Kill asm.fcncalls. it's not used anywhere
* asm.tabs* -> asm.tabs.*
* Rename asm.flags* into asm.flags.*
* asm.flgoff -> asm.flags.offset
* Missing asm.midflags catch
* Fix options for asm.flags.middle
2018-05-20 04:21:32 +02:00
sivaramaaa
49aa74e10f Refactor types and make array of struct work with ts (#10121)
* Refactor and Move anal/types.c to util/
* Make struct of struct work with .ts and fix ts*
* Array of struct works now with ts
2018-05-18 10:32:31 +02:00
Giovanni
855eb16d93 Refactor evars asm.lines.* (#10085)
* asm.linesout > asm.lines.out
* asm.var.submin fix
2018-05-18 10:29:00 +02:00
sivaramaaa
0adef36e84 Fix fcn maxstack issue in variable recovery (#10086)
* Fix afv commands and other issues
* Honor anal.vars
* Fix some issue in stackop due to inconsistent esil
* Fix afvd printing issue
* Fix vars summary and add afv* to help
2018-05-15 23:14:09 +02:00
Khairul Azhar Kasmiran
ec3861ba7b asm.varxs -> asm.var.access, asm.minvalsub -> asm.var.submin (#10088)
* asm.varxs -> asm.var.access
* asm.minvalsub -> asm.var.submin
2018-05-13 10:32:16 +02:00
Khairul Azhar Kasmiran
94b3ae12a8 asm.varsum -> asm.var.summary, asm.vars -> asm.var (#10083) 2018-05-13 04:03:35 +02:00
Khairul Azhar Kasmiran
f271f86a38 asm.varsub(_only) 🠢 asm.var.sub(only) (#10080)
* asm.varsub_only 🠢 asm.var.subonly

* asm.varsub 🠢 asm.var.sub
2018-05-12 10:54:54 +02:00
sivaramaaa
b4dd6530fe Add command afcf to print "return type function(arg1, arg2...)" (#10075) 2018-05-11 15:27:30 +02:00
Khairul Azhar Kasmiran
e32542aa85 arm asm.varsub supports asm.pseudo for fp (#10071) 2018-05-11 09:40:25 +02:00
radare
223232737a
Fix #8874 - pdf works as expected now :) (#10061) 2018-05-10 17:33:34 +02:00
Khairul Azhar Kasmiran
d1d68ad1cc Always escape backslashes for pdJ json (take 2) (#10059) 2018-05-10 10:43:08 +02:00
radare
9e08da0fa6
Improve build of libr.a and libr.dylib, fix and improve sys/ios-sdk.sh (#10046)
- Update spp and force hidden visibility
- Use R_API wisely
- RSys.prefix returns const things
- Use -install_name on Apple
- Fix merged lib visibility linking on Linux
- Use OSTYPE instead of BUILD_OS
- Honor crosscompiler-objcopy and support android like linux
- Add extra missing archives
- Fix for android
- Upgrade spp and sdb
- Skip libr. from symstall
- Add --enable-merged configure option
- Use --enable-merged on ios-sdk
- Upgrade sdb again for js0n
- Kill sys/ios-shell.sh
- Msvc dynamic build fix
2018-05-09 23:31:52 +02:00
Khairul Azhar Kasmiran
31f6d8ecaa
Always escape backslashes for json (#10057) 2018-05-09 22:23:27 +08:00
Khairul Azhar Kasmiran
ce3ddd5f6c Allow asm.highlight color change thru ec line_highlight (#10051) 2018-05-09 09:31:33 +02:00
sivaramaaa
bb2f7c9211 Refactor and optimize afta (#10043)
* Refactor the afta code little bit
* Optimize afta by just emulating previous N instruction to a call
* Remove dupe vars
* Fix some minor issues
* Change type_get_size to type_get_bitsize
2018-05-08 17:05:01 +08:00
Khairul Azhar Kasmiran
3fc604bb58
Realign RELOC comments (#10024) 2018-05-06 19:54:37 +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
pancake
709a9c58fe Improve leahints to handle UJMP references 2018-04-25 12:30:57 +02:00
Khairul Azhar Kasmiran
94605e3e67 Fix line highlighting of 2-operand insn (#9949) 2018-04-24 18:03:14 +02:00
Khairul Kasmiran
a9aae173c4 Minor renaming 2018-04-24 21:20:29 +08:00
pancake
455c9d7e37 Support .string in asm.meta=0 2018-04-24 13:43:49 +02:00
pancake
3a501a649e asm.highlight trespasses jump hints 2018-04-24 13:27:13 +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
pancake
4f83f9c06d Fix non-null terminated string in asm.meta=0 2018-04-23 02:14:48 +02:00
radare
22deac82f2
Add anal.gp2 to make gp resist emulation, need more experimenting with this workaround 2018-04-16 15:06:56 +02:00
Khairul Kasmiran
8f209fade2 Fix #9887: align esil func sig comment and do reflines 2018-04-16 18:55:54 +08:00
pancake
da81a6b36e Use r_meta_find_in() with asm.meta=false, the ranged sdb works now 2018-04-15 10:35:57 +02:00
pancake
6760b26376 Add asm.meta, and make magic when disabled. Fix sys/rebuild.sh cs 2018-04-15 02:29:03 +02:00
Khairul Kasmiran
7ff5a48d78 asm.emu.* ⮕ emu.* 2018-04-14 10:49:08 +02:00
pancake
59d8f4e280 Minor improvements here and there 2018-04-12 11:28:25 +02:00
pancake
f443be9dc8 Improve leahints 2018-04-11 18:40:43 +02:00
pancake
5d6e22888e Vr now toggles asm.*hints 2018-04-11 09:19:48 +02:00
pancake
1adac87918 Update sdb-1.1.0, update calls to sdb_fmt() 2018-04-10 23:52:47 +02:00