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

The method edgesInto() couldn't get the methods calling a method #1

Open
elegantya opened this issue Nov 27, 2019 · 3 comments
Open

Comments

@elegantya
Copy link

I want to get the callgraph of one method,so I should get the method calling my method ,but debuging this project,I couldn't get the method calling my method,do you know why?

@rtfeng
Copy link
Owner

rtfeng commented Nov 27, 2019

I have to say, I'm not quite sure about what you want to get as the output...
Does "get the method calling my method" mean you want to get a partial callgraph with only parent method node?
Or you want a whole call graph for the entire APK.

@elegantya
Copy link
Author

elegantya commented Nov 27, 2019 via email

@rtfeng
Copy link
Owner

rtfeng commented Nov 27, 2019

I just want to get the call graph that contains the method I want,for example,I want to know which method calls the method A(),but using cg.edgesInto(A),I coun't get that. And method cg.edgesOutOf(A) could get the methods which A() calls. The method cg.edgesOutOf(A) works well,only cg.edgesInto(A) couldn't get the right output,I wonder how to get the methods calls the method A(). At 2019-11-27 16:23:51, "rtfeng" notifications@github.com wrote: I have to say, I'm not quite sure about what you want to get as the output... Does "get the method calling my method" mean you want to get a partial callgraph with only parent method node? Or you want a whole call graph for the entire APK. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Was the cg generated without any problems?
I would recommend you check the cg first. If the context in cg is all corrent, I think edgesInto(A) should work well.
BTW, open an issue on StackOverflow is a good choice for you, I think. There should be some other guys met this problem. Good luck!

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