in our gdb when the program is loaded and running, you can press ctrl-c interrupt execution, at which time gdb output:
^c*stopped,reason= "signal-received", signal-name= "SIGINT", signal-meaning= "Interru
PT ", frame={addr=" 0x00110424 ", func=" __kernel_vsyscall ", args=[]},thread-id=" 1 ", sto
Pped-threads= "All", core= "3"
after receiving this message, we need to use event notification SDM :
Send (New Ad7asyncbreakcompleteevent (), ad7asyncbreakcompleteevent.iid, thread);
The reverse process is that when we are in VS when an interrupt is selected in the SDM will be called:
The debugger calls Causebreak when the user clicks on the pause button in VS. The debugger should respond by entering //Breakmode. public int Causebreak ()
at this point we need togdbSendctrl-cinterrupts the execution of the program, receiving thegdbof the*stoppednotify after messageSDMcan be.
??
Application of Vs2013 in Linux development (30): Program Interrupt