Sebastian Huber started a new discussion on cpukit/sapi/src/exinit.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/98#note_109334 > > +/* > + * Additional Macro to add custom section (.debug_gdb_scripts) to > + * every ELF being built on RTEMS, in order to add auto-loading > + * support for Python scripts (specifically, GCC's pretty-printing > + * scripts), by in-lining the Python script in the section. > + */ > +#define DEFINE_GDB_PY() \ > + asm( \ > + ".pushsection \".debug_gdb_scripts\", \"MS\",@progbits,1\n" \ > + ".byte 4\n" \ > + ".ascii \"gdb.inlined-script\\n\"\n" \ > + ".ascii \"import sys\\n\"\n" \ > + ".ascii \"import os.path\\n\"\n" \ > + ".ascii \"sys.path.append(os.path.join(gdb.PYTHONDIR, 'rtems'))\\n\"\n" > \ > + ".ascii \"import rtems.stdcxx as stdcxx\\n\"\n" \ Why don't we add the Python code directly here? Relying on a matching RTEMS Tools installation could be a bit brittle. -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/98#note_109334 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list bugs@rtems.org http://lists.rtems.org/mailman/listinfo/bugs