Commit Graph

8069 Commits

Author SHA1 Message Date
fcasal
a9d957ee25 Added json version of register telescoping (#10530) 2018-06-28 15:54:48 +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
radare
7747da5b2f
Kill anal.bb.split variable (asume true is good and by default) (#10522) 2018-06-27 21:20:23 +02:00
Vanellope
d6c42882a9 Implement vertical and horizontal split in panels (#10521) 2018-06-27 19:46:29 +02:00
fcasal
58c11e94cb Added json version of dp* (#10518) 2018-06-27 19:45:28 +02:00
Florian Märkl
7743169a9b Fix double unlock in task_join() (#10519) 2018-06-27 17:06:29 +02:00
Khairul Azhar Kasmiran
435b8dc47c Fix pdJ when asm.imm.str=true and asm.cmt.right=false (#10516) 2018-06-27 17:03:44 +02:00
Florian Märkl
c6a3b6bc49 Add tasks_running to RCore to reduce tasks overhead (#10514) 2018-06-27 12:59:23 +02:00
Rene Laemmert
443f41d139 Removed bin_load from cmd_debug.c (#10512) 2018-06-27 12:09:10 +02:00
pancake
15ff90059f Fix #10500 - oo reopens without debugger 2018-06-27 00:24:31 +02:00
cyanpencil
2745486b16 change cases flag format 2018-06-26 23:09:40 +02:00
cyanpencil
2050d8c4b7 Fix possible buffer overflow when scanning address 2018-06-26 23:09:40 +02:00
cyanpencil
a42ab667d1 Fix default case missing 2018-06-26 23:09:40 +02:00
cyanpencil
af956d26e8 Fold cases of switch in the same address 2018-06-26 23:09:40 +02:00
Florian Märkl
f18a01fb6a Fix a few warnings 2018-06-26 23:09:07 +02:00
Florian Märkl
7bc994803c Join Tasks using Lock 2018-06-26 23:08:24 +02:00
pancake
895fd8fe35 Try anal.jmptbl=true 2018-06-26 23:07:21 +02:00
Riccardo Schirone
2df06bd870 Fix ELF issue with null SHT entries (#10449)
* format/elf: extract function to avoid duplicated code
* format/elf: use ut64 to avoid errors in ELF32

Otherwise, while analyzing ELF32, -1 will be interpreted as the unsigned
value 0xffffffff, which is very different from -1 (0xffffffffffffffff).

* format/elf: fix symbols with shndx == SHT_NULL

Symbols with shndx == SHT_NULL should not be listed as symbols but they
should be available when other ELF structures (imports, relocs, etc.)
reference them.

This patch adds those symbols in the symbols_by_ord table but not to the
list of available symbols. Imports/relocs/etc. work by indexing symbols
by symbol index, so they are going to use the symbols_by_ord table and
make everything work.

Moreover, it refactors a bit the relocs function to avoid duplicated
code.

* bin: setimportd/setsymbold should clone the import/symbol
* bin/bin.c: free fields only when sym is not NULL
* format/elf: do not filter out symbols with size == 0 and consider sht_null symbols in shdr too.
* bin/bin.c: create R_STR_DUP macro and use it in _clone functions
* format/elf: when parsing symbols from phdr, stop at first UNK type/bind
* create some R_BIN defines to handle strings related to TYPE and BIND
  in RBinSymbols
* format/elf: add a doc
2018-06-26 13:48:53 +02:00
Giovanni
3e6f5a41de Blind fix coverity 1393602/1393610/1393603/1393609/1393606/1393608/1393605/1393607 (#10491) 2018-06-25 13:32:56 +02:00
Vanellope
14ec1592a7 More refactorings in visual panels
* bunch of refactoring and the split screen function has been added.
2018-06-25 10:46:22 +02:00
pancake
dae1ac91df Add anal.endsize (changes nothing by default, but fixes bugs if set to 0) 2018-06-25 00:31:28 +02:00
sivaramaaa
c091dd8bf2 Few fixes for type propagation (#10466)
* Few fixes for type propagation

* Strip spaces in type
2018-06-24 20:09:44 +02:00
Giovanni
a3c6f782cd Coverity - 24/06/18 (#10469)
* fix for coverity 1393580

* fix for coverity 1393579

* fix for coverity 1393577

* fix for coverity 1393578
2018-06-24 20:09:26 +02:00
Khairul Azhar Kasmiran
29d17a5d41 R_STRING_MAX_UNI_BLOCKS: max number of Unicode blocks that a UTF string can consist of (#10453)
* bin.maxuniblocks: max number of Unicode blocks that a UTF string can consist of

* Revert "bin.maxuniblocks: max number of Unicode blocks that a UTF string can consist of"

This reverts commit 0b1fcd3e49.

* Using compile time constant instead of option
2018-06-23 18:23:16 +02:00
sivaramaaa
31eeef0279 Initial work on type propgation (#10451) 2018-06-23 12:11:22 +02:00
Florian Märkl
5e35ad898b RConsContext (#10450)
* Add RConsContext
* Swap cons in tasks using RConsContext
* Create cons context for background tasks
* Move event_interrupt to RConsContext
* Fix breaking main cons from signal
* Make r_print_is_interrupted() use callback
2018-06-23 12:10:13 +02:00
Andrea Sindoni
238cbbfc11 Add stop address info to the "di" command (#10445) 2018-06-22 13:17:40 +02:00
Florian Märkl
e3849843c5 Make r_core_task_del() thread safe (#10448) 2018-06-22 13:16:29 +02:00
pancake
c8043844f8 Fix !!!? and !!!- behaviours 2018-06-22 11:27:56 +02:00
Giovanni
9620ffab16 Implement !!!: to register new autocompletion logic (#10407) 2018-06-22 02:08:21 +02:00
Vanellope
fed5604dd7 Let the users adjust the layout width but still giving them certain limitations of the range (#10436) 2018-06-22 02:05:30 +02:00
Luca Di Bartolomeo
9efa5ee2e8 Fixed R key not working in custom graph (#10442) 2018-06-21 19:26:35 +02:00
Khairul Kasmiran
47d8debf68 Minor rearrangement 2018-06-21 18:33:39 +08:00
vane11ope
72f622cb87 fixed the resizing issue 2018-06-21 11:44:43 +02:00
pancake
ae814bc438 Avoid trailing spaces for unnamed symbols and use shorter reloc type names
* Do not flag unnamed symbols to avoid messy disasm outputs
* Hide symbol flags with paddr=0
2018-06-20 22:46:19 +02:00
soez
ed5a4d40ab Fix condition in function dmh (#10433) 2018-06-20 19:18:58 +02:00
Luca Di Bartolomeo
38bb81f98b Revert to old graph edges positioning (added an option) (#10430) 2018-06-20 17:49:25 +02:00
Vanellope
7336c6beb9 refresh panels after define (#10421) 2018-06-20 11:27:10 +02:00
soez
0bd511cff6 dmh function modified 2018-06-20 11:25:08 +02:00
cyanpencil
4b1fe1f7f9 Fix graph in panels rendering
Fix use after free in canvas resize

Fix utf8 working only in leftmost panel
2018-06-20 11:22:59 +02:00
Florian Märkl
2202d14067 Timeout socket accept using select (#10415) 2018-06-20 11:20:55 +02:00
pancake
65deb59f5f Restrict width boundaries in panels 2018-06-20 10:13:58 +02:00
Florian Märkl
3feb95079e Fix Task Coverities #10401 (#10416) 2018-06-20 09:00:58 +08:00
Vanellope
2637196309 D did not work properly and now it is fixed. (#10414) 2018-06-19 18:54:07 +02:00
Vanellope
65a4101bdd Fix #10399 - menu glitch fixed and a little bit of refactoring (#10406) 2018-06-19 14:25:38 +02:00
pancake
d495d531b0 Implement $r{} to access register values by name 2018-06-19 12:37:58 +02:00
pancake
f5f090b709 Implement named breakpoints with support for expressions 2018-06-19 12:27:57 +02:00
Chinmay Deshpande
122cb395e9 Fixes abj not being aliased to afbj (#10403) 2018-06-19 11:25:52 +02:00