Commit Graph

265 Commits

Author SHA1 Message Date
Luca Di Bartolomeo
800fa1b909 Some improvements to the visual color editor VE (#10979)
* Feat: select background color in visual color picker
* Feat: various enhancements to visual color editor

Added truecolor support
Made initial help more helpful
Added h/l keys to switch colortheme
Added c key to change the command used to generate the preview
2018-08-08 12:12:28 +08:00
cyanpencil
515950c559 Added color palette support to visual types menu 2018-07-23 11:11:15 +08:00
Luca Di Bartolomeo
13a2cb344a [WIP] Colorize function arguments and variables part 2 (#10777)
* Colorize comments that hint type of data
* Use new colors for comments that hint type of data
* Colorize local variables and args in disasm
* Fixed leak in r_anal_var_all_list()
* Refactoring + rename color func_arg* to func_var*
* Updated all color themes for func_var* colors
* Directly query sdb for faster and cleaner var colorizing in r_colorize_opcode
* Remove hackish r_core.h include in print.c and use callbacks instead
2018-07-20 12:45:51 +02:00
sivaramaaa
87267a9e35 Fix noisy output in afta 2018-07-17 23:16:41 +02:00
Florian Märkl
16d72de010 Use OneShot for cons->event_resize 2018-07-12 11:36:13 +02:00
pancake
bab054835f Fix warnings and make omo depriorize the new map by default 2018-07-08 23:11:37 +02:00
Vanellope
47f0788cf0 Fixed a few covs 2018-06-29 13:48:25 +02:00
pancake
79b898fd15 Improve vv: vvR, vvd and colorize title 2018-06-28 05:02:51 +02:00
pancake
4e18271eb7 Handle JK in vv<tab>, add _hud and improve vv? help message 2018-06-28 03:15:18 +02:00
radare
4924d1ff1e
Improve vv visual function browser and add afls to sort function list (#10525)
* Improve vv visual function browser and add afls to sort function list
* afls->afl+, sort afls help
* afls: new command (the old afls is now named alf+)
* Fix glitch in vv and fix behaviour in vb: and vbF
* add the ability to select column with tab to scroll with jk in disasm
* add colors
* enter seeks to the function
* var list row selector fixed
2018-06-28 00:54:50 +02:00
Florian Märkl
f449ae66f5 Fix Command History and Quit 2018-06-17 11:34:03 +02:00
vane11ope
cf8c87a24b fixed a coverity found in vmenus 2018-06-17 01:01:09 +02:00
pancake
7fb3381f80 Fix last covs 2018-06-11 11:48:22 +02:00
pancake
95af694ef9 Do not sprintf after r_str_newf 2018-06-10 21:15:23 +02:00
Paolo Monti
b77e26a341 Added ability to rename variables far from cursor (#10309) 2018-06-10 21:13:03 +02:00
Synray
8aa87a3820 Add cons_pal_len 2018-06-10 03:27:53 +02:00
sivaramaaa
c858dae72c Honor op mask in r_core_anal_op 2018-06-10 03:17:33 +02:00
sivaramaaa
e5bbaffbfe Refactor code to change R_ANAL_OP_MASK_ALL to appropriate value 2018-05-31 19:05:54 +02:00
Rene Laemmert
a5fc453b72 Fixes slow vmenu pds (#10158) 2018-05-22 16:35:02 +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
pancake
a23212b464 Add 'A' and 'd' keys in visual panels 2018-05-10 10:51:35 +02:00
Khairul Kasmiran
2faadf6d86 r_cons_singleton() 🠊 r_cons_singleton () 2018-05-02 21:36:08 +08:00
pancake
4f83f9c06d Fix non-null terminated string in asm.meta=0 2018-04-23 02:14:48 +02:00
Florian Märkl
cee122e9df Make r_cons_rgb_str() safe (#9938) 2018-04-21 11:31:24 +02:00
pancake
848981912f Fix last covs, and some reindents 2018-04-11 10:25:22 +02:00
pancake
5d6e22888e Vr now toggles asm.*hints 2018-04-11 09:19:48 +02:00
sivaramaaa
4f87b3c4e0
Fix build,Add missing arg to r_cons_any_key (#9860) 2018-04-11 07:51:04 +05:30
pancake
17dfb2d3d4 Reimplement VbC in C and drop it from Vcjr 2018-04-11 03:00:05 +02:00
pancake
1adac87918 Update sdb-1.1.0, update calls to sdb_fmt() 2018-04-10 23:52:47 +02:00
pancake
fe7ae5d0af Fix last 20 coverity issues 2018-03-19 11:51:04 +01:00
Florian Märkl
d6e3036322 Propagate changes of fcn->_size in anal->fcn_tree 2018-03-18 15:11:29 +01:00
Florian Märkl
93d9f4ec66 Add mask parameter to r_anal_op() 2018-03-16 11:10:15 +01:00
redmed666
24e076e19e Fix #9595 (#9673)
* Added an address mask inside the RAnalEsil struct in order to be sure that the address accessed is relevant with the asm.bits of the file + Changed the calls to r_anal_esil_new

* Corrected the addrmask in r_anal_esil_new

* RTTI: Read MSVC Complete Object Locator

* RTTI: Read MSVC Class Hierarchy Descriptor

* VTable End on Reference

* RTTI: Read MSVC Type Descriptor

* RTTI: Read MSVC Base Class Array, Better Printing

* Add anal.cpp.abi

* Minor Code Style Changes in RTTI

* Fix rahash2 entropy to show non truncated double (#9629)

* Anal - whitespace fixes

* Honor CFLAGS on the static build test compilation (#9677)

* change coding style tab width to 4 (#9670)

* Meson: use more built-in options (#9678)

* Add support for extended regex in asm search (#9675)

* Fix #9665 - Backwardly handle scr.color={bool}

* Fix #9676 - Infinite loop in ecs with scr.color=2

* Adding help for redirection (#9679)

* Refactores function r_str_split_list to receive the character to split by (#9672)

* Fix #9666 - lines with comments do not use Unicode reflines

* Fix uninitialized optypes_list issue in cmd_debug

* update asan.sh to actually take the env for ASAN

* removed incorrect return (#9685)

* Fix UB in ESIL

* Initial import of the CoreUndo API and uc command

* Initial implementation of cmd.pdc to select pseudo-decompiler

* Handle recursive pdc calls

* Fix RPrint.strconv_mode memleak

* Fix leaks in RSyscall.srdb

* Use r_syscall_ref to avoid dblfree-or-leak issue

* Arm thumb/thumb selector for the armass (#9681)

* added function to translate number to imm12
* added function to get thumb shifts easily
* added selector, newfangled implementation of adc
* add bitmask for command suffixes
* added new routine for parsing suffixes to opcodes. Error check added in getnum. Bugfixes.

* Few improvements to 8051 memory mapping (#9686)

* update memory map when idata/sfr/xdata regs change
* set address space name on map
* fix regression, remove debug output
* fix regression, enable map name

* Some fixups for #9682 (#9688)

* Fix: coredump generation for huge programs (#9680)

* Refix #9666 - lines with comments do not use Unicode reflines

* Removed code unnecessary due to dcf3db0250

* Fixed free const warning

* Fix another memleak in RSyscall

* Fix more memleaks

* Fix leak in RConsPal.rainbow

* Fix 18K leak in anal.x86.cs

* Fix some more memleaks in disasm and fix issue in str overlap

* Fix memleak in RCore.anal_refs and fix regression

* Revert "Fix some more memleaks in disasm and fix issue in str overlap"

This reverts commit a902df837b.

* Fix memleak regressions

* Bring back another memleak fix

* Fix an undefined behaviour in RParse.filter

* Fix memleaks in disasm.c

* Add cundo.c to Meson (#9694)

* Bring back an ugly buffer pack access issue to make it work

* Cast to void * in R_FREE (#9692)

* Set anal.cpp.abi to msvc for pe

* Add better help for av

* Split avr into avr and avra

* Make av, avr and avra breakable

* Add RTTI struct specific print functions

* RTTI: Support MSVC x86_64

* PE: Fix too short section name.

* PDB: define a constant to store the max length of a section name and use id.

* PDB: dump the size of structure and union in JSON mode.

* Fix cast issue in eprintf for debug.core.linux

* Move the asm and anal plugins for x86.udis to extras

Available via r2pm -ci udis86

* Remove more udis86 references

* Fix warnings

* fix pcache ptr-fuckup

* Fix defragger theme

* Fix crash in asl and fix its behaviour

* Fix memory leak in blaze anal and silent a warning

* Implement ?q to be like ?v but in quiet mode

* Fix Meson build

* Add missing 8, 16, 32 bit registers (and flags) for the linux-arm64 debugger reg profile

* Fix 'Cannot find function at UT64_MAX message'

* Add some Pingu to fortunes.fun

* Loading Core (x86, x86_64, aarch64) (#9669)

* Ragg2-cc -> Ragg2 merge (#9658)

- change of 'access' function for 'r_file_exists' for windows portability
- several changes in the way ragg2.c is done, see PR #9658 pancake comments
- change function for the remove of 'file'.text
- open changed for r_file_dump
- some elt of cEnv_t are now const
- skip all the pointers verification in set_cEnv but do them in check_cEnv instead
- add 2 r_str_sanitize for file and CC in parseCFile
- rewrite the removal of .o, .tmp, .bin, .s files, with cleaner code
- changed the long command with sed and grep to 2 C functions.
  - The function parseCompiled that basically does what the command was doing
  - And r_str_stripLines that is equivalent to "grep -v" (maybe we should put this one in str.c ?)
- simplify a bit getCompiler function with a const char* array
- add ternary operator for armOrMips condition
- use r_file_path for finding path to compilers
- new file created in libr/egg which contains all the C file parser
- modifications of 2 files to match the change :
  - libr/egg/r_egg.h
  - libr/egg/Makefile
- the function r_str_stripLine is simplier (the mallocs wasn't needed)
- the function r_str_stripLine is moved to libr/util/str.c
- libr/include/r_util/r_str.h is changed accordingly

* Revert bd3465c9a3fbeddf83980dc07eaac588320f7d (warning remains fixed)

This reverts commit titled "Fixed free const warning".

* Added an address mask inside the RAnalEsil struct in order to be sure that the address accessed is relevant with the asm.bits of the file + Changed the calls to r_anal_esil_new

* Corrected the addrmask in r_anal_esil_new

* Cleanup expressions in esil.c (addr &=...)

* Corrected r_anal_esil_new definition in r_anal.h

* Added an address size max in the ESIL config (maximum address size reachable by the ESIL VM)
2018-03-16 10:45:17 +01:00
pancake
5da2685463 Prefix ec escape code with x1b to not look weird 2018-03-11 17:38:21 +01:00
xarkes
d5f57a7ccb Fix fg+background colors handling 2018-02-24 19:14:55 +01:00
xarkes
b2b647a5f7 Renamed COLOR_MODE constants 2018-02-24 12:04:48 +01:00
xarkes
5e097dbae1 Killed cons->truecolor in favor of cons->color 2018-02-24 11:47:38 +01:00
xarkes
7e98502666 Code refactoring for the color palette handling
* RConsPrintablePalette initialization
* Remove scr.rgbcolor
* Added RColor support to cons_pal_parse
* Added warnings about pal_set and missing event_update
* Code cleaning (char* to RColor), less rgb_parse
2018-02-23 19:00:47 +01:00
pancake
5194e9012a Honor scr.color in Vbf 2018-02-09 13:59:27 +01:00
pancake
cde9613e46 Fix #9254 - Resize crash in af;VVv 2018-01-27 23:39:02 +01:00
pancake
0cb277c2a6 r_str_ansi_chop -> r_str_ansi_trim, r_str_chop_path -> r_str_trim_path 2018-01-08 03:33:01 +01:00
pancake
fb43dd401a Fix #9060 - base64 encode strings in pfj s 2017-12-22 12:15:51 +01:00
pancake
7692032542 Fix Vdx 2017-12-16 02:01:28 +01:00
xarkes
805cc944b8 Add an command that works like Vdn, to rename flags in anal refs 2017-11-26 20:10:49 +01:00
pancake
2c39e67d80 Initial implementation of the 'ff' command to check the distance between flags 2017-11-23 14:34:07 +01:00
Khairul Kasmiran
ce42385b96 r_meta_del: removed unused str param 2017-10-30 23:01:46 +08:00
alvaro
b03a2587f3 Fix NULL dereference
When specifying no index while using Vbc, atoi(num) crashed r2
2017-10-23 16:39:45 +02:00
Lowly Worm
13f7995120 let you rename vars using vmenu 2017-09-27 00:01:55 -07:00
Lowly Worm
c8dd3db664 just need to fill in the todo for renaming vars 2017-09-26 23:32:34 -07:00
Lowly Worm
1f0ead7b0a make the variable view actually scroll vars 2017-09-26 23:25:20 -07:00