From cc2bcee417aa0b6bc4e682aec58c05984bc72593 Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Tue, 26 Nov 2024 15:04:39 +0100 Subject: [PATCH] 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 --- tool/run/boot_dir/hw | 1 + 1 file changed, 1 insertion(+) diff --git a/tool/run/boot_dir/hw b/tool/run/boot_dir/hw index cc1add10e0..0c442e5334 100644 --- a/tool/run/boot_dir/hw +++ b/tool/run/boot_dir/hw @@ -103,6 +103,7 @@ proc run_boot_dir {binaries} { if {[file exists debug/core-hw-[board].a]} { 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] + exec [cross_dev_prefix]objcopy --only-keep-debug [run_dir].core [run_dir].core.debug } # determine modules to be incorporated into the core image