Application of Vs2013 in Linux development (30): Program Interrupt

Source: Internet
Author: User


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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.