885 Commits

Author SHA1 Message Date
radare
33428f8938
Implement the missing bits in the triple-at ##core
@@@           # foreach offset+size iterator command:
x @@@=       [addr] [size] ([addr] [size] ...)
x @@@b       basic blocks of current function
x @@@c:cmd   Same as @@@=`cmd`, without the backticks
x @@@C:cmd   comments matching
x @@@i       imports
x @@@r       registers
x @@@s       symbols
x @@@S       sections
x @@@m       io.maps
x @@@M       dbg.maps (See ?$?~size)
x @@@f       flags
x @@@f:hit*  flags matching glob expression
x @@@F       functions (set fcn size which may be incorrect if not linear)
x @@@F:glob  functions matching glob expression
x @@@t       threads
x @@@r       regs
2019-04-15 01:49:34 +02:00
Óscar Carrasco
73e36a9719 Implement pfc C struct format command ##print 2019-04-13 16:09:29 +02:00
radare
a756bfca4c
Fix large disasm issue with invalids and handle @{xfs} ##print
* Fix segfault and trim whitespaces to fix pd @x:9090
* Use maps and io.va=1 to make it work instead of hacky memcpys
* Fix p8f and bring back core->fixedblock to make pd/pD@x:/len work again
2019-04-09 02:56:53 +02:00
Óscar Carrasco
3e2bd4e2de Hide switch/case refs from pds ##print 2019-04-07 09:58:50 +02:00
pancake
29b4a5e31a Fix 2 crashes found with asan in the hexdump 2019-04-05 02:39:38 +02:00
Khairul Azhar Kasmiran
660f1634be prc: Don't Color_RESET if scr.color=0 (#13594) 2019-04-01 01:34:09 +02:00
Khairul Azhar Kasmiran
f8dec83968 Fix Visual jk - prc interaction (#13578) 2019-03-31 18:22:07 +02:00
Khairul Kasmiran
3109c4a627 Remove some whitespace from cmd_print.c 2019-03-31 18:25:04 +08:00
Óscar Carrasco
4b22d1cbbe Fix #12041 - fix truncated pf output ##format 2019-03-30 22:54:17 +01:00
Khairul Azhar Kasmiran
c5522a963d prc honors io.unalloc ##print 2019-03-30 21:20:52 +01:00
Anton Kochkov
726e15054c
Fix #13451 - make afs work ##anal (#13558) 2019-03-30 07:17:15 -05:00
pancake
860d76bcfa Add the ability to open .h files with the 'pfo' ##types 2019-03-29 16:53:44 +01:00
radare
d3d53ac834
Add pfo dex|macho and bind structs to offsets with Cf via .iH* ##format 2019-03-29 13:00:49 +01:00
pancake
2fbc484f57 Fix #13511 - pqz -> pqs and psq as an alias for pqs 2019-03-27 10:23:47 +01:00
Giovanni
8058018973 Fix #11133 - Remove buf_hex frield from RAsmOp ##refactor 2019-03-26 12:50:13 +01:00
Vanellope
49f54d3aa5 Vpp"c now properly rotates ##visual 2019-03-22 20:46:37 +01:00
Vasilij Schneidermann
a4b76d85dd Support asm.pseudo=1 in pad command ##disasm 2019-03-22 00:43:40 +01:00
Óscar Carrasco
2bbcfd908c Implement p-e (entropy bar) ##print 2019-03-19 17:37:23 +01:00
pancake
71c904bcce Support colors in prx (abusing px) ##hexdump 2019-03-18 17:53:47 +01:00
Lowly Worm
30264306a0 Make function to allow grabbing the flags by order of importance in flagspace ##core
* use relsub addr
* kill i2, grab top of list when not in preferred spaces
* Add r_core_flag_get_by_spaces
* Remove r_flag_get_i2 and use r_core_flag_get_by_spaces
* Fix fcn name from flag
* Better consistency: flag_get instead of get_flag
* Quickpath for just one flag
2019-03-05 23:43:49 +01:00
pancake
38a0343e62 Implement visual decompiler and fix the RConfigHold API ##disasm 2019-03-04 02:44:13 +01:00
radare
e31a91b84b
Fix crash in canvas, some leaks and random code cleanup (#13254) 2019-03-03 23:41:19 +01:00
pancake
a7518c7d0c Fix few warnings 2019-02-26 17:04:30 +01:00
Deepak Chethan
dadb421e48 refactored cmd_print.c to use pj.c (#13174)
* Refactored cmd_print.c to us pj.c
* Changed to r_str_trim_ro
2019-02-25 11:30:12 +01:00
Amith Venugopal
f7e1d66bf8 Refactor p-j using pj.c (#13170) 2019-02-23 01:31:19 +01:00
Riccardo Schirone
eae19137b9 Use macros for common flagspaces names instead of hardcoding them (#13175) 2019-02-23 01:31:06 +01:00
Deepak Chethan
7c807014b0 Added few pf examples ##print 2019-02-17 19:36:20 +01:00
Florian Märkl
dc960582c6 Fix agfJ 2019-02-15 11:26:46 +01:00
blenk92
bb91451b3f Use pj for agfj (and others) + rename pj_sn and pj_ksn to pj_N and pj_kN 2019-02-13 11:44:42 +01:00
radare
ad8c309078
Add asm.types=[0,1,2] - set verbosity level for function signature comments ##disasm 2019-02-13 11:33:24 +01:00
pancake
4cdc50feb1 Fix #13033 - Crash in pifjA 2019-02-10 03:03:47 +01:00
Itay Cohen
9bc762825f Fix empty json (#12979) 2019-02-03 12:05:36 -06:00
Riccardo Schirone
e5b4d9294c Use RSpaces in RFlag ##refactor 2019-02-03 09:06:45 -06:00
Javier Yuste
0ce09361c5 Fix #12934 - Crash in p- 2019-01-29 13:56:23 -06:00
Lowly Worm
38c9b17b17 fix glitch where pd--N and N > offset
closes #12897
2019-01-24 21:32:37 -08:00
Itay Cohen
9409e39ed4 Add new command: pifc and pifcj ##print 2019-01-24 00:11:11 +08:00
Florian Märkl
f80a47ab60 Move Palette to RConsContext to make RCoreTask less racy ##cons 2019-01-18 11:58:49 +01:00
pancake
7fdbdd93b7 Fix crash in pC 2019-01-16 16:21:10 +01:00
xarkes
32134ee8c6 Moved pd-- help message under pd? command (#12809) 2019-01-16 15:29:41 +01:00
Riccardo Schirone
320a258977
Remove flag list in RFlags and just use hashtable (#12703)
* Do not directly use flags->flags, but use r_flags_foreach functions
* Remove list of flags because unnecessary
* Do not free flagitem when we just need to change the name(aka key)
* Use skiplist to iterate, so we get order for free
* Use RIOMap instead of RIOSection which is being killed
* Free flagitems when ht is freed

There's already the hashtable that can serve to iterate all flagitems.
2019-01-14 14:15:12 +01:00
radare
ab3a7be704
Almost completely kill RIOSection from io and core (-218LOC) ##refactoring
* Use RBinSection, RDebugMap or RIOMap instead
* Remove omps command
* Fix segfault in ?E+
* Improve anal.eobjmp (bug spotted after almost killing iosections)
2019-01-13 03:07:51 +01:00
pancake
d83fa5c45d Add orangg avatar in ?E+ and implement r_str_list_join() ##visual 2019-01-11 09:59:17 +01:00
pancake
0087f46357 Initial implementation of visual gadgets ##visual
* Run any command at any position in the screen
* Crop the output of the command to avoid glitches
* Works in visual mode as well as in console
* Add support for visual gadgets in graph and panels views ##visual
* Implement pgm command to move gadgets around ##visual
2019-01-11 09:59:17 +01:00
pancake
e18be4b711 Implement "pt." command to print the current date ##print 2019-01-11 02:15:03 +01:00
pancake
f0c5be5c1d Fix #12711 - Fix hex.compact in pxa ##print 2019-01-10 19:10:09 +01:00
Paul I
b2c7f7ef6c Some fixes (#12670) 2019-01-07 00:29:23 +01:00
David CARLIER
d7cee490c7 Few compilation warning fixes. (#12630) 2019-01-03 21:55:14 +01:00
dav1901
ceeb25ce49 Minor code cleanups/fixes (#12595)
* Minor code cleanups/fixes
* use r_base64_encode_dyn
* Fix clang-analyzer warning(uninit var)
2019-01-03 00:30:06 +01:00
pancake
c40ddd3552 Several improvements in the Visual mode (help, tabs, ...) ##visual
- Remove the V@ command - not intuitive and a bit alien
- rotating print modes with tab was segfault because of UB
- Implement recursive interactive help
- Support ranged cursor selections (for pxd, pxb, pxq, ...)
- 'i' in pxb visual runs Vd1 to edit the bits under the cursor
- V' is no longer mixed with Vt
- Properly restore the print sub-modes in tabs
- Smart tab key hints (beter located and shorter)
2019-01-02 02:09:31 +01:00
pancake
b29f5bb54a Fix some issues reported by clang-analyzer 2018-12-31 05:36:14 +01:00