Add rarun2 -R as alias for dbg.profile
This commit is contained in:
parent
b362e2d2fb
commit
f9649cd144
|
@ -146,6 +146,7 @@ static int main_help(int line) {
|
|||
" -q quiet mode (no prompt) and quit after -i\n"
|
||||
" -p [prj] use project, list if no arg, load if no file\n"
|
||||
" -P [file] apply rapatch file and quit\n"
|
||||
" -R [rarun2] specify rarun2 profile to load (same as -e dbg.profile=X)\n"
|
||||
" -s [addr] initial seek\n"
|
||||
" -S start r2 in sandbox mode\n"
|
||||
#if USE_THREADS
|
||||
|
@ -302,7 +303,7 @@ int main(int argc, char **argv, char **envp) {
|
|||
argv++;
|
||||
} else prefile = 0;
|
||||
|
||||
while ((c = getopt (argc, argv, "=0AMCwfF:hm:e:nk:o:Ndqs:p:b:B:a:Lui:l:P:c:D:vVSzu"
|
||||
while ((c = getopt (argc, argv, "=0AMCwfF:hm:e:nk:o:Ndqs:p:b:B:a:Lui:l:P:R:c:D:vVSzu"
|
||||
#if USE_THREADS
|
||||
"t"
|
||||
#endif
|
||||
|
@ -386,6 +387,9 @@ int main(int argc, char **argv, char **envp) {
|
|||
r_config_set (r.config, "scr.prompt", "false");
|
||||
quiet = true;
|
||||
break;
|
||||
case 'R':
|
||||
r_config_set (r.config, "dbg.profile", optarg);
|
||||
break;
|
||||
case 's': seek = r_num_math (r.num, optarg); break;
|
||||
case 'S': sandbox = 1; break;
|
||||
#if USE_THREADS
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
.Op Fl o Ar kernel
|
||||
.Op Fl p Ar project
|
||||
.Op Fl P Ar patch
|
||||
.Op Fl R Ar rarun2
|
||||
.Op Fl s Ar addr
|
||||
.Op Fl 0AdDwntLquvV
|
||||
.Ar -|--|=|file
|
||||
|
@ -75,6 +76,8 @@ Quiet mode (no prompt)
|
|||
Set project file
|
||||
.It Fl P Ar file
|
||||
Apply rapatch file and quit
|
||||
.It Fl R Ar rarun2
|
||||
Specify dbg.profile rarun2 profile to use when spawning a program for debugging.
|
||||
.It Fl s Ar addr
|
||||
Start seeking at this address
|
||||
.It Fl S
|
||||
|
|
Loading…
Reference in New Issue