I'm currently writing a plugin for gcc (9.2) and am looking for a way to debug said plugin. For this purpose I have built gcc using these instructions to enable debug symbols for gcc. I then try to debug the plugin by invoking gcc within gdb with the following command:
./xg++ -wrapper gdb,--args -fplugin=plugin_name.so
This results in me being able to step through gcc itself, seeing its symbols. However, I am not able to access the plugins symbols. The plugin is compiled with the -g flag.
What do I need to do to also step through the plugin's code?