@@ -317,6 +317,7 @@ static RCoreHelpMessage help_msg_pd = {
317317	"pD" , " N" , "disassemble N bytes" ,
318318	"pd" , " -N" , "disassemble N instructions backwards" ,
319319	"pd" , " N" , "disassemble N instructions" ,
320+ 	"pd:" , "[cmd]" , "run pseudo-decompiler plugin command (pdg is now pd:g, ..)" ,
320321	"pd--" , " N" , "context disassembly of N instructions" ,
321322	"pda" , "" , "disassemble all possible opcodes (byte per byte)" ,
322323	"pdaj" , "" , "disassemble all possible opcodes (byte per byte) in JSON" ,
@@ -7313,10 +7314,17 @@ static int cmd_print(void *data, const char *input) {
73137314			processed_cmd  =  true;
73147315			break ;
73157316		}
7317+ 		case  ':' : // "pd:" 
7318+ 			if  (input [2 ] ==  '?' ) {
7319+ 				// nothing 
7320+ 			} else  if  (!input [2 ]) {
7321+ 				r_core_cmd0  (core , "pd:?" );
7322+ 			} else  {
7323+ 				R_LOG_ERROR  ("Unknown subcommand" );
7324+ 			}
7325+ 			return  0 ;
73167326		case  'c' : // "pdc" // "pDc" 
7317- 			if  (input [2 ] ==  '.' ) {
7318- 				// do nothing, all the decompilers should be handling "pdc." to be listed 
7319- 			} else  if  (input [2 ] ==  'l' ) {
7327+ 			if  (input [2 ] ==  'l' ) {
73207328				linear_pseudo  (core , input  +  3 );
73217329			} else  {
73227330				r_core_pseudo_code  (core , input  +  2 );
0 commit comments