Skip to content

Commit 4cd3662

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 bc96a44 commit 4cd3662

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
@@ -174,6 +174,12 @@ function(mbed_set_post_build target)
174174
mbed_generate_map_file(${target})
175175
endif()
176176

177+
# Give chance to adjust MBED_UPLOAD_LAUNCH_COMMANDS or MBED_UPLOAD_RESTART_COMMANDS
178+
# for debug launch
179+
if(COMMAND mbed_adjust_upload_debug_commands)
180+
mbed_adjust_upload_debug_commands(${target})
181+
endif()
182+
177183
mbed_generate_upload_target(${target})
178184
mbed_generate_ide_debug_configuration(${target})
179185
endfunction()

0 commit comments

Comments
 (0)