mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-11 06:55:01 +00:00
Handle recursive pdc calls
This commit is contained in:
parent
2f310ab38f
commit
6b633ae0aa
@ -984,6 +984,7 @@ static int cb_cmdpdc(void *user, void *data) {
|
||||
RCore *core = (RCore *) user;
|
||||
RConfigNode *node = (RConfigNode *)data;
|
||||
if (node->value[0] == '?') {
|
||||
r_cons_printf ("pdc\n");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
@ -163,7 +163,7 @@ static void find_and_change (char* in, int len) {
|
||||
|
||||
R_API int r_core_pseudo_code(RCore *core, const char *input) {
|
||||
const char *cmdPdc = r_config_get (core->config, "cmd.pdc");
|
||||
if (cmdPdc && *cmdPdc) {
|
||||
if (cmdPdc && *cmdPdc && !strstr (cmdPdc, "pdc")) {
|
||||
return r_core_cmdf (core, "%s%s", cmdPdc, input);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user