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