Implement `dpt.` command to print the current selected process ##debug
This commit is contained in:
parent
b11fecf7e8
commit
f663fb0298
|
@ -319,10 +319,11 @@ static const char *help_msg_dp[] = {
|
|||
"dpf", "", "attach to pid like file fd // HACK",
|
||||
"dpk", " <pid> [<signal>]", "send signal to process (default 0)",
|
||||
"dpn", "", "create new process (fork)",
|
||||
"dptn", "", "create new thread (clone)",
|
||||
"dpt", "", "list threads of current pid",
|
||||
"dptj", "", "list threads of current pid in JSON format",
|
||||
"dpt", " <pid>", "list threads of process",
|
||||
"dpt.", "", "show current thread id",
|
||||
"dptj", "", "list threads of current pid in JSON format",
|
||||
"dptn", "", "create new thread (clone)",
|
||||
"dptj", " <pid>", "list threads of process in JSON format",
|
||||
"dpt=", "<thread>", "attach to thread",
|
||||
NULL
|
||||
|
@ -1082,6 +1083,9 @@ static void cmd_debug_pid(RCore *core, const char *input) {
|
|||
case '\0': // "dpt"
|
||||
r_debug_thread_list (core->dbg, core->dbg->pid, 0);
|
||||
break;
|
||||
case '.':
|
||||
r_cons_printf ("%d\n", core->dbg->tid);
|
||||
break;
|
||||
case 'j': // "dptj"
|
||||
if (input[3] != ' ') { // "dptj"
|
||||
r_debug_thread_list (core->dbg, core->dbg->pid, 'j');
|
||||
|
|
Loading…
Reference in New Issue