163 Commits

Author SHA1 Message Date
skuater
ae3edbbf1f fixed some bugs in rcons 2015-11-03 22:30:50 +01:00
pancake
72b27776d7 Initial support for function signatures using pf and initial symbol tables 2015-10-30 03:07:22 +01:00
pancake
365d089eb8 Fix #3557 - V_ is the new VF_, old one is in V?? 2015-10-29 12:54:19 +01:00
Riccardo Schirone
14c0f656fe core/graph: rethink commands
* add :cmd and / commands to the help
* use r to refresh the whole graph, not only update the layout
* use pd instead of pi in callgraph mode
* remove 'O' and 'p' commands
* use 's'/'S' instead of 'z'/'Z' for step/step over
* use page up/down to go to the top/bottom of the graph
* use 'C' to toggle asm.comments
* remove 'c' because it will be used for the cursor inside a node (TODO)
* remove 'e' because diagonal lines are broken
* use 'p'/'P' to switch between print modes (normal, normal with offset
  and bytes, esil, esil with offset and bytes, small nodes)
2015-10-25 23:56:22 +01:00
pancake
21fe9f1fa9 A bit deeper zerosep 2015-10-24 23:25:56 +02:00
pancake
880821634f Refactor zerosep for r2 -0 2015-10-24 22:49:12 +02:00
condret
ddba3a446b add new colors-configs for new optype 2015-10-21 11:04:55 +00:00
Riccardo Schirone
eb35438bab core/graph: remove 'b' and only use 'u' and 'U' to move between nodes
Now, every time you change the current node, you are actually seeking
that node. 'b' is not really necessary anymore and it's also confusing.
Also, if you change the seek while in graph mode, the graph will be
updated automatically to select the right node.
2015-10-16 11:26:59 +02:00
Riccardo Schirone
6be6f0a862 core/graph: fix regression about moving between nodes 2015-10-14 18:35:11 +02:00
Riccardo Schirone
9fc6dc6d7d core/cmd_anal: add commands to remove nodes/edges from core->graph 2015-10-03 12:42:40 +02:00
funktioniert
7bb5f39495 Add support for multiple columns in greps 2015-09-29 11:32:57 +02:00
pancake
5ecd98305e Add support for MBN/SBL roms, fix 11acb8392, binsect->has_strings 2015-09-29 00:42:31 +02:00
pancake
da3264250c Honor ^C in aae 2015-09-25 18:38:16 +02:00
pancake
f8d3a41fd7 Fix #3200 - Honor scr.rgbcolor in ecr command 2015-08-31 17:06:59 +02:00
pancake
1e1b1adf2a Major enhacements for the V! visual panels 2015-08-31 05:06:01 +02:00
Riccardo Schirone
94f303ca36 core/graph: clean code + fixes
cons/canvas_line: split style in color and symbol

In this way you can choose to apply a color and/or a symbol (t/f/v) to a
line. This patch also changes core/graph to avoid t/f symbols in the
middle of long edges.

cons/canvas_line: fix "reversed" edge

core/graph: center current node when changing function
2015-07-27 12:29:18 +02:00
Riccardo Schirone
31dfeda157 core/graph: improve edges layout 2015-07-25 13:55:31 +02:00
Riccardo Schirone
5ef6454ee0 core/graph: sdbization of RAGraph
* core/graph: refactor check_changes of agraph
* core/graph: udpate info when getting the Sdb from the graph
* core/graph: add in sdb info about nodes
* core/graph: add "agraph.delta_x" to rebase all coordinates and make
              them unsigned integers
* core/cmd_anal: add 'agg*' to print r2 commands to generate the graph
* core/cmd_anal: add helps to 'agn' and 'age' commands
2015-07-24 14:00:11 +02:00
pancake
d2233a896b Add de Debugger Esil API for advanced software watchpoints
- Implemented in r_debug_esil_* APIs
- Support for step-into and continue
- Expressions can be regs, numbers, math operations, ranges, comparisons..
- Honor dbg.prestep for stepping before or after analysing
- read-write-exec watchpoints using native debug backend and esil emulation
- OSX/iOS debugger error message is now nicer
- anal/rpnesil renamed to esil
- Add esi,edi in osx regprofile
- Add r_cons_is_breaked() for consistency
2015-07-21 06:11:42 +02:00
Riccardo Schirone
3738b5fe59 core/graph: make the title a field of RAGraph
* core/graph: add r_agraph_set_title function to the API
2015-07-19 01:35:01 +02:00
Riccardo Schirone
9d830a925f core/graph: last line fix + memleaks fixes
* core/graph: fix last line in non-interactive mode
* core/graph: remove event_resize callback at the end
* core/graph: free RANodes when you free/reset the RAGraph
* core/graph: use R_TRUE/R_FALSE instead of 1/0
* core/graph: remove warnings
2015-07-19 01:33:52 +02:00
pancake
df25085ffe Add custom color support for graphs and handle VVR and VVVq 2015-07-15 15:54:20 +02:00
Riccardo Schirone
a6c23407b2 cons/cons.c: avoid printing last line
fix #2908
2015-07-14 18:06:55 +02:00
pancake
8e9058ed26 Avoid using keywords like class 2015-07-13 14:43:13 +02:00
Riccardo Schirone
3d29108225 core/graph: add r_agraph_print 2015-07-13 13:48:31 +02:00
Riccardo Schirone
975e30ac6c core/graph: add r_agraph_get_node 2015-07-13 13:48:31 +02:00
Riccardo Schirone
9391131479 core/graph: add r_agraph_add_edge 2015-07-13 13:48:31 +02:00
Riccardo Schirone
6c55098a44 core/graph: add r_agraph_add_node 2015-07-13 13:48:30 +02:00
Riccardo Schirone
e58bf2350f core/graph: change name AGraph => RAGraph and make it a public structure 2015-07-13 13:48:30 +02:00
pancake
f802bdf3b1 Add afg command to print non-interactive ascii-art graph 2015-06-11 03:55:15 +02:00
Riccardo Schirone
8cb35540c7 cons: use all the available space in the screen
* r_cons_get_size should return the number of rows, why is there a "-1"?
* the newline at the end of the canvas converted to string (in
  r_cons_canvas_to_string) make things shift up one line
