37 Commits

Author SHA1 Message Date
Anton Kochkov
d05bbb4be2 Fix CID #1134729 2014-04-23 02:18:53 +04:00
pancake
d27776c408 Fix infinite loop in ~. 2014-03-10 14:19:29 +01:00
pancake
4eb57a0080 Implement r_cons_less() activated with ~.. suffix 2014-02-11 02:32:37 +01:00
pancake
c56bb2cd29 Fix #530 2014-01-12 01:34:11 +01:00
David Martínez Moreno
cedef51ce4 Fix a round of typos and incorrect man macros.
The macro Em. was present in all the manpages and it's incorrect, plus
 there's some typos here and there, some of them spotted by lintian.
2013-12-31 23:52:46 -08:00
jvoisin
d1aaa61c58 Minor optimisation of grep.c 2013-10-24 00:08:28 +02:00
pancake
02259615a3 Fix issue in r_cons_grep() 2013-04-27 01:50:46 +02:00
pancake
542de1b426 Avoid dup load of DEX, reduce calls to r_meta_cleanup
- Nicer output for command 'fd'
- Cache methods to avoi dup loading
- Fix delimiter in internal grep (allow '/')
- Faster r_meta processing (reduce calls to meta_cleanup
2013-04-05 02:55:47 +02:00
pancake
5c1cd1f0ef Initial support for UTF8 in r_cons and r_util 2013-04-04 01:42:12 +02:00
pancake
4ffdaeb04f Fix warnings and refactor 'p' subcommands (pw -> pxw ..) 2012-09-27 19:35:19 +02:00
pancake
9f92f9aece Fix many null pointer deref when passing trashed data
Added 'pa' command to print assembled instructions
2012-09-18 03:39:32 +02:00
pancake
e2af4c93d4 Added htmlgraph.sh as a cmd.graph html5 graph backend
Many fixes for agv, rcons->html
2012-09-05 03:25:03 +02:00
pancake
476e3b0082 Fix consgrep segfault and do changes in print cmd
Add python print buffer (pcp)
Use psw instead of pS for wide strings
Add dir.types config variable
Fix segfault in RConsGrep
2012-08-28 17:50:49 +02:00
pancake
f65abc5e34 Add support for multiple cons grep attributes
Implement ~& attribute to match all words
Add ~?? to show help of grep
Fix buffer overflow in cons grep
Chop RLine buffer when > console columns
2012-08-09 18:19:00 +02:00
pancake
a2ebdcb650 Fix memleaks, nullref and undef (clang-analyzer)
Fix multiple inclusions of mk files
2012-08-08 17:19:48 +02:00
pancake
ca624cd8cd Fix index out of bounds in r_cons_grep 2012-08-08 10:56:25 +02:00
pancake
7dd1a94f2e Implement RCons grep ~foo? as an alias for ~?foo 2012-08-04 00:46:00 +02:00
pancake
690445700a * Add ^ and $ in cons grep expressions
* Minor work on source CL commands, needs review
2012-06-21 10:12:02 +02:00
pancake
403aa4b36d * Fix ~40 off-by-one strncpy's 2011-09-18 20:41:36 +02:00
pancake
a63ae7ff37 * Fix segfault in cons/grep.c with scr.html=true
* Fix Vala core test program
2011-09-02 02:03:38 +02:00
pancake
e1d569fbeb * use r_num_get in r_cons_grep
- Flags are now handled
* Added 'S.' command to show begin end and name of current section
* Implement 'sn' to seek to next opcode (alias for s+$l)
  - Added $l variable
* Rename r2 flag -v to -q
  -V flag is now -v (all flags in lowercase
2011-06-26 23:49:11 +02:00
pancake
e8a2d5b4cf * Fix '>' (pipe to file) functionality in OpenBSD
* Fix build of python plugin in OpenBSD (python2.5)
* Fix initialization of dbg->arch and remove useless printf
* Do not compile cons/color.c (unused)
* Use snprintf, memcpy instead of sprintf/strcpy
2011-04-04 18:33:27 +02:00
pancake
1210a6c4eb * Simplify cons-html code (-50LOC) 2011-04-29 10:38:01 +02:00
pancake
7e22c00602 * Hide verbose messages of "unknown cond, opcode" in anal
- #define VERBOSE in bb.c and fcn.c
* Fix memory leak in cons_grep
  - Fix grepping for null strings
  - Fixes count of lines x~?
2011-02-05 02:55:50 +01:00
pancake
0a294261aa * Many warnings fixed thanks to gentoo build and @astralia 2010-10-27 16:31:51 +02:00
Nibble
e22bdf0c79 * r_util
- Add r_str_ansi_filter() for removing ansi codes
    in a given string
* r_cons
  - Remove ansi codes before doing grep, avoid problems
    with colors
2010-08-13 01:18:06 +02:00
Nibble
e1e9eeca24 * Minor fixups in grep-cut 2010-08-03 13:30:58 +02:00
Nibble
27cce9d830 * Add cut-like syntax to the built-in grep
- f~str[1]    prints the column 1
  - f~str[-2]   prints the columns from the first one to column 2
  - f~str[1-]   prints columns from column 1 to the last one
  - It can be used with ':', so
    f~str:2[1]  prints the column 1 of the line 2
2010-08-03 11:36:41 +02:00
Nibble
f5ad5c138a * Fix z/ ranges 2010-07-21 12:59:11 +02:00
Nibble
a0d68da9d1 * built-in grep
- Fix segfault
  - Minor optimization
2010-07-19 05:05:30 +02:00
Nibble
3cc749b845 * Minor fixups in grep 2010-07-18 12:33:47 +02:00
Nibble
9e5f355e07 * Clean-up built-in grep code
* Fix bug parsing imported libs in r_bin_pe
2010-07-16 18:44:39 +02:00
Nibble
71443832f4 * Initial rewrite of built-in grep 2010-07-16 14:53:06 +02:00
pancake
3fb6db9f11 * Fix segfaults in cons and debug for w32 2010-06-28 01:04:27 +02:00
pancake
255191c670 * Some more work on r_cons_grep
* Minor refactor in TODO file
* Display xref data (Cx/CX are broken atm)
* Added Vx command
* Compare flag names with ut64 hashnames (faster execution)
* Swap d->i and x->d print formats
* Hint in r_str_cmp
2010-06-25 11:22:14 +02:00
pancake
a52c117a05 * Fix cons_grep for line matching
- columns and row grep is not working yet
  - console is now a bit faster, needs more work
  - random code cleanup
2010-06-25 01:44:15 +02:00
pancake
1341620c73 * Rename cons/filter.c to grep.c
- Some random changes.. with no success
  - Grepping console buffer is not working
* Cleanup the 'ds' and 'dp' commands
  - Implement 'dpa' to attach
  - Allow to list childrens of pid
  - Also list all attachable pids
* Fix segfault by leaking.. needs some cleanup
* Fix r_debug_reg_list (NULL) issue

--HG--
rename : libr/cons/filter.c => libr/cons/grep.c
2010-03-08 00:18:58 +01:00