nsdsp_debug_multi_step
nsdsp_debug_request_halt nsdsp_debug_check_for_halt nsdsp_debug_wait_for_halt nsdsp_debug_get_pc nsdsp_debug_get_soft_bp nsdsp_debug_is_partitioned nsdsp_debug_can_swap nsdsp_debug_is_swapped nsdsp_debug_is_boot_swapped nsdsp_debug_get_flash_word nsdsp_debug_check_for_app nsdsp_debug_get_app_word nsdsp_debug_enable_exec_bp nsdsp_debug_enable_read_bp nsdsp_debug_enable_write_bp nsdsp_debug_disable_bp nsdsp_debug_enable_soft_bp nsdsp_debug_disable_soft_bp nsdsp_debug_read_ram nsdsp_debug_read_rom nsdsp_debug_read_reg nsdsp_debug_read_bp_state nsdsp_debug_read_cp0 nsdsp_debug_read_stack nsdsp_debug_check_for_data nsdsp_debug_wait_for_data nsdsp_debug_fetch_data nsdsp_debug_fetch_data_nb nsdsp_debug_fetch_word nsdsp_debug_fetch_flash_word nsdsp_debug_fetch_float nsdsp_debug_fetch_double nsdsp_debug_fetch_stack nsdsp_debug_fetch_bp_state nsdsp_debug_write_ram nsdsp_debug_write_reg nsdsp_debug_write_float_reg nsdsp_debug_write_double_regnsdsp_debug_multi_step
This function executes a specified number of single steps and halts.
Syntax
int nsdsp_debug_multi_step(
nsdsp_session_t session,
unsigned int count
);
Parameters
session - a reference to the Debug Session Object obtained with nsdsp_session_program_for_debug or nsdsp_start_debug_session function
count - the number of single steps to execute.
Return
The function returns non-zero if the run command has been succesfully queued, or zero otherwise
Notes
From the target device point of view, this function is equivalent to calling nsdsp_debug_single_step function several times, however it is more efficient and, on some devices, may be thousands times faster than executing single steps one by one.
From the debugger point of view, this function must be treated the same as nsdsp_debug_run function, except the target does not halt at breakpoints, but executes a specified number of steps.
On some of the devices, single step may execute multiple instructions. For example, in PIC32, the branch instruction and the instruction in the delay slot always execute together. This must be factored in when calculating the number of steps to run.
If the target device uses ordered halting the command queue will freeze until the device halts. If the target device uses unordered halting NSDSP will continue processing the command queue while the device runs.
Minimum library version - 163
© 2007-2025 Northern Software Inc. All Rights Reserved.