Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only outputs if -p >= 2 #18

Open
Synray opened this issue Jun 1, 2018 · 1 comment
Open

Only outputs if -p >= 2 #18

Synray opened this issue Jun 1, 2018 · 1 comment

Comments

@Synray
Copy link

Synray commented Jun 1, 2018

Same issue as #14
In the radare2 source tree, from folder radare2/libr/core, coccigrep will only output results if I set -p 2 or higher. It seems to only work reliably with -p 3 or higher.
This outputs nothing:

coccigrep -t 'RDisasmState' -a 'show_reloff' *c

While this works:

coccigrep -t 'RDisasmState' -a 'show_reloff' *c -p 3

output:

disasm.c:654 (RDisasmState *ds):                ds->show_reloff = r_config_get_i (core->config, "asm.reloff");
disasm.c:2289 (RDisasmState *ds):                       if (ds->show_reloff) {

Likewise this this doesn't work:

coccigrep -t 'RDisasmState' -a 'show_reloff' *c -p 1
@regit
Copy link
Owner

regit commented Jun 7, 2018

I'm using the latest git from coccigrep and I got result with coccigrep -t 'RDisasmState' -a 'show_reloff' *c -p 1

Coccinelle version is 1.0.4.deb-3+b4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants