public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "palves at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug cli/17300] crash in non-stop mode with continue -a & (readline_callback_read_char() called with no handler!)
Date: Fri, 24 Oct 2014 18:10:00 -0000	[thread overview]
Message-ID: <bug-17300-4717-5uGCfpeLZn@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-17300-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=17300

--- Comment #14 from Pedro Alves <palves at redhat dot com> ---
> There is no point to repeat "continue -a&" on subsequent <RET> when the 
> program is already running.

The command is repeated, but given it resumes all threads that are stopped, it
has no effect if all threads are already running.  It repeats in the sense that
if you have:

 (gdb) continue -a&
 (gdb) <RET>

(nothing happens)

 * some thread stops *
 (gdb) <RET>

Then this last <RET> repeats the c -a& and resumes the thread that stopped.

This is _no_ different from explicitly issuing the command rather than
just typing <RET>:

 (gdb) continue -a&
 (gdb) continue -a&

(nothing happens)

 * some thread stops *
 (gdb) continue -a&

Then this last c -a& resumes the thread that stopped.

And in turn, is different from commands that are documented to truly not
repeat, like, e.g., attach, detach, display, signal, target etc.  E.g.:

 (gdb) attach 1
 Attaching to process 1
 ptrace: Operation not permitted.
 (gdb) <RET>
 (gdb) <RET>
 (gdb) <RET>
 (gdb) <RET>

Those RET's don't really execute any command (related, I think GDB should say
something like "no command to repeat", or some such, rather than be quiet, for
truly non-repeat commands).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


  parent reply	other threads:[~2014-10-24 18:10 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-22  4:11 [Bug cli/17300] New: " dilyan.palauzov at aegee dot org
2014-10-05 14:13 ` [Bug cli/17300] " jan.kratochvil at redhat dot com
2014-10-06 13:10 ` palves at redhat dot com
2014-10-06 13:12 ` palves at redhat dot com
2014-10-06 13:22 ` palves at redhat dot com
2014-10-07 11:32 ` dilyan.palauzov at aegee dot org
2014-10-07 15:37 ` palves at redhat dot com
2014-10-07 15:43 ` palves at redhat dot com
2014-10-09 15:51 ` palves at redhat dot com
2014-10-17 12:47 ` cvs-commit at gcc dot gnu.org
2014-10-17 13:30 ` palves at redhat dot com
2014-10-17 13:31 ` palves at redhat dot com
2014-10-18 11:51 ` dilyan.palauzov at aegee dot org
2014-10-24 18:10 ` palves at redhat dot com [this message]
2014-10-25 11:15 ` dilyan.palauzov at aegee dot org
2014-10-29 19:48 ` cvs-commit at gcc dot gnu.org
2014-12-25  0:46 ` cvs-commit at gcc dot gnu.org

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=bug-17300-4717-5uGCfpeLZn@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).