Commit graph

594 commits

Author SHA1 Message Date
Riccardo Schirone
31dfeda157 core/graph: improve edges layout 2015-07-25 13:55:31 +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
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
85c9e89ef8 Add non-color mode for the material webui 2015-07-10 00:44:16 +02:00
pancake
aeded4675c Fix print 0 lines issue in RCons 2015-07-07 00:21:51 +02:00
pancake
406000688d Use yellow for text in hexdump like in pd, cyan for bin 2015-07-06 01:27:43 +02:00
pancake
20a70e75a0 Add more ESIL for ARM64 2015-07-04 02:34:17 +02:00
Álvaro Felipe Melchor
daf8e5b06f Fix some infers 2015-06-28 20:15:35 +02:00
pancake
8f25a9b344 Fix iOS build, crashes in reflines, analysis issues on OSX debugger and more! 2015-06-21 00:50:53 +02:00
pancake
0bece627d2 Fix w32 keypad input issue on wine 2015-06-12 11:49:44 +02:00
pancake
f8b1f8e807 Fix iorap bug, disasm glitch, and comments are red now 2015-06-12 02:11:07 +02:00
pancake
5954f6e046 Fix #2716 - sdb, rmkdir and console issues on w32 2015-06-11 12:12:22 +02:00
pancake
f802bdf3b1 Add afg command to print non-interactive ascii-art graph 2015-06-11 03:55:15 +02:00
Judge Dredd (key 6E23685A)
b19c9ea39e fix #2725 2015-06-09 13:34:31 +02:00
pancake
9bbaa981b6 Initial import of r2web:// io plugin 2015-06-06 03:02:35 +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
Judge_Dredd
2acf7d4a03 arbitraty number of matches in cons/less search, refactor 2015-06-04 09:21:05 +03:00
pancake
297a620a94 Fix two covs 2015-06-03 12:34:15 +02:00
Riccardo Schirone
757c2da65f cons/canvas_line: refactoring calls to draw_horizontal_line 2015-06-02 10:17:17 +02:00
Riccardo Schirone
2d74815b27 cons/canvas_line: remove special case x == x2 in canvas_line_square 2015-06-02 10:17:17 +02:00
Riccardo Schirone
5a8afbfd50 cons/canvas_line: extract draw_horizontal_line helper function
cons/canvas_line: extract draw_vertical_line helper function
2015-06-02 10:17:17 +02:00
Riccardo Schirone
e48a7b8dcd cons/canvas_line: use some spaces between operators 2015-06-02 10:17:17 +02:00
Riccardo Schirone
c4bfa3ec95 cons/dietline: move to next/prev word with ESCf/b and clear line with ^K 2015-06-02 10:17:17 +02:00
pancake
9699ce98fa Fix w32 build strndup -> r_str_ndup 2015-06-01 22:54:40 +02:00
Judge_Dredd
264883a097 Refactor cons highlight 2015-06-01 21:58:07 +02:00
Judge_Dredd
e38dd6689d fix search highlight in cons/less 2015-06-01 21:53:27 +02:00
Judge Dredd (key 6E23685A)
61985d3b4b less highlight bug almost fixed 2015-06-01 21:53:27 +02:00
pancake
bb151c1607 Fix two out-of-canvas node location and missing box lines issues 2015-05-31 22:27:47 +02:00
Riccardo Schirone
36a89dc370 cons/canvas: fix printing of partially visible borders of a box 2015-05-31 20:20:32 +02:00
Riccardo Schirone
ac3a153925 cons/canvas: remove useless condition because always true 2015-05-31 20:20:31 +02:00
Riccardo Schirone
632aa56bb8 r_cons_canvas_write: not stop writing when there is an empty line
some lines can seem empty because what we want to write was cropped, but
this shouldn't deny the next lines, that can be longer and so, still
visible, to be printed.
2015-05-31 20:20:31 +02:00
Riccardo Schirone
5efc92520d cons/dietline: fix move to next/previous word
Signed-off-by: Riccardo Schirone <sirmy15@gmail.com>
2015-05-30 12:23:18 +02:00
Judge_Dredd
b190fff5e2 fix for #2314 and #2312 2015-05-28 00:28:25 +02:00
pancake
d25c520a18 Add pxr and pxd in px?. Initial PoC for mouse click support 2015-05-27 23:46:41 +02:00
Jeffrey Crowell
045b22fdf1 add 'xvilka' colorscheme 2015-05-23 10:45:49 -04:00
Judge Dredd (key 6E23685A)
bdc2f2e661 fix partial color loss mentioned in #2314 2015-05-21 14:15:43 +02:00
Jeffrey Crowell
836020c374 update instructions for using theme 2015-05-14 19:24:17 -04:00
dequis
a4eb454514 dietline: Fix HOME key when used from screen/tmux 2015-05-11 12:09:26 +02:00
skuater@hotmail.com
ccfae11ebc windbg ^c support under linux+ ^c support for windows 2015-05-05 18:33:34 +02:00
Judge_Dredd
560c70c10e fix #2484, w/o breaking line count 2015-05-04 09:53:37 +02:00
pancake
2c28fb56f8 Handle arrow escape codes for Haiku/BeOS (by capi_x) 2015-04-25 04:06:14 +02:00
Judge Dredd (key 6E23685A)
3e1ca77491 less / search now supports highlighting multiple matches (up to 10) on the same line 2015-04-22 11:12:18 +02:00
pancake
63f0dc8e3f Implement more utf8 terminal check, handle jbe in asm.pseudo 2015-04-20 15:27:05 +02:00
pancake
070836b326 Honor SIGSTOP without breaking ^Z 2015-04-20 01:05:22 +02:00
pancake
0342ce3fe0 Fix r2 -q0 2015-04-16 04:06:02 +02:00
Judge Dredd (key 6E23685A)
60f09a5ebc fix possible memleak in cons less 2015-04-13 12:12:25 +02:00
Jeffrey Crowell
7a9ac6ae54 coverifix! 2015-04-13 00:43:42 -04:00
pancake
e56d7b1410 Handle = as separator in the internal grep 2015-04-13 02:07:52 +02:00
Judge_Dredd
0ce2c0033c cons less chop lines to terminal width 2015-04-12 16:12:02 +02:00
jvoisin
34473357d7 Fix some compilation warnings 2015-04-12 00:06:38 +02:00
pancake
51341240c3 Use dietline in ?i and enforce nonraw and cursor mode 2015-04-11 20:51:08 +02:00
Álvaro Felipe Melchor
35f573fe1f Fix memleaks in RCons.pal 2015-04-11 13:08:00 +02:00
Anton Kochkov
c5f2f3521f Fix the leaking holes 2015-04-11 02:05:51 +03:00
pancake
b4bd98ea6d Show lines instead of chars to make humans happy 2015-04-09 19:54:59 +02:00
pancake
37476d6eef Do not drop raw cons after getchr to avoid visual flickering 2015-04-09 16:43:20 +02:00
XVilka
db22e7337e Fix input on Cygwin 2015-04-07 17:25:14 +03:00
skuater
f98d144afa Windows console enhanced support for arrow and special keys 2015-04-07 15:23:03 +02:00
pancake
a0ef11be00 Fix 3 covs and several warnings in windbg for w32 2015-04-07 14:53:28 +02:00
pancake
f35b06c176 Fix #2323 - Fix crash in 'f ~..' 2015-04-07 13:22:34 +02:00
pancake
87162dc8bf Add wta support for appending dump. 2015-04-03 04:11:26 +02:00
pancake
8d89d9af2c Fix crash in ag, memleak in iI and nullderef in hexdump 2015-04-02 20:22:24 +02:00
pancake
43a7af0238 Fix graph flush issue 2015-03-31 00:45:57 +02:00
pancake
3cfa2b2f0e Fix #1544 - ^w chopping input 2015-03-23 22:05:06 +01:00
Jonathan Neuschäfer
dcc1a15749 more EOF fixes 2015-03-23 16:16:37 +01:00
pancake
4b1a487649 Fix crash in RConsCanvas and type in RCoreConfig description 2015-03-23 10:19:53 +01:00
pancake
261a4d2faa Fix #2174 - Crash in V!! 2015-03-23 01:28:32 +01:00
pancake
37a5f6d358 Honor RConsPalette in pxA, handle hex.onechar 2015-03-22 16:16:51 +01:00
pancake
12ea9734b5 Fix about 15 more random COVs 2015-03-21 02:04:49 +01:00
pancake
515b2e77bc Fix about 40 COVs related to memleaks and buffer overflows 2015-03-21 01:27:54 +01:00
Monokles
b9c59d39d0 Added 'ecc' (css output) command to cmd_eval
- Implemented 'ecc' command in pal.c
- Fixed indentation issues and added scope
2015-03-19 00:00:29 +01:00
pancake
5cd2165633 Initial implementation of Vt. Still not finished 2015-03-17 01:29:28 +01:00
pancake
7f9ae863f9 Fix #2183 - r2 stdin mode prints junk 2015-03-16 03:17:22 +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
ef293e4b66 Initial PoC for the Visual 2.0 (for now: VV) 2015-03-05 02:07:53 +01:00
pancake
184eaefc8a Fix #2158 - fix underflow in rcons.memcat 2015-03-04 01:27:22 +01:00
Jaume Delclòs Coll
ed27f7567b Fix dietline cursor position 2015-03-03 02:01:07 +01:00
pancake
c4ae6db6f9 Revert "Fix prompt long line issue (still buggy, but cursor works again)"
This reverts commit e3e95fc94e.
2015-03-03 02:00:53 +01:00
pancake
e3e95fc94e Fix prompt long line issue (still buggy, but cursor works again) 2015-03-03 00:04:41 +01:00
pancake
7564069395 Fix #2147 - Fix dietline long line edit issue 2015-02-27 15:24:28 +01:00
jvoisin
838c467724 Coverifix once again 2015-02-19 15:04:58 +01:00
r0nk
d196673c48 implemented a binary search for canvas 2015-02-19 01:18:50 -05:00
jvoisin
a4ba5f64f5 Even more Coverifix 2015-02-19 00:27:00 +01:00
jvoisin
2f6793a262 Coverifix 2015-02-18 00:29:35 +01:00
jvoisin
7a1975bd06 Add some comments for graphs + coverifix 2015-02-17 17:03:16 +01:00
jvoisin
a193e54eac Coverifix 2015-02-17 00:34:51 +01:00
r0nk
87ae355a3a removed repetitive code. 2015-02-16 03:23:02 +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
r0nk
e0989630d8 optimized canvas search 2015-02-15 13:34:13 +01:00
pancake
421dd1243f Obey scr.color in RConsCanvas from RCore.cmd("VV") 2015-02-14 04:50:29 +01:00
pancake
e1fec8fcab Fix trash chars in rconscanvas-color 2015-02-14 04:40:08 +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
Judge Dredd (key 6E23685A)
53934fb9b4 r_cons_less / search highlighting and {n,p} keys 2015-02-12 11:47:12 +01:00
pancake
18c451f2c2 Add scr.wheelspeed and implement dynamic asm.lineswidth in scr.responsive 2015-02-11 00:13:54 +01:00
pancake
dc75cb2320 Fix the rest of base64 warnings 2015-02-10 00:05:18 +01:00
Judge_Dredd
3cf696c080 less / regexp search 2015-02-08 20:02:53 +01:00
pancake
099fb3f55b Bring back background color in console
Add help for `ec type fg bg`
2015-02-04 12:09:29 +01:00
pancake
b87733d554 cmd_open refactoring and fix few warnings 2015-02-03 00:52:24 +01:00
pancake
0b391feebb Fix scr.html closing <font> tags (faster webui) 2015-02-01 02:28:17 +01:00
pancake
f2351636fe Fix r_cons_readline() signature and some code cleanup 2015-01-31 00:50:05 +01:00
XVilka
94a7ca141c 256 colors support in cygwin 2015-01-26 21:41:57 +03:00
XVilka
80d016e0ed Fix a typo in the previous commit 2015-01-26 20:01:48 +03:00
XVilka
2558a42cf3 Fix cygwin 32/64 builds and visual mode 2015-01-26 19:55:12 +03:00
pancake
dfa6644b83 Fix scr.html nested <font> issue 2015-01-26 03:43:57 +01:00
NighterMan
9127695627 Add r_cons singleton refcount to fix history bug 2015-01-22 02:24:24 +01:00
pancake
e1f8bce721 Add matrix theme 2015-01-20 02:11:53 +01:00
pancake
21093b2f2d Fix graph text node align issue for negative X deltas 2015-01-19 23:06:43 +01:00
pancake
1ccd0e3b67 Fix #1938 - Workaround for cg /dev/urandom crash 2015-01-17 01:21:43 +01:00
jvoisin
ce9ece1177 Coverifix++ 2015-01-16 00:56:54 +01:00
skuater
9b4044046e Handle arrow and page up/down keys on W32 2015-01-14 23:31:29 +01:00
jvoisin
4fd6ce62d5 Fix some gcc warnings 2015-01-13 02:07:44 +01:00
pancake
fb45861275 Support RGB colors in scr.html 2015-01-13 01:22:33 +01:00
pancake
2b493cdbc6 Fix row-by-one on w32 cmd.exe 2015-01-12 16:31:12 +01:00
pancake
45a1eb5ca0 Implement w32 terminal size detection (fails on wine, untested on cmd.exe) 2015-01-12 16:06:11 +01:00
pancake
377ec87272 Fix two null deref in RConsCanvas and another left border glitch 2015-01-11 02:54:27 +01:00
pancake
c042bcd789 Fix infinite loop in rcons.canvas 2015-01-11 02:34:28 +01:00
pancake
d713debdfc Fix left and top border issues with canvas text (nicer graphs) 2015-01-11 02:28:59 +01:00
pancake
790ce09483 Fix right border graph canvas glitch 2015-01-10 04:21:10 +01:00
pancake
6ee5b5003c Fix RCons crash on w32 (thanks Skuater for pointing out!) 2015-01-09 16:03:42 +01:00
pancake
7aa5ae27c5 Fix w32 console line limit issue, some fixes for wine console 2015-01-09 12:47:40 +01:00
pancake
c7e1fad6bc Add Vn (mini-ascii-art graph visual mode) 2015-01-09 11:39:25 +01:00
Alvaro Muñoz
e1f2b73066 fixed colors 2015-01-08 23:37:48 +01:00
Julien Nabet
164bbc7333 Some cppcheck reports fixed:
(warning) Logical disjunction always evaluates to true: regnum < 32 || regnum > 31
(style) Same expression on both sides of '||'
(style) Same expression on both sides of '&&'
(style) Expression is always false because 'else if' condition matches previous condition at line 180
2014-12-28 04:20:14 +01:00
pancake
559c2cd25a Add '!' inside '#!' and make r_core_editor accessible from r_cons_editor. 2014-12-19 03:17:28 +01:00
pancake
cace7101e5 Fix warnings in RCons and update sdb 2014-12-14 01:56:55 +01:00
Alvaro Muñoz
db09c38b9d Improve colors in webui and fix ans256 to rgb
- added fname and fdelimiters in disasm views
- fix r2 ansi256 to rgb conversion
- clean color string, no leading whitespaces, trash anything after color
2014-12-10 21:47:46 +01:00
Alvaro Muñoz
dc5da0898b Fix #1732 and #1735 - uses 'ec gui. and ai.' prefixes 2014-12-08 23:48:42 +01:00
Kamil Rytarowski
aadbd0f868 Fix GCC warnings: array subscript has type 'char'
Reported at NetBSD-current/amd64
GCC 4.8.4 (nb1 20141012)
2014-12-04 03:26:08 +00:00
pancake
20925abb7f Fix all latest COVs and avoid use of tabs in i 2014-12-03 13:15:07 +01:00
pancake
123c9a87d0 Fix echo | r2 - infinite loop 2014-12-03 02:52:56 +01:00
Judge_Dredd
d4164af4ce fix history up/down bug (issue #1751) 2014-11-28 13:07:45 +01:00
pancake
f9fa0e5536 Fix ^C issue with nullcmd repeat issue (reported by @jfrankowski) 2014-11-24 03:10:29 +01:00
pancake
4762795c87 Fix static build 2014-11-23 11:03:24 +01:00
pancake
af94293214 Fix static linkage 2014-11-22 02:26:30 +01:00
pancake
23776435a2 Fix #1714 - Add ~{} and ~{}.. RCons filters for JSON indentation 2014-11-22 01:51:51 +01:00
pancake
f37246d3d8 Fix reverse RGB parser (fixes ecj issues) 2014-11-21 14:43:14 +01:00
Anton Kochkov
bede18046e Fix win32 build on CI 2014-11-20 16:52:33 +03:00
pancake
e86e3747d7 Handle emacs keys ^f and ^b in dietline too 2014-11-20 02:11:00 +01:00
pancake
4e2f55d374 Implement emacs keybindings for Visual mode (thanks jonatanhal) 2014-11-20 01:40:33 +01:00
pancake
68f9d00e01 Implement 'ecj' to show color configuration in JSON 2014-11-19 23:23:35 +01:00
pancake
5e236429c7 Implement ^Z in RCons for prompt and visual modes (unix only) 2014-11-19 22:25:17 +01:00
pancake
417cab4f93 Some more fixes for the disasm 2014-11-13 03:59:51 +01:00
pancake
6d4529ffbf Add core.anal plugin a2f command. Fix a bug in x86.cs, align comments at right 2014-11-13 03:36:48 +01:00
pancake
954ee2d607 Fix #1563 - Display bug on izz | more and izz |less 2014-11-10 05:39:17 +01:00
Henrik Nordstrom
5c5114c542 cons: Simplify buffer management slightly in r_cons_printf
there is no need to check twice if the buffer is full.

In additition the first check (deleted) has an off by one error.
2014-11-03 02:25:22 +01:00
pancake
211688f537 Handle bp.cmd and RBreakpointItem->cmd in RDebugContinue (bps and traces)
- Add scr.echo
2014-10-30 22:58:51 +01:00
pancake
b91d1d9eca Fix #1556 - radiff2 -x dump issue 2014-10-28 11:54:58 +01:00
pancake
8c49c1f10d Add palete colors for address info numbers in pxw/pxq 2014-10-27 11:55:52 +01:00
pancake
8b7d4b033c Add smyck theme 2014-10-21 00:08:43 +02:00