run: provide core image with path information

Previously, the debugging version of the core image
(<build_dir>/var/run/<run_name>.core) was created by the run tool from
the common core object file
(<build_dir>/var/run/<run_name>/core-<kernel>.o). This object file,
however, was already stripped by the build system and thus didn't
contain debug info anymore. The build system also creates an unstripped
version in <build_dir>/debug/core-<kernel>.o, so we now use this one
for <build_dir>/var/run/<run_name>.core.

Ref #2254
This commit is contained in:
Martin Stein 2017-05-09 12:59:13 +02:00 committed by Christian Helmuth
parent 274b7983c1
commit 91a8c8975d
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ proc run_boot_dir {binaries} {
set bootstrap_obj bootstrap-hw.o
# create core and bootstrap binary without modules for debugging
build_core [run_dir]/genode/$core_obj {} [run_dir].core [core_link_address]
build_core debug/$core_obj {} [run_dir].core [core_link_address]
build_core [run_dir]/genode/$bootstrap_obj {} [run_dir].bootstrap [bootstrap_link_address]
# determine modules to be incorporated into the core image

View File

@ -784,7 +784,7 @@ proc build_core_image { modules } {
copy_genode_binaries_to_run_dir $modules
# create core binary without modules for debugging
build_core [run_dir]/genode/$core_obj {} [run_dir].core [core_link_address]
build_core debug/$core_obj {} [run_dir].core [core_link_address]
# determine modules to be incorporated into the core image
set modules [glob -nocomplain -tails -directory [run_dir]/genode/ *]