From: David Taylor <dtaylor@emc.com>
To: Luis Machado <lgustavo@codesourcery.com>
Cc: gdb@sourceware.org, dtaylor@emc.com
Subject: Re: why does GDB always stop a thread when connecting?
Date: Tue, 05 Apr 2016 20:52:00 -0000 [thread overview]
Message-ID: <8684.1459889504@usendtaylorx2l> (raw)
On 04/05/2016 01:43 PM, Luis Machado wrote:
Does setting "may-interrupt" to "off" help?
I'll try that as a possible kludgey workaround. But, if it works, since
the user should be able to stop and interrupt threads -- we just don't
want GDB doing so when not asked to do so -- it would mean the user
or the GUI would have to do something like:
set may-interrupt off
issue target command...
set may-interrupt on
For our target, and I suspect for many of the non-stop remote targets
out there, the only GDB operations that come to mind that require a
stopped thread are to read and/or write the registers of the thread and
to single step the thread.
We do not require a stopped thread to create or delete breakpoints. To
enable of disable breakpoints. To create, delete, enable, or disable
tracepoints. To start or stop a trace experiment. To read or write
memory.
IF there is no good reason for the current behavior, then I'm willing to
write and test a patch. If there is a good reason, then perhaps a new
user settable variable is needed to decide whether to do the pointless
and gratuitous (to me) stop of a thread when connecting.
David
next reply other threads:[~2016-04-05 20:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-05 20:52 David Taylor [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-03-28 21:12 taylor, david
2016-04-05 17:43 ` Luis Machado
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=8684.1459889504@usendtaylorx2l \
--to=dtaylor@emc.com \
--cc=gdb@sourceware.org \
--cc=lgustavo@codesourcery.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