Buy Contact NSDSP Home

nsdsp_debug_fetch_bp_state

This function retrieves state of hardware breakpoints requested with nsdsp_debug_read_bp_state function. If the data is not immediately available, it waits until the data arrives.

Syntax

unsigned int nsdsp_debug_fetch_bp_state(
        nsdsp_session_t   session
);

Parameters

session - a reference to the Debug Session Object obtained with nsdsp_session_program_for_debug or nsdsp_start_debug_session function

Return

Each bit in the returned word represents a single breakpoint. If the bit is '1', the corresponding breakpoint has been triggered during the last run. Several bits may be set.

For each breakpoint, the position of the bit corresponds to the breakpoint id. You can check the bit using the following expression:

  bps = nsdsp_debug_fetch_bp_state(sess);
  if (bps & (1 << bpid)) {
    // breakpoint with id bpid has been triggered
    } else {
    // breakpoint with id bpid has not been triggered
  }

 

Minimum library version - 163

Northern Software Home NSDSP Contact Us Purchase/View Cart

© 2007-2025 Northern Software Inc. All Rights Reserved.