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

[suggestion] Support for renaming all the functions between 2 functions that reference a file name #6

Open
charlyzard opened this issue Sep 22, 2020 · 1 comment

Comments

@charlyzard
Copy link

Great job with the script, it's really useful.

Could you add support for renaming all the functions between 2 functions that reference a file name?

For example, if both sub_1000 and sub_2000 reference "...\mysource.cpp", it's highly probable that sub_1300, sub_1500, and all the functions between address 1000 and 2000 belong to the same source file (as the compiler and linker will put them together) even if they themselves don't have a reference to the string "...\mysource.cpp".

This is at least true for C and C++ files.

So if you take the lowest and highest addresses that reference a source file, you could rename all the functions between them.

Hope it helps.

@joxeankoret
Copy link
Owner

joxeankoret commented Sep 23, 2020

Ah, I understand. And yes, you're absolutely right: in most cases the functions in between will belong to the same object file. I will add it. Thanks for the tip!

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