Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: gdb@sourceware.org
Subject: Re: GDB does not respond to CTRL+Z and CTRL+C
Date: Tue, 20 Jun 2006 20:08:00 -0000	[thread overview]
Message-ID: <20060620183105.GA30908@nevyn.them.org> (raw)
In-Reply-To: <200606202018.56169.bartoschek@or.uni-bonn.de>

On Tue, Jun 20, 2006 at 08:18:56PM +0200, Christoph Bartoschek wrote:
> 
> > Then it is likely that your program is blocking the signal.  GDB
> > doesn't handle either directly; it forwards them to the program and
> > lets the OS handle delivery.
> 
> I do not think that we block the signal. However, I have to check the code.
> But this does not explain why I am able to use CTRL+Z and CTRL+C as intended 
> after sending SIGSTOP directly to GDB and foregrounding it again.
> 
> CTRL+Z and CTRL+C are only ignored until GDB receives the first SIGSTOP via 
> the kill command. If the signals are blocked, then I would expect that GDB  
> behaves similarly before and after SIGSTOP.

I don't know what's going on and can't reproduce it; you'd have to
figure this out yourself, I'm afraid.

> If the signals are really blocked, how should one interrupt debugging to set 
> breakpoints for example?

Try sending the program (not GDB) a SIGSTOP.  Don't confuse this with
CTRL-Z; that sends SIGTSTP, which can be blocked, but SIGSTOP can not.

-- 
Daniel Jacobowitz
CodeSourcery


      reply	other threads:[~2006-06-20 18:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-20 17:03 Christoph Bartoschek
2006-06-20 17:59 ` Daniel Jacobowitz
2006-06-20 18:04   ` Christoph Bartoschek
2006-06-20 18:19     ` Daniel Jacobowitz
2006-06-20 18:31       ` Christoph Bartoschek
2006-06-20 20:08         ` Daniel Jacobowitz [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=20060620183105.GA30908@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    /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