mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-26 22:50:48 +00:00
Verbose R2_ARGS for debugging purposes ##shell
This commit is contained in:
parent
dbeb506eaa
commit
871d3436c4
@ -103,6 +103,10 @@ int main(int argc, const char **argv) {
|
||||
}
|
||||
char *ea = r_sys_getenv ("R2_ARGS");
|
||||
if (R_STR_ISNOTEMPTY (ea)) {
|
||||
R_LOG_INFO ("Using R2_ARGS: \"%s\"", ea);
|
||||
if (!r_str_startswith (ea, argv[0])) {
|
||||
R_LOG_WARN ("R2_ARGS should start with argv[0]=%s", argv[0]);
|
||||
}
|
||||
char **argv = r_str_argv (ea, &argc);
|
||||
r_sys_setenv ("R2_ARGS", NULL);
|
||||
int res = r_main_radare2 (argc, (const char **)argv);
|
||||
|
Loading…
Reference in New Issue
Block a user