Skip to content

Commit a6ccde8

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 b352953 commit a6ccde8

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
@@ -166,6 +166,12 @@ function(mbed_set_post_build target)
166166
mbed_generate_map_file(${target})
167167
endif()
168168

169+
# Give chance to adjust MBED_UPLOAD_LAUNCH_COMMANDS or MBED_UPLOAD_RESTART_COMMANDS
170+
# for debug launch
171+
if(COMMAND mbed_adjust_upload_debug_commands)
172+
mbed_adjust_upload_debug_commands(${target})
173+
endif()
174+
169175
mbed_generate_upload_target(${target})
170176
mbed_generate_ide_debug_configuration(${target})
171177
endfunction()

0 commit comments

Comments
 (0)