tool/run: create debug files for backtrace of core

When building ELF binaries of core and bootstrap for a run scenario,
also create the *.core.debug file to be able to use the tool/backtrace
utility.

Ref genodelabs/genode#5387
This commit is contained in:
Stefan Kalkowski 2024-11-26 15:04:39 +01:00 committed by Norman Feske
parent 2c2fb6b70e
commit cc2bcee417

View File

@ -103,6 +103,7 @@ proc run_boot_dir {binaries} {
if {[file exists debug/core-hw-[board].a]} { if {[file exists debug/core-hw-[board].a]} {
build_core debug/core-hw-[board].a {} [run_dir].core [core_link_address] build_core debug/core-hw-[board].a {} [run_dir].core [core_link_address]
build_core [run_dir]/genode/$bootstrap_obj {} [run_dir].bootstrap [bootstrap_link_address] build_core [run_dir]/genode/$bootstrap_obj {} [run_dir].bootstrap [bootstrap_link_address]
exec [cross_dev_prefix]objcopy --only-keep-debug [run_dir].core [run_dir].core.debug
} }
# determine modules to be incorporated into the core image # determine modules to be incorporated into the core image