jlaitine opened a new pull request, #17122: URL: https://github.com/apache/nuttx/pull/17122
## Summary This flag can be used to store the filename of a loaded module or executable in binfmt. The filename is useful for example in debugging. For debugging purpose, gdb or a jtag debugger can be configured to automatically fetch the symbols for the currently executing module. I have been using this to help in debugging applications in CONFIG_BUILD_KERNEL, autoloading symbols whenever the target is stopped with gdb. I don't know if there are existing or better ways to achieve the same, if there is a better way or more complete "OS awareness" available for gdb, we can just ignore this. I am only offering the method here, in case others find it useful as well. Here is an example script of how such feature can be utilized using gdb: [smp_autosymbols.py](https://github.com/user-attachments/files/22612431/smp_autosymbols.py) Usage in gdb: set $cpu_index = 0 # for smp, set cpu index for each gdb server set $symbol_path_prefix = "<path_to_symbol_elf_files>" source /<path_to_script>/smp_autosymbols.py ## Impact No impact on any existing configurations, just adds the executable name in bin in case the flag is defined in .config. ## Testing Tested in IMX9 platform, CONFIG_BUILD_KERNEL, SEGGER JLink + GDB. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
