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:
- Find the current GCC version according to the target being built
- Add some instructions to resolve paths to the template script present in
rtems/config
- Use that to install
stdcxx.py
with the correct GCC version ingdb/python/rtems
in the build target directory
Closes rtems-tools#5 (closed)
Edited by Suraj Kumar