Commit Graph

382 Commits

Author SHA1 Message Date
pancake
f089f6f985 Visual color theme editor available from panels ##visual
* Fix visual glitches in VE[hl]
* Handle empty 'VEc' properly
* Handle ':' command prompt in the visual theme editor
2022-04-09 12:10:32 +02:00
pancake
f8a35da205
Dont use != NULL as its implicit in C, even for bool casts ##refactor
$ find binr libr -name "*.c" -exec sed -i -e 's/ != NULL//g' {} \;
2022-03-15 19:54:04 +01:00
pancake
7370759fa0
Fix some bugs spotted by CodeQL 2022-03-15 15:22:25 +01:00
Lazula
d507bda91c Remove R_EMPTY and R_EMPTY2 2022-03-13 11:26:10 +01:00
pkubaj
6e4819b054
Add support for powerpc, powerpc64, powerpc64le and riscv64 on FreeBSD ##debug
* Also correct issue in vmenus.c, where ch is checked later whether it's -1, but on ARM and POWER, char is unsigned.
2022-02-18 19:25:53 +01:00
pancake
f2995c2949
Introduce r_strf and stop using sdb_fmt ##util 2022-01-18 18:35:31 +01:00
Lazula
ad749a0b1a Fix static/R_API function definition formatting
* Remove spaces before parens
* Remove spaces after asterisks
2021-12-21 20:58:12 +01:00
aviciano
5a0bc927e7
Fix #16178 - Rename the r_anal_fcn* apis to r_anal_function* 2021-11-21 20:18:46 +01:00
condret
932682ea8a Liberate RSpaces from old rbtree api 2021-11-20 01:02:53 +01:00
Lazula
2255bf8b5d Many indentation style fixes
* Change several 8-space indents to tabs
* Apply tab indent style when breaking long lines
* Move operators from EOL to start of next line
* Fix ternary formatting
2021-11-18 10:43:52 +01:00
pancake
215c1d3af0
Fix defining meta backwards in disasm ##visual (#19273) 2021-10-21 12:29:14 +02:00
pancake
cf5cd6df56
Fix latest covs (#19259) 2021-10-19 10:49:11 +02:00
condret
66510e8daa
Fix #18384 - Visual arg/var management not working sometimes ##visual 2021-10-14 17:48:03 +02:00
condret
36dd361694 Fix Vvv output for stackpointer based vars ##visual 2021-10-14 03:25:52 +02:00
pancake
84e323334c Fix recent android build regression 2021-08-19 18:26:22 +02:00
pancake
3158c9ff83
Fix #18292 - Clarify the use of Vdn/Vdr and rename VdR to VdX ##visual 2021-07-25 23:15:33 +02:00
pancake
5f4c27f7f8
Initial implementation of ~.... for hudline prompt ##visual (#18861)
* Add new RCons.hud.line(_string) APIs
2021-06-28 00:13:15 +02:00
pancake
83f590bee3
Fix the last issues spotted by coverity (#18787) 2021-05-31 22:04:51 +02:00
pancake
bdb7f0693f
Add 'aev' as an alias for VbE and improve esil debugger ##esil (#18764)
* n/p keys seek one instruction forward/backward
* o key to enter new offset
* e key to enter new esil expression
* infinite loop fixed on invalid expressions
* : enter commands working again
2021-05-27 20:36:53 +02:00
ChD1
580bdf2c52
Fix some bugs in dex.c, marshal.c, panels.c and other code optimization and fixel (#18297) 2021-01-27 10:53:50 +01:00
Qijia Liu
b8afdf8d7d Fix memleak in db/formats/mangling/mangling 2021-01-25 02:37:21 +01:00
Liumeo
c631443b9b
Remove strncat usage (#18229) ##refactor 2021-01-14 17:24:23 +01:00
pancake
f777478831 Fix #17940 - Show ConfigNode options when selected in Ve ##visual 2021-01-10 19:24:52 +01:00
ratijas
28149b2a95
Fix wording, whitespaces and other minor stuff ##doc (#18081) 2020-12-23 22:22:30 +01:00
Lazula
f2976d3c7e
Use r_str_get_fail() throughout codebase ##refactor (#18079) 2020-12-21 08:51:44 +01:00
ratijas
6d811285c2
Fix wording and whitespacing ##doc (#18065)
* Fix wording, whitespacing and other minor stuff
* cmd.c: ellaborated yy syntax, improved descriptions
  - replace "srcoff" with "origin"
* cmd.c(cmd_autocomplete):
  - refactor help into function: render autocomplete types with generic
    help subsystem;
  - "Types" heading now follow the "Usage" style by not being prefixed
    by a pipe character;
* cmd_anal.c: fix whitespaces & help text
* cmd_info.c: fix help text capitalization.
* cmd_print.c:
  - fix `pf` cmd help;
  - TODO: what pz? is doing here?
* cons.c:
  - refactor & better document r_cons_cmd_help();
  - fix whitespaces;
* visual & panels modes:
  - as of commit 46187fe4e1, '!' no longer
    launches the r2048 game. The game itself it broken anyway, even when
    running from the Help menu in panels mode;
  - transitioning from panels to visual is not 'entering' but actually
    swapping/replacing visual panels with just panels, thus...
  - reword 'enter into the' to 'swap into' or even just 'enter', e.g.:
    "enter into the visual panels mode" -> "enter visual panels mode".
  - remove the "(dwm style)" words from a fortune tip, because I have no
    idea what it is, and it does not appear to be a valid command in any
    of the r2 modes.
  - update global help text.
* [WIP 2] Fix wording, whitespacing and other minor stuff
* visual.c:
  - r_core_visual_append_help(): first steps merging with
    r_cons_cmd_help from cons.c; use consistent colors for headers.
* [WIP 3] Fix wording, whitespacing and other minor stuff
* panels.c(__update_help):
  - shorten code and titles;
  - add comment to clarify that it is not a copy-paste error;
* [WIP 4] Fix wording, whitespacing and other minor stuff
panels.c, visual.c: tweak help text;
* [WIP 5] Fix wording, whitespacing and other minor stuff
* cmd_help.c: update global help text about visual mode -- it was
  outdated and overloaded.
* vmenus.c:
  - rename stuff, shuffle around static consts to reflect an actual
    ordering when viewing as a help text;
  - slightly improve help text rendering;
  - fix whitespaces;
* [WIP 6] Fix wording, whitespacing and other minor stuff
* lots of help text changed.  still working on proper commit message.
2020-12-21 01:12:08 +01:00
Lazula
243bc871c3 Multiple refactors in io and util ##io ##util ##refactor
* Add r_io_map macros throughout code base
* Update string NULL-checking with renamed functions r_str_get() and r_str_getf()
* Change string NULL-checks throughout code base to use functions
* Add r_str_get_fail() to specify a custom string to return if NULL-check fails
* Mark JSON to be updated with PJ with "TODO PJ"
* Incidental style updates such as missing spaces
2020-12-13 05:09:13 +01:00
Anton Kochkov
87b10ed586 Fix formatting warnings 2020-11-02 18:58:37 +08:00
Anton Kochkov
afba51ce98 Fix format warnings in libr/core 2020-10-22 13:37:25 +08:00
Lowly Worm
834d60e431
allow dN to work in cursor mode (#17517) 2020-08-25 10:49:59 -04:00
pancake
75ee57bfb0
Update SDB with boolified SdbForeachCallback (#17040) 2020-06-11 11:25:23 +02:00
pancake
f8a9011924
Rename core.assembler to core.rasm (#16814) 2020-05-13 01:28:23 +02:00
Florian Märkl
edf1be10d1
Refactor Meta out of SDB (#16716) 2020-05-09 20:49:28 +02:00
Florian Märkl
4560120be2
Refactor Variable Accesses out of SDB (#16632)
Fix #15944
2020-04-19 17:56:27 +02:00
Florian Märkl
35290dd51d
Refactor Variables out of SDB ##anal (#16547) 2020-04-17 22:10:49 +02:00
Riccardo Schirone
c8f99840ab
r_core_seek accepts a boolean as 3rd argument (#16618)
Replaces all 0/1 passed as 3rd argument to r_core_seek with false/true.
2020-04-17 12:53:35 +02:00
Liumeo
1bcdd892db
Fix LGTM alerts (#16606) 2020-04-16 13:20:46 +08:00
pancake
961d5007a9
Do not use r_buf_data in DEX results in 1.5x faster parsing (22s vs 33s) ##bin
* Fix some memory leaks
* Mark r_buf_data as deprecated
* Remove some spaguetti (-42LOC)
* Fix buf license header authorship
* Make parser functions return void for simplicity
2020-04-05 19:24:36 +02:00
HoundThe
c6e8fb1e30
Add anal classes to "Vb" (#16383) ##visual
* base draft for Vb for anal classes
* Added color and boundary check
* Added placeholder print of selection from class.c
2020-04-04 10:58:08 +02:00
HoundThe
657acb2f1f
Another hotfix for the Vbc/ recursion stack overflow (#16382) 2020-03-31 17:54:17 +02:00
pancake
d0b98938c6 Fix infinite loop in Vbc/ - still unusable, but not crashing at least 2020-03-22 14:17:19 +01:00
pancake
ee3932dcb7 Missing newline in Vbc? class browser help message 2020-03-21 20:19:02 +01:00
radare
66ed0133e2
Initial r_anal_fcn_* purge (#16238) ##refactor 2020-03-17 12:58:39 +01:00
radare
80b7b2ae2c
Visual bit editor now shows bits up and down ##visual (#16234) 2020-03-17 03:30:16 +01:00
pancake
b1352ecd08 Add VdN (afs!) to edit function signature with cfg.editor ##visual 2020-03-10 10:30:32 +01:00
radare
5e629a3260
Avoidify the strTrim() APIs + cleanup/refactor ##util (#16056) 2020-03-02 21:39:37 +01:00
Paul I
0e62dda341
Fix fgets() usage (#16068) 2020-02-29 20:47:10 +01:00
radare
6ae8806411
Do not use the elvis operator for bool expressions (#16073) 2020-02-28 15:19:37 +01:00
Anton Kochkov
9ae41ae69f
Revert "Avoidify the RUtil.strTrim() APIs, rename trimHeadTail() and add asserts in RConfig ##refactor" (#16055)
This reverts commit 38b61c7bcf.
2020-02-26 09:59:04 +08:00
radare
38b61c7bcf
Avoidify the RUtil.strTrim() APIs, rename trimHeadTail() and add asserts in RConfig ##refactor 2020-02-25 17:53:09 +01:00