From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21023 invoked by alias); 11 Jul 2004 05:32:46 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21016 invoked from network); 11 Jul 2004 05:32:45 -0000 Received: from unknown (HELO mail.gmx.net) (213.165.64.20) by sourceware.org with SMTP; 11 Jul 2004 05:32:45 -0000 Received: (qmail 7502 invoked by uid 65534); 11 Jul 2004 05:32:44 -0000 Received: from pD9E9A881.dip.t-dialin.net (EHLO gmx.de) (217.233.168.129) by mail.gmx.net (mp009) with SMTP; 11 Jul 2004 07:32:44 +0200 X-Authenticated: #715142 Message-ID: <40F0D0FA.5020005@gmx.de> Date: Sun, 11 Jul 2004 05:32:00 -0000 From: Alexander Stante User-Agent: Mozilla Thunderbird 0.5 (X11/20040306) MIME-Version: 1.0 To: Modi Banti CC: gdb@sources.redhat.com Subject: Re: How does GDB informs remote stub about '^Cremote_interrupt called ' References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-07/txt/msg00095.txt.bz2 Modi Banti wrote: > I am building a remote stub for an Arm simulator. I am using sockets to > communicate with GDB. when I want to break my program using through GDB( > C -c) I cann see the message ' ^Cremote_interrupt called' in GDB but I > dont get any packets in my reomte stub. I am not sure how GDB informs > the remote target to stop? does anybody have any idea about this? I added a GdbStub for a game console emulator on which the actual code for debugging is running on. But instead of sockets I used pipe to communicate. In this case gdb just sends a ^C to the emulator which leads to a SIGINT signal. I just had to wrote a SIGINT handler for the emulator to get this working correctly. The handler just sets a Variable to '1' and the Emulator checks at a certain point. If it is sets and handels control over to the "main" function of the stub where all the command processing is done. Not exactly the case you have but maybe that helps. Bye Alex