Skip to content

Commit 1ba35e4

Browse files
committed
Upload: Support adjustment of debug commands for debug launch
This gives chance to adjust GDB commands MBED_UPLOAD_LAUNCH_COMMANDS or MBED_UPLOAD_RESTART_COMMANDS for debug launch by implementing mbed_adjust_upload_debug_commands cmake function.
1 parent eca8047 commit 1ba35e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/cmake/mbed_target_functions.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,12 @@ function(mbed_set_post_build target)
169169
mbed_generate_map_file(${target})
170170
endif()
171171

172+
# Give chance to adjust MBED_UPLOAD_LAUNCH_COMMANDS or MBED_UPLOAD_RESTART_COMMANDS
173+
# for debug launch
174+
if(COMMAND mbed_adjust_upload_debug_commands)
175+
mbed_adjust_upload_debug_commands(${target})
176+
endif()
177+
172178
mbed_generate_upload_target(${target})
173179
mbed_generate_ide_debug_configuration(${target})
174180
endfunction()

0 commit comments

Comments
 (0)