* r_cons_canvas_write should consider "left" (which is the number of
  chars available from x until the right side of the screen) and not
  "left - 1". Moreover, since "slen" is at most the maximum number of
  characters that we can print in that row, there is no need to check
  if we can write those bytes
* r_cons_flush usually add a newline, but we shouldn't print it because
  otherwise everything will shift up by one line
2015-06-04 19:11:16 +02:00
pancake
d25c520a18 Add pxr and pxd in px?. Initial PoC for mouse click support 2015-05-27 23:46:41 +02:00
Álvaro Felipe Melchor
35f573fe1f Fix memleaks in RCons.pal 2015-04-11 13:08:00 +02:00
Anton Kochkov
a31e8e49f0 Fix termios for the MinGW32 2015-04-05 01:45:58 +03:00
Anton Kochkov
e1d2476822 Fixed r_cons.h if defined both CYGWIN and MINGW32 2015-04-05 01:39:05 +03:00
pancake
43a7af0238 Fix graph flush issue 2015-03-31 00:45:57 +02:00
pancake
37a5f6d358 Honor RConsPalette in pxA, handle hex.onechar 2015-03-22 16:16:51 +01:00
pancake
28d6c12043 V! -> V!!, VV(nofn) -> V!
- VV only opens if there's a function analized
- V! now opens the panels view
- V!! launches the 2048 game
2015-03-05 23:33:28 +01:00
pancake
d3ddbea631 Colorize node box 2015-02-15 21:48:46 +01:00
pancake
40edd608d1 Bring back the old edge style in the aa graph. Fix self loops 2015-02-15 21:34:12 +01:00
pancake
421dd1243f Obey scr.color in RConsCanvas from RCore.cmd("VV") 2015-02-14 04:50:29 +01:00
r0nk
7bf5f13ce6 Initial support for colors in RConsCanvas
started on cons_canvas color support. Still a bit buggy, working out the kinks.
Yanked my old line drawing algo from ward, still working on colors.
Still incomplete, Changed the way that attributes work, still lots of strange behavior, It appears that most attributes aren't where they belong.
still not finished. Ok now the lines and colors are working, but the colors are overwriting other sections. Working on preventing that.
colors are now working, but they are _so. slow._
woops, removed the debugging printf
Figured out the big evil function that has to be optimized, attr_at takes aprox 91% of the cpu, so he needs to be fixed
Signed-off-by: r0nk <r00nk@simplecpu.com>
Signed-off-by: r0nk <r00nk@simplecpu.com>
2015-02-14 04:18:43 +01:00
pancake
18c451f2c2 Add scr.wheelspeed and implement dynamic asm.lineswidth in scr.responsive 2015-02-11 00:13:54 +01:00
pancake
f2351636fe Fix r_cons_readline() signature and some code cleanup 2015-01-31 00:50:05 +01:00
XVilka
2558a42cf3 Fix cygwin 32/64 builds and visual mode 2015-01-26 19:55:12 +03:00
NighterMan
9127695627 Add r_cons singleton refcount to fix history bug 2015-01-22 02:24:24 +01:00
skuater
9b4044046e Handle arrow and page up/down keys on W32 2015-01-14 23:31:29 +01:00
jvoisin
a8937732b8 Fix all 'warning: function declaration isn’t a prototype [-Wstrict-prototypes]' 2015-01-13 03:40:35 +01:00
pancake
7aa5ae27c5 Fix w32 console line limit issue, some fixes for wine console 2015-01-09 12:47:40 +01:00
pancake
559c2cd25a Add '!' inside '#!' and make r_core_editor accessible from r_cons_editor. 2014-12-19 03:17:28 +01:00