Skip to content

Commit de5ad78

Browse files
committed
fix(cmakev2/project): drop prefix_map_gdbinit in favor of gdbinit/prefix_map
The cmakev1 dropped generation of prefix_map_gdbinit, reflect this change also in cmakev2. Signed-off-by: Frantisek Hrbata <[email protected]>
1 parent 947d78a commit de5ad78

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tools/cmakev2/project.cmake

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -472,13 +472,10 @@ function(__init_project_configuration)
472472
get_filename_component(compiler_sysroot "${compiler_sysroot}/.." REALPATH)
473473
list(APPEND compile_options "-fdebug-prefix-map=${compiler_sysroot}=/TOOLCHAIN")
474474
string(APPEND gdbinit_file_lines "set substitute-path /TOOLCHAIN ${compiler_sysroot}\n")
475-
476-
file(WRITE "${build_dir}/prefix_map_gdbinit" "${gdbinit_file_lines}") # TODO IDF-11667
477-
idf_build_set_property(DEBUG_PREFIX_MAP_GDBINIT "${gdbinit_path}")
478475
else()
479476
set(gdbinit_file_lines "# There is no prefix map defined for the project.\n")
480477
endif()
481-
# Write prefix_map_gdbinit file even it is empty.
478+
# Write the prefix_map file even if it is empty.
482479
file(MAKE_DIRECTORY ${gdbinit_dir})
483480
file(WRITE "${gdbinit_path}" "${gdbinit_file_lines}")
484481

0 commit comments

Comments
 (0)