diff --git a/src/core_ghidra.cpp b/src/core_ghidra.cpp index a028ba20..a62e1eb3 100644 --- a/src/core_ghidra.cpp +++ b/src/core_ghidra.cpp @@ -686,8 +686,20 @@ static void _cmd(RCore *core, const char *input) { #if R2_VERSION_NUMBER >= 50909 extern "C" bool r2ghidra_core_cmd(RCorePluginSession *cps, const char *input) { RCore *core = cps->core; + if (!strcmp (input, "pdc.")) { + r_cons_println (core->cons, "pdc.ghidra"); + return false; + } + if (r_str_startswith (input, "pdc.ghidra")) { + _cmd (core, input + strlen ("pdc.ghidra")); + return true; + } + if (r_str_startswith (input, "pdc.g")) { + _cmd (core, input + strlen ("pdc.g")); + return true; + } if (r_str_startswith (input, "pdg")) { - _cmd (core, input + 3); + _cmd (core, input + strlen ("pdg")); return true; } return false;