A basic tool for showing the callgraph to one function for c code projects.
-
Add the flag
-fdump-rtl-expand
to the GCC command line wich emits RTL files ending in.expand
-
Add the
.expand
file data to a databasewcm_create_db.py database.db folder1/*.expand folder2/*.expand...
-
Query the database by running
wcm.py
. The is usingfzf
to be able to do "fuzzy finding" of the variable