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
Add import graph (agi) + new ag? help #10132
Conversation
Removed agg? help Removed unused variable warning
Fix of string arguments in ag* commands Fix whitespace
libr/core/cmd_anal.c
Outdated
"agv", "", "Show function graph in web/png (see graph.web and cmd.graph) or agf for asciiart", | ||
"Usage:", "ag<graphtype><format> [addr]", "", | ||
"Graph types:", "", "", | ||
"c", " [fcn addr]", "Function callgraph", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you shuold put the whole command in here, otherwise it will break ?* to enumerate all recursive commands
libr/core/cmd_anal.c
Outdated
@@ -5992,6 +5982,28 @@ static void cmd_anal_graph(RCore *core, const char *input) { | |||
break; | |||
} | |||
break; | |||
case 'i': // agi "import graph" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put quotes around "agi", we use this to find where the commands are implemented by greeping for this expresssion which have very few false positives
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please review
Added the import graph, which is basically a cross-references graph to all the imports.
Also, since all graph types are mostly done, I decided that it was time to update ag? help.
I also changed
agv
command, which before behaved likeagfw
: now it is just an alias foragfv
, to remain consistent with thev
format character (interactive ascii) of the other ag commands.Fixed one or two things from my last pr (in particular, there was a compiler warning about unused variables).
After this pr what's left to do is addressing some issues with argument handling (the infamous agj @ 0) and adding capital letters for global graphs (which shouldn't be difficult) and then I think I'll have finished with ag*