Skip to content

RSB modifications to install stdcxx.py in gdb/python/rtems

Summary

The current implementation of auto-loading pretty-printers in GDB depends on a script, stdcxx.py to register the pretty-printers provided by GCC. The path to these scripts changes with every evolving version of GCC, and hence the gcc_version variable used in stdcxx.py would need updating with every new build.

Solution

Modify the gcc-common-1.cfg script in source-builder/config to:

  1. Find the current GCC version according to the target being built
  2. Add some instructions to resolve paths to the template script present in rtems/config
  3. Use that to install stdcxx.py with the correct GCC version in gdb/python/rtems in the build target directory

Closes rtems-tools#5 (closed)

Edited by Suraj Kumar

Merge request reports