123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- The plugin requires gcc-8 version or later, which supports the plugin features. To install it, run the following commands,
- ./autogen.sh
- ./gcc8.sh
- make
- make install
- make distclean
- 1. Use plugin in gdb.
- The pre-defined dot plugin commands can be used. Rename file "gml4gtk-plugin.gdbinit" to ".gdbinit" or add "source dot-plugin.gdbinit" in your original ".gdbinit".
- You can use -fplugin-arg-gml4gtk-viewer=gml4gtk to select dot viewer
- 2. Use plugin without gdb.
- The plugin also can work without gdb, using -fplugin-arg-gml4gtk_plugin-option. Options are,
- * cgraph
- * cgraph-callee
- * cgraph-caller
- * gimple-hierarchy
- * help
- * passes
- * pass-lists
- * tree-hierarchy
- * viewer=name
- Here's an example about how to use dot plugin without gdb:
- gcc -fplugin=/path/to/gml4gtk_plugin.so -fplugin-arg-gml4gtk_plugin-cgraph foo.c
- There are examples in "example" directory.
- Any suggestion or bug report are welcome.
|