Commit Graph

728 Commits

Author SHA1 Message Date
pancake
c1fa170503 Improve the Visual xrefs with from/to disasm and handle JK ##visual 2018-11-23 03:07:34 +01:00
Luca Di Bartolomeo
59d0685b70 Fix #11427 - Crop output in vertical split in visual mode to avoid overflow 2018-11-23 01:15:05 +01:00
Riccardo Schirone
cc9d361dd3 Reset cursor when using refs/xrefs in visual, otherwise it gets summed (#12277) 2018-11-22 22:21:06 +01:00
radare
d05292e485
Fix 80 warnings coming from gcc8.2 (#12280) 2018-11-22 22:11:43 +01:00
radare
d0e6a692cb
Move the fcn refs visual feature into the view instead of adding more keys ##visual 2018-11-22 21:20:47 +01:00
Khairul Azhar Kasmiran
b703010171 Visual 'j' honors asm.bb.middle (#12274) 2018-11-22 15:48:11 +01:00
pancake
173333b3e5 Fix #12230 - Honor cursor in Vp xX ##visual 2018-11-22 15:17:47 +01:00
pancake
11c6fbc95a Fix VJ scrolling stuck issue ##visual 2018-11-20 11:09:12 +01:00
David CARLIER
033e073c4e Little warning build fixes (#12232) 2018-11-20 01:13:54 +01:00
radare
f0ac280d17
Fix #11714 - VJ not working sometimes (#12217) 2018-11-19 14:44:54 +01:00
pancake
913a8563fe Improve the visual titlebar in cursor is enabled ##visual 2018-11-15 19:09:36 +01:00
pancake
f5ae9bb5b8 Change the behaviour of V< and V> to make it slurp or dump files ##visual 2018-11-15 19:09:36 +01:00
pancake
cb15913a70 Initial support for key repetitions in visual mode ##visual
* V3l is the same as Vlll, also works in cursor mode
2018-11-15 19:09:36 +01:00
pancake
0f81fb8dc3 Fix 3 byte overflow in r_print_hexdump() 2018-11-15 01:40:11 +01:00
Sergi Àlvarez i Capilla
a9ac72f160 Implement scr.scrollbar ##visual 2018-11-13 00:22:22 +01:00
pancake
278879131b Add stack.reg and handle pP in Vppc ##visual 2018-10-31 11:34:23 +01:00
pancake
4d4ce2f49c Code cleanup in the mach0 parser ##refactor 2018-10-24 13:05:29 +02:00
Vanellope
ef03d1096f Properly support the Hud in panels ?? && _ ##visual 2018-10-23 21:50:57 +02:00
radare
6bc3d5562f
Fix #11851 - Cursor and echo glitches in Visual ##visual 2018-10-19 13:42:38 +02:00
pancake
6a75230ea9 Fix #11634 - Crash in visual disasm for large dalvik instruction 2018-10-08 12:54:38 +02:00
radare
f7be81edbb
Fix instruments leaks (#11695)
* Fix a small memleak in the disasm reflines
* Fix huge args leaks in r_parse for arm
* Fix another memleak
* Fix memleak in VR
* Fix memleak related to bad use of r_list_join
* Fix warnings
* Fix two rlist related asserts
2018-10-01 19:57:33 +02:00
pancake
41ec949204 Fix #11112 - Rename {srwx,flags,perms} to perm. (-21 LOC)
Unify R_IO, R_BIN, R_BP, .. into R_PERM_* using 1 letter syntax
2018-09-22 11:31:45 +02:00
Luca Di Bartolomeo
0988bd9820 Fix garbage printed when vsplit large output (#11417) 2018-09-06 22:19:25 +08:00
pancake
cba35157c6 Fix leak in RAnal.ws and make Vbe work 2018-08-23 15:07:21 +02:00
pancake
095f28dfdf Fix #11215 - Ve is already in Vbe 2018-08-23 14:46:54 +02:00
Florian Märkl
2883398942 Fix #11081 - Transient Tasks (#11214)
* Make r_th_free() not kill the thread
* Transient Tasks
* Add transient info to & list output
* Use refcounting for Tasks
2018-08-23 13:49:28 +02:00
pancake
874369c224 First tab is created twice 2018-08-17 16:43:11 +02:00
radare
0ce42507dc
Initial implementation of visual tabs (Vt and VT) (#11105) 2018-08-16 11:01:53 +02:00
Rene Laemmert
b2aa8d1804 Fix highlighting (#11016) 2018-08-10 15:24:24 +02:00
Luca Di Bartolomeo
5aced3c295 Fix arrow keys not working in visual refs mode (#10887)
* Fix: arrow keys not working in visual refs mode

* Refactor: exit from visual refs mode with 'q' or ESC
2018-08-01 22:05:24 +02:00
Vanellope
c9969157e7 the scroll up-down behaviour of the disassembly in both Vp and V! should be unified. (#10848) 2018-07-30 03:06:58 +08:00
Vanellope
5e56c90483 get [1][2] jumps for panels and fixed some unstable behaviors (#10836)
* fixed unstable behaviours and [1][2][3]jump now works.
* added the help messages
* restyling for the help message
2018-07-29 12:56:15 +08:00
vane11ope
4b740a0b8f refactoring and fixed bunch of bugs as well as added seek o command 2018-07-26 19:19:58 +08:00
pancake
f98d5c8593 Fix the msp430 disassembler asan regression 2018-07-18 11:54:52 +02:00
pancake
87ea24f22a Improve VA, show changed bytes as selected, less glitching 2018-07-17 23:53:44 +02:00
pancake
b3d0224071 Fix #10731 - Implement diq and use it in Visual debugger mode 2018-07-16 17:05:10 +02:00
Florian Märkl
16d72de010 Use OneShot for cons->event_resize 2018-07-12 11:36:13 +02:00
cyanpencil
16e9a92dd2 Add file history to V! > File > open 2018-07-10 10:33:28 +02:00
cyanpencil
ad75f08a48 Add file completion to V! > open file 2018-07-10 10:33:28 +02:00
pancake
95d346b611 Fix #10674 - pzq and gcc build 2018-07-09 01:13:29 +02:00
pancake
685ce4e0ed Strpool is not StrBuf. Fix ecf109900f 2018-07-05 11:40:59 +02:00
stackrip
ecf109900f Add Colors to Visual Help (#10582)
* Formatting & init fix
* Remove extra space following prompt_read
2018-07-04 10:50:00 +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
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
sivaramaaa
c858dae72c Honor op mask in r_core_anal_op 2018-06-10 03:17:33 +02:00
Luca Di Bartolomeo
dcaeb35fd8 Fixed asm.bytes on by default in cursor mode (#10157) 2018-06-06 17:08:31 +02:00
sivaramaaa
e5bbaffbfe Refactor code to change R_ANAL_OP_MASK_ALL to appropriate value 2018-05-31 19:05:54 +02:00
pancake
e7fe4d5916 Add backspace as an alias for q in Vb 2018-05-29 12:55:11 +02:00
Vanellope
53d6345d3f Fixed a small yet kinda significant bug (#10201)
* Fixed a small yet kinda significant bug
* Added the same fix for Visual too
2018-05-27 15:53:04 +02:00
cyanpencil
8a65873b64 Fix graph.from graph.to behaviour
Updated graph.from graph.to help

Updated visual help

Removed cmd.graph unused config variable

Whitespace cleanup
2018-05-24 00:15:35 +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
Luca Di Bartolomeo
a4370e89c9 Fix #6220 garbage print when click on graph (#10118) 2018-05-18 10:35:33 +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
Vanellope
6107339580 added the browse mode to V! (#10095)
* added the browse mode to V!
* added the missing help messages
2018-05-15 12:38:50 +08:00
Vanellope
699f11e43a registers are now editable and a little bit of refactoring too (#10029)
* registers are now editable and a little bit of refactoring too

* fixed a potentially vulnerable point

* cleaned up mess
2018-05-07 10:01:25 +02:00
pancake
cc66e1b691 Add pxr in visual mode (VP) 2018-05-05 00:58:13 +02: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
Paul I
5180e0220f Add R2_PLUGINS, R2_EXTRAS, R2_BINDINGS macros (#9994) 2018-05-02 15:58:14 +02:00
Paul I
cc90ec6be5 [WIP] Move hardcoded paths to r_userconf.h (#9959)
* Move hardcoded paths to r_userconf.h

* Add R2_HOME_* macros

* Some cleanup
2018-04-28 10:02:55 +02:00
pancake
b99bb97def Improve r_cons_is_breaked coverage 2018-04-25 12:30:57 +02:00
Khairul Kasmiran
7ff5a48d78 asm.emu.* ⮕ emu.* 2018-04-14 10:49:08 +02:00
Vanellope
cf372cf089 just a small refactoring as i found this while reading the whole code base. (#9862) 2018-04-11 15:23:52 +02:00
pancake
5d6e22888e Vr now toggles asm.*hints 2018-04-11 09:19:48 +02:00
pancake
17dfb2d3d4 Reimplement VbC in C and drop it from Vcjr 2018-04-11 03:00:05 +02:00
pancake
5cde546971 Fix aae on x86-64, improve Vx, add sys/rebuild.sh tcc, .. 2018-04-11 02:32:27 +02:00
Riccardo Schirone
cfe9afb47a core/visual: just move the cursor also when using Vo
extract a couple of functions to avoid code duplication
2018-04-08 12:22:36 +02:00
Riccardo Schirone
82c8d558f3 core/visual: when possible, just move the cursor in visual mode
Instead of seeking to a new position even if the new address is already
visible in the screen, just move the cursor there.
2018-04-08 12:22:36 +02:00
Riccardo Schirone
ec2ac4185a core/visual: reset the cursor position when seeking elsewhere 2018-04-08 12:22:36 +02:00
Vanellope
14909482d8 Vane11ope/fix panels (#9814)
* created RPanals out of panels.c

* deleted a garbage
2018-04-07 16:51:25 +02:00
pancake
fe7ae5d0af Fix last 20 coverity issues 2018-03-19 11:51:04 +01:00
Florian Märkl
93d9f4ec66 Add mask parameter to r_anal_op() 2018-03-16 11:10:15 +01:00
cyanpencil
cd719d120b Implement pluggable dietline history. Use it in Vo (#9591) 2018-03-09 00:33:33 +01:00
pancake
b860076802 Fix #9541 - VC rotates scr.color instead of toggling 2018-03-02 17:58:44 +01:00
Vanellope
82374ce2d7 Fix disasm scroll issue when invalid on panels 2018-02-28 22:16:11 +01:00
pancake
92996067db BlindFix #9503 - Check core->file for NULL 2018-02-28 10:34:04 +01:00
pancake
d045b70c2d Fix crash in RConfig.setString(int) and add VbT to browse themes 2018-02-24 19:44:09 +01:00
xarkes
5e097dbae1 Killed cons->truecolor in favor of cons->color 2018-02-24 11:47:38 +01:00
pancake
ed1ed75474 Fix #9475 - visual crash after oom 2018-02-23 18:27:17 +01:00
pancake
53d5514a3d Revert "Workaround to make Vcj fail that often, needs full rewrite"
This reverts commit dcf4b49d79.
2018-02-22 18:17:46 +01:00
Farid AYOUJIL
1e29f31576 Refactoring asm.cmt* and scr.* 2018-02-22 17:59:08 +01:00
pancake
dcf4b49d79 Workaround to make Vcj fail that often, needs full rewrite 2018-02-22 17:15:27 +01:00
pancake
22bd9e9fb5 Add scr.slow and fix uninitialized var issue 2018-02-22 12:45:54 +01:00
sivaramaaa
8ca0d327e4 Intial implementation of function call argument display (#9411)
* Cleanup disasm code
* Move this to new command afal and few bug fix
* Wrap the command with config var
2018-02-22 13:21:40 +08:00
pancake
c2a8afa8fb Add VbC to browse comments 2018-02-21 03:10:38 +01:00
pancake
95e7d6ab64 Add VbF to browse functions 2018-02-21 02:17:31 +01:00
pancake
185c91eefd Implement VV) - rotate asm.emu.str in visual graph 2018-02-20 22:03:27 +01:00
pancake
7abcec8f12 Remove global variable and make V) a tri-state 2018-02-19 23:24:41 +01:00
pancake
30a5247a8a Add ')' key in visual to toggle asm.emu.str 2018-02-19 23:04:17 +01:00
pancake
fe194d205a Add Visual browser for process threads 2018-02-04 13:04:34 +01:00
pancake
43420e4671 Add Vb[is] for imports/symbols 2018-01-24 10:47:33 +01:00
pancake
303820dbac Initial purge of R2_PREFIX towards dir.prefix 2018-01-16 11:13:21 +01:00
pancake
335938be58 r_str_chop -> r_str_trim 2018-01-08 03:22:26 +01:00
Lowly Worm
8ec19dbfdd skip over strings with Vj 2018-01-06 17:23:48 -08:00
pancake
b23360ef7e Do print edges before nodes again and add V^ key like VV^ 2017-12-30 04:11:49 +01:00
pancake
df4ddfc745 Fix last covs 2017-12-20 15:05:33 +01:00
pancake
0b1e8eaecc Fix almost all warnings from the msvc build 2017-12-19 00:18:39 +01:00
pancake
0154e8297a Fix #9038 - Handle pds in VO 2017-12-18 14:00:54 +01:00
pancake
0851129765 Implement r_cons_readchar_timeout. wink wink 2017-12-18 02:44:51 +01:00
Florian Märkl
7028e3113d Add r_core_prevop_addr_force() with fallback 2017-12-16 20:02:54 +01:00
pancake
2ea61faaeb Oops 2017-12-16 02:25:35 +01:00
pancake
fdb4c05612 Make VO rotate instead of toggle for asm.pseudo and asm.esil 2017-12-16 02:23:53 +01:00
pancake
40295143a5 Honor pP and add ? in Vx 2017-12-16 01:44:45 +01:00
pancake
d8c22d8edb Add comment counter in ds and show rendering in VV 2017-11-24 23:19:26 +01:00
pancake
f371229fe0 Oops scr.fps was already there :D show it in graph view too 2017-11-24 00:55:18 +01:00
pancake
7d2da2201e Implement scr.fps 2017-11-23 23:16:19 +01:00
pancake
bb7a490277 Honor supported bits mask in V& 2017-11-09 12:21:03 +01:00
pancake
62b7fa7c4c Bring back V& with anal hints 2017-10-20 02:21:19 +02:00
Lowly Worm
fbec8ce2c2 rm useless include 2017-10-18 22:22:54 -07:00
Lowly Worm
2054b08a48 skip over entire multi-byte data sections in Vj
- still doesn't work for scrolling up
- will require a bit of rework of meta
2017-10-18 22:16:40 -07:00
pancake
acbdf19b4e More work on Vb for browsing stuff 2017-10-16 22:31:29 +02:00
pancake
3b2b592506 V\ now looks a bit better (make cl clear one line) 2017-10-16 16:38:33 +02:00
pancake
5bc44fbc44 Initial work on the Vb refactoring 2017-10-16 16:15:15 +02:00
pancake
899d561574 Fix two covs 2017-09-18 15:46:55 +02:00
pancake
6da1fa47bf Fix crash in dd A, dd .,,.,,, and in V||| and V```... 2017-09-15 16:59:51 +02:00
Fangrui Song
1c4407cb69 Fix #8388 - Replace RIOMap::{from,to} with RAddrInterval itv. 2017-09-14 12:40:22 +02:00
pancake
46b6051129 Add quiet files list (oq, omq) 2017-08-26 03:49:54 +02:00
condret
2f201bded0 opsalamance - merge the big siol branch
- Thanks @MaskRay and @condret
2017-08-22 09:42:16 +02:00
alvarofe
2e462ec8f0 Bring RIODesc from SIOL and cleanup 2017-08-18 01:31:57 +00:00
rene
b1ef3edd18 changed VX that it does not need a function to work 2017-08-17 14:35:41 +08:00
pancake
e0f0c89783 Fix #8115 - PoC for the Visual Split mode 2017-08-03 14:52:59 +02:00
pancake
7e4d73947d Fix build 2017-07-02 23:39:30 +02:00
pancake
50643229e7 Make Vb run dbs like key.f2 for consistency 2017-07-02 23:37:13 +02:00
xarkes
342887c7d8 Fix windows F keys press in visual mode (#7843) 2017-06-30 17:40:07 +02:00
pancake
dac86f039a Fix visual cursor, invert V|| offset and fix so-1 2017-06-28 02:21:16 +02:00
pancake
bf883ee806 Reduce flashes in V|| aka cmd.cprompt 2017-06-28 00:35:58 +02:00
pancake
721304a3ed Implement visual entropy browser with V|| and then hl keys to move 2017-06-28 00:24:26 +02:00
alvarofe
7af491dda5 Fix build 2017-06-09 21:35:38 +02:00
pancake
470c183010 Initial work towards supporting a visual ESIL debugger VpOd 2017-06-09 19:12:20 +02:00
Roi Martin
d9202106f4 Fix hex column resize in visual mode (#7712) 2017-06-09 15:58:49 +02:00
Lowly Worm
192dbad64e fix a few covs for out of bounds reads/writes
from fencepost errors
2017-06-03 01:21:07 -04:00
pancake
78ecad3d3b Fix dmi honoring dmm on Mac debugger 2017-05-29 11:45:13 +02:00
pancake
a504ece143 Support square pixels, cursor and scroll in prc, available in VPP, add hex.pcols 2017-05-29 04:36:34 +02:00
pancake
6111637a66 Fix stack overflow in a race condition inside V@ 2017-05-17 23:48:05 +02:00
xarkes
926f024909 Improved MSVC support (WIP) 2017-05-09 14:25:57 +02:00
pancake
d7c2c717ea Fix deadlock in r_core_cmd spawned from V@ 2017-05-09 03:06:50 +02:00
pancake
204da24d0e Integrate pss into the visual mode 2017-05-03 03:23:05 +02:00
pancake
5e641b2d68 Implement pss command to use it in cmd.visual or broken terminals 2017-05-03 03:05:01 +02:00
pancake
1707d0115c Honor cmd.visual in Visual title 2017-05-03 02:54:31 +02:00
pancake
ffe0da0fa1 Fix many more clang-analyzer null derefs and overflows 2017-04-18 00:38:24 +02:00
pancake
a66cc10d46 Fix a huge list of null derefs from clang-analyzer 2017-04-17 22:02:04 +02:00
pancake
d750500573 V; prompt on top instead of scroll 2017-04-12 03:14:56 +02:00
pancake
a8d0aeea05 0 is also a valid address for V. 2017-03-24 11:34:40 +01:00
pancake
b862dc5587 Fix logic in V. (thx @jroimartin for the tip) 2017-03-24 01:28:24 +01:00
pancake
6b8d0b9aaf Support alt-q in Visual and Visual Insert modes 2017-03-24 01:23:25 +01:00
pancake
2b783319e8 Enhance V. to work with firmwares and dumps 2017-03-24 01:06:41 +01:00
neutralinsomniac
653bac82d5 Add '0' visual mode command to help 2017-03-23 15:41:04 +01:00
Riccardo Schirone
26fd259d04 New command 'ss' (Silent Seek)
These commands seek to an address or a register without logging the
entry in the seek history.
2017-03-19 02:34:53 +01:00
Maijin
b21527e9a4 Fix visual help 2017-03-15 19:46:39 +01:00
Maijin
ae70991673 Fix visual help 2017-03-15 19:29:05 +01:00
pancake
f82930fd75 Fix latest covs 2017-03-15 12:12:55 +01:00