Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Siva Velusamy <siva.velusamy@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Ctrl+C when a watchpoint is set gdb
Date: Wed, 07 Nov 2007 02:41:00 -0000	[thread overview]
Message-ID: <20071107024101.GA850@caradoc.them.org> (raw)
In-Reply-To: <e7dfeff00711061832w3dddaafq2c71c07d367fac60@mail.gmail.com>

On Tue, Nov 06, 2007 at 06:32:04PM -0800, Siva Velusamy wrote:
> However, the function bpstat_explains_signal is defined as follows:
> 
> breakpoint.h:547
> /* Nonzero if a signal that we got in wait() was due to circumstances
>    explained by the BS.  */
> /* Currently that is true if we have hit a breakpoint, or if there is
>    a watchpoint enabled.  */
> #define bpstat_explains_signal(bs) ((bs) != NULL)
> 
> Since there is a watchpoint defined, this ends up evaluating to true,
> even though this is a trap signal caused by Ctrl+C. Eventually, this
> leads to keep_going(ecs) being called.

You shouldn't be getting to the call to bpstat_explains_signal at all.
Is your remote stub returning the wrong signal for C-c?  It should be
TARGET_SIGNAL_INT, not TARGET_SIGNAL_TRAP.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2007-11-07  2:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-07  2:32 Siva Velusamy
2007-11-07  2:41 ` Daniel Jacobowitz [this message]
2007-11-07  2:48   ` Siva Velusamy
2007-11-07  2:55     ` Daniel Jacobowitz

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=20071107024101.GA850@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=siva.velusamy@gmail.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