255 Commits

Author SHA1 Message Date
kevin
1c30a14dc4 add uint32 and uint64 to ? output 2019-05-05 23:20:29 +02:00
radare
2aac9fa943
Initial implementation of alias files ##core (#13489)
pd 10 > $foo  # save the output of pd 10 into $foo
$foo          # print the contents of $foo (the output)
$*            # values are now printed in base64
$foo=base64:  # is now supported
2019-03-25 01:06:53 +01:00
Mahesh Kale
dc7abc8731 Change order of ? And i output (#13418) 2019-03-19 18:11:53 +01:00
MK
92610b7376 Add more file paths autocompletions ##cons 2019-03-16 19:43:05 +01:00
radare
73f76a99b2
Make RCons.is_interactive() into the RConsContext and improve loading projects in tasks ##cons (#13132) 2019-02-18 06:20:01 +01:00
Riccardo Schirone
23161bbf7f Remove most warnings during compilation 2019-02-14 10:40:25 +01:00
pancake
572539af9c Initial WIP implementation of sync using http and T ##sync 2019-01-13 03:42:56 +01:00
radare
ab3a7be704
Almost completely kill RIOSection from io and core (-218LOC) ##refactoring
* Use RBinSection, RDebugMap or RIOMap instead
* Remove omps command
* Fix segfault in ?E+
* Improve anal.eobjmp (bug spotted after almost killing iosections)
2019-01-13 03:07:51 +01:00
pancake
d83fa5c45d Add orangg avatar in ?E+ and implement r_str_list_join() ##visual 2019-01-11 09:59:17 +01:00
radare
32e494a696
Improve rap:// code, r2p_ is now r2pipe_ ##io (#12699) 2019-01-09 02:47:35 +01:00
pancake
8969d13389 Remove useless newline in json for ?j 2019-01-07 11:36:24 +01:00
pancake
10b3d1d7c0 Implement ?j to get JSON output of different representations for the same number ##core 2019-01-07 11:31:50 +01:00
Riccardo Schirone
8a6348b692
Fix another assert when printing blocks (#12173)
* Do not NULLIFY the result if the list is empty when getting boundaries

An empty list is different than a NULL return value. The caller has to
call r_list_free anyway on the returned list, so there's no real
advantage in returning NULL, it just makes the caller's life harder
because it cannot understand if NULL is returned because the list was
empty (e.g. there are no IO maps, etc.) or because there were some
errors.

* Check for NULL and exit if so, that's an error.

* Check r_core_get_boundaries_prot return value for NULL
2018-11-15 19:35:47 +01:00
lzutao
50320592a6 Fix #12060 and #12072 - Rewrite r_num_abs and r_num_units ##core
r_num_abs:

- Make r_num_abs static inline
- Use unsigned long long type when defining TB macro
- Use st64 instead of long long

r_num_units:

- Add len argument for buf in r_num_units
- Add PB and EB for r_num_units
- Always display one number after decimal point

  * This change simplifies the code
- Use long double type as assigning from ut64 to double cause data loss

r_num_tail_base:

- Use isxdigit (fast) instead of isHexDigit (slower)
- Rename nth to get_nth_nibble

Update all functions to use with new r_num_units:

- Remove side effect when using in other functions like cb_printf

* Trim trailing .0 when input is power of 2
2018-11-14 23:35:44 +01:00
Maijin
34abfd6d64
Remove all S commands ##refactoring 2018-10-30 13:23:18 +01:00
radare
4f81a35adb
Improve and update help message for the $F variables (#11819)
* Improve and update help message for the $F variables

* oops
2018-10-15 16:18:21 +02:00
Riccardo Schirone
7677ef9246 Memleaks (fix #11389) (#11674)
* util/strbuf: r_return ification!
* r_core_anal_hasrefs returns malloced string, free it after use
* util/list: r_return ification
* anal/fcn: prevent memleaks of RListIter objects in fcn->fcn_locs
The fcn_locs list was not freed because we don't need to free functions
from fcn_locs but we free them in core->anal. However, the list->free
method was set, even if never used, so I removed it.
Moreover, we should free the fcn_locs list anyway (but not the elements
inside) because the RListIter elements have been allocated on the heap.
* egg: remove *uck message
* core/cbin: check returned list before using it
* core/cbin: check list before using it
* util/strbuf: fix r_return condition in strbuf_append
* libr/core: fix some possible NULL deref and avoid function ptr casts
* only fcn->fcn_locs doesn't need the free function, the others do
2018-10-01 09:33:30 -04:00
radare
486c61529c
Implement the "underscore command" 2018-09-16 22:50:56 +02:00
pancake
885f9efeb0 Fix last covs and add $e{} in RNumCallback 2018-09-13 11:16:27 +02:00
pancake
39c527acf0 Fix signbit build problems for android-arm 2018-09-12 18:59:44 +02:00
klobs
6069422d0c Mention "l" command in help text (#11446)
The "l" command is currently missing in the help.
2018-09-08 12:29:12 +02:00
ylmrx
7a2a9900a2 several inline documentation enhancements (#11429)
* - avoid the ugly lack of space between the command and its description
in the usage lines.
- avoid the confusing sections (cf. 'i?')
- prettier general help (cf. '?') -> use r_core_cmd_help instead of
r_cons_printf (#7967)

with help and advices from jeisonwi

* - strlen() is better than sizeof()
- coding style correction.
2018-09-07 15:03:01 +02:00
pancake
1875a7f4f0 Add error handling in ?x- 2018-09-02 15:58:13 +02:00
Fangrui Song
ff0bc4aa3e Add $ command names beside case labels and update ?$? 2018-08-26 16:09:01 +02:00
Rene Laemmert
d28fa768f3 Removed access to r_io_section in core (#11222) 2018-08-24 15:55:04 +02:00
radare
2487fa20a4
Unify /A into /a and move ?O into aom (#11019)
* Many fixes related to the argument parsing and help messages
2018-08-11 16:39:18 +02:00
Abdullah Obaied
90cacfdcde Remove redundant yank (#10997)
* Remove redundant yank

* Remove deprecated messaged

* Remove ?y help entry

* Remove ?y case
2018-08-10 09:04:25 +02:00
Maijin
096d5eed00
?%? must be the same as %? Fix #10866 (#10894) 2018-08-02 13:18:48 +02:00
pancake
a11b7fdc7e Im retarded 2018-07-18 18:29:49 +02:00
pancake
fa6c126461 Implement ?vx command 2018-07-18 17:15:59 +02:00
pancake
4eec87cdf6 More warnings fixed 2018-07-14 10:58:19 +02:00
pancake
d495d531b0 Implement $r{} to access register values by name 2018-06-19 12:37:58 +02:00
pancake
53b84aebda Revert "Removing VVV from help (#10392)"
This reverts commit cb7c7e0d357f51986d92366f140d25e16c8badc6.
2018-06-19 09:51:04 +02:00
bannsec
cb7c7e0d35 Removing VVV from help (#10392) 2018-06-19 09:53:29 +08:00
Vivek Bhatt
93c9696938 Renamed ?d into aod(#10263) 2018-06-10 03:41:02 +02:00
David CARLIER
cd043ac676 Fix sdb_foreach callback signature 2018-06-01 12:23:43 +02:00
pancake
62eff87ce7 Implement ?d* to list all opcode descriptions 2018-06-01 01:10:55 +02:00
pancake
38d6dada8d Implement {flag} to get flag size 2018-05-30 13:00:39 +02:00
pancake
c93e49a7a3 Fix ?e 2018-05-10 16:32:46 +02:00
pancake
32605a8d91 Fix #10060 - Add ?e? help and Implement '?ep' to print PIE charts 2018-05-10 13:13:08 +02:00
pancake
e216f08826 Lowercase some help messages 2018-05-07 12:26:01 +02:00
Khairul Azhar Kasmiran
41b2b25593 Fix #9835: $$$ - current non-temporary virtual seek (#9971) 2018-04-27 18:41:29 +02:00
pancake
0d8c51d856 Use signbit instead of < with float/double 2018-04-15 18:13:02 +02:00
pancake
6bff6b758a Tweak to adjust nan sign to unify behaviour of different libc 2018-04-15 17:45:47 +02:00
pancake
7e9fd8b740 ? output is no longer a oneliner 2018-04-14 17:34:27 +02:00
Abominas
6c1961de67 Fix help message 2018-04-02 03:46:17 +02:00
pancake
0a71d05535 Use r_cons_printf in ?a and do not use oneliner strings in ascii_table.c 2018-03-21 23:10:17 +01:00
Akshay Ajayan
fc424815a2 Move ascii table to utils and add ?a command in r2 2018-03-21 18:36:42 +01:00
pancake
663f2f12cf Implement ?q to be like ?v but in quiet mode 2018-03-15 01:07:24 +01:00
Farid AYOUJIL
cc7fc36f27 Adding help for redirection (#9679) 2018-03-13 11:52:38 +01:00