89 Commits

Author SHA1 Message Date
pancake
e4b1438e1c A little bit more verbose plugin loading debug logs 2024-03-27 21:00:36 +01:00
pancake
b3a8edb96b Add RLogLevel.toColor() api 2024-02-27 11:02:05 +01:00
ashamedbit
9a169a8971 Fix leak in lib.c 2024-02-19 11:55:19 +01:00
Mewt R
372c319dfe Fix issue with detecting if a library/plugin was already loaded. Relates to #22445 2024-02-18 06:55:21 +01:00
pancake
8ba101fc21 Load script plugins from system directories, and cleanup logic 2024-01-08 11:34:26 +01:00
pancake
84e37b3a8c Use RTLD_GLOBAL only for penguin-pythonic libraries
* Fixes loading the lang-python plugin on Debian
* Consider this a conservative/experimental patch
2024-01-08 10:50:24 +01:00
pancake
386d9486a1 Hide the rasm2/rabin2/.. unrelated plugin loading errors ##shell
* Use the debug log level instead
2023-10-29 03:20:04 +01:00
Luc Tielen
a40d2e8006 Fix removing core plugins from Lc after L- ##core 2023-06-27 11:45:23 +02:00
pancake
2268fa785f
Speedup plugin loading and startup times ##core 2023-06-20 10:04:39 +02:00
pancake
bead2f39aa
WIP abi breaking fix to make plugin loading O(1) 2023-03-07 19:28:19 +01:00
pancake
1b49733909 Clear SSL (C|LD)FLAGS if not willing to use SSL at all ##build
* Fixes crash in r2frida
2023-02-16 19:45:20 +01:00
pancake
e4e73cefef Remove global in util/lib and just use RLogLevel ##globals 2022-12-29 21:29:16 +01:00
pancake
77c3797c71 Extra checks and enforce the singleton core plugin ##js 2022-12-27 13:35:02 +01:00
pancake
b8e6b52aac Also replace __UNIX__ with R2__UNIX__ 2022-12-10 20:32:10 +01:00
pancake
97a6439055 Do the same for __WINDOWS__ -> R2__WINDOWS__ 2022-12-10 20:32:10 +01:00
condret
bd50eeef38 Add R_LIB_TYPE_ARCH and i4004 arch-plugin ##arch 2022-09-23 04:38:35 +02:00
pancake
84a97a57e6 Use more R_LOG in core, bin, debug, io, .. and add more lints 2022-09-06 08:08:24 +02:00
pancake
7a35f03471 More source spacing linting 2022-08-18 14:37:29 +02:00
Richard Patel
b78855c38d Refactor a few eprintf 'Cannot …' to R_LOG_ERROR 2022-08-01 16:46:46 +02:00
Sergi Àlvarez i Capilla
9c9095aa92 Fix race condition in radiff2 test 2022-07-07 02:14:08 +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
d3d0e8f3ec Mark all globals (or most of them) as TLS variables ##core 2022-01-21 17:04:56 +01:00
pancake
8d44558224 Use RTLD_NOW when it's possible on Linux ##core
* Fix r2ghidra 'no print languages defined' bug
2021-08-30 21:00:27 +02:00
pancake
ba375f5702 Code cleanup, somewhat related to windows code 2021-08-27 03:03:34 +02:00
pancake
d894f967e8 Add r2pm -U to upgrade all the outdated packages 2021-06-15 12:09:27 +02:00
pancake
b545c72017
Better handling of HAVE_SYSTEM, PTY, FORK, DYLINK and THREADS ##build 2021-06-10 13:52:29 +02:00
Dennis Goodlett
a414f079de
Fix abort in r_lib_open (#18416) 2021-03-04 18:16:56 +01:00
pancake
cacc508fba
Fix #18412 - Add R2_IGNVER variable to load plugins ignoring the version ##core (#18413) 2021-03-03 18:03:58 +01:00
pancake
917682ac13 Fix plugin type name array issue in Lc command 2021-01-16 03:20:20 +01:00
pancake
27a625065a
Fix #16781 - Add --without-dylink configure flag to disable libdl features ##build (#17173)
* Add `--without-dylink` configure flag to disable "libdl" features
* Add "WANT_DYLINK" option in Meson buildsystem

Co-authored-by: pancake <pancake@nopcode.org>
2020-07-02 11:58:12 +08:00
pancake
5603366182
Be consistent and make all env vars start with R2_ (#16841) 2020-05-18 13:21:50 +02:00
pancake
5621f4030d
Fix #13626 - Only check for major and minor version numbers when loading plugins #core (#16424)
* Only check for major and minor version numbers when loading plugins ##core
* Fix leak
2020-04-06 16:06:28 +08:00
Florian Märkl
683694c3f5 Fix pkgname version check for real now (#15862) 2020-01-20 11:50:22 -05:00
Florian Märkl
c01a491bd2 Check version for pkgname correctly (#15860)
dot can be null
Using R2_VERSION_MAJOR/MINOR is wrong because they will be continuously updated and we want to check for exactly 4.2.0
The version check logic itself was wrong
2020-01-20 07:36:25 -05:00
pancake
066c1277dc Fix #15833 - Only print pkgname if the plugin is for r2 >= 4.2 2020-01-19 22:54:49 -05:00
radare
31e71d340f
Add pkgname in RLibStruct for r2pm on outdated plugins ##core (#15813) 2020-01-15 09:49:41 +01:00
GustavoLCR
e43c9e7caf Fix some warnings (#15549) 2019-12-08 12:49:58 +01:00
GustavoLCR
92bbe968b2 Kill r_sys_get_osinfo () (#15346) 2019-10-24 02:20:57 +02:00
Stefan Ilic
3f41b744c6 Fix leak in lib.c (#15319) 2019-10-20 23:37:10 +02:00
radare
54036dfbbe
Implement function-based plugin loading method ##core 2019-09-30 11:21:56 +02:00
Florian Märkl
0b9edb4a4c Move Lib already loaded check before dlopen Call (#15075) ##core 2019-09-19 18:48:19 +02:00
GustavoLCR
948ac864bf Fix #14816 - Properly get lib path ##windows 2019-08-18 21:10:17 +02:00
radare
2f2e07e8f4
Some code cleanup in RUtil.lib ##core 2019-08-09 23:49:15 +02:00
pancake
4a44ff4a90 Use libswiftCore library if available to demangle Swift5 symbols ##bin 2019-07-25 13:44:27 +02:00
Anton Kochkov
b858e7e10e Fix #13430 - Kill MinGW remnants ##deprecate 2019-03-31 12:03:07 +02:00
GustavoLCR
3fba693b91 Add support for UTF console input in Windows (#13338) ##windows
* Add support for UTF console input in Windows
* Convert ANSI input to UTF-8
* Convert UTF-8 to acp when calling ANSI version of functions
* Determine if Windows console output is UTF-8 on the fly
2019-03-18 16:05:38 +08:00
Anton Kochkov
bb67b54f74
Remove CYGWIN & MINGW remnants (#13377) 2019-03-15 12:55:08 +08:00
GustavoLCR
c8a3749c73 Implement self_regions for Windows ##io 2019-02-18 16:22:30 +01:00
pancake
9e4dff5294 Add Ll as an alias for #! ##plugins 2019-01-11 15:37:46 +01:00
Paul I
b2c7f7ef6c Some fixes (#12670) 2019-01-07 00:29:23 +01:00