Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Alexander Stante <mrpac@gmx.de>
To: Modi Banti <b.modi@sssup.it>
Cc: gdb@sources.redhat.com
Subject: Re: How does GDB informs remote stub about  '^Cremote_interrupt called '
Date: Sun, 11 Jul 2004 05:32:00 -0000	[thread overview]
Message-ID: <40F0D0FA.5020005@gmx.de> (raw)
In-Reply-To: <web-4863983@sssup.it>

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


      reply	other threads:[~2004-07-11  5:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-27  2:26 Remote stub for ARM processor Modi Banti
2004-06-27 23:50 ` Steven Johnson
2004-06-28 14:03   ` Modi Banti
2004-07-10 16:11 ` How does GDB informs remote stub about '^Cremote_interrupt called ' Modi Banti
2004-07-11  5:32   ` Alexander Stante [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40F0D0FA.5020005@gmx.de \
    --to=mrpac@gmx.de \
    --cc=b.modi@sssup.it \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox