subsys/debug/gdb_server.c
/*
 * Request a flush of pending notification packets. This is done by setting
 * notif_pkt_pending to 1 before stopping the CPU. Once stopped, the
 * control loop will send pending packets before resuming the system.
 */
Request a flush of pending notification packets. This is done by setting
notif_pkt_pending to 1 before stopping the CPU. Once stopped, the
control loop will send pending packets before resuming the system.
Request a flush of pending notification packets . This is done by setting notif_pkt_pending to 1 before stopping the CPU . Once stopped the control loop will send pending packets before resuming the system .
static void request_notification_packet_flush(void)
{
	if (gdb_debug_status != NOT_DEBUGGING) {
		return;
	}
	notif_pkt_pending = 1;
	gdb_debug_status = DEBUGGING;
	control_loop();
	gdb_debug_status = NOT_DEBUGGING;
	RESUME_SYSTEM();
}
static void request_notification_packet_flush ( void ) { if ( gdb_debug_status != NOT_DEBUGGING ) { return ; } notif_pkt_pending = 1 ; gdb_debug_status = DEBUGGING ; control_loop ( ) ; gdb_debug_status = NOT_DEBUGGING ; RESUME_SYSTEM ( ) ; }
Request a flush of pending notification packets.
Request a flush of pending notification packets .
/*
	 * Before stopping CPU we must indicate that we're stopping the system
	 * to handle a packet notification. During the packet notification, we
	 * should prevent CPU from reading protocol...
	 */