Re: why does GDB always stop a thread when connecting?

Luis Machado <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
On 03/28/2016 04:12 PM, taylor, david wrote:
> Why does GDB always stop a thread?
>
> We set non-stop before connecting to our remote target.
> And during the initial back and forth, GDB always tells the
> first thread returned by qfThreadInfo to stop.
>
> Because of this we have arranged for the first thread in the
> list to be a thread that does nothing of consequence -- it is
> imminently stoppable.
>
> But, I would like to understand *WHY* GDB is stopping the thread.
>
> While registers aren't available if the thread is not stopped, that is
> to be expected.  Memory can be read and written.  Tracepoints and
> breakpoints can be created, enabled, disabled, deleted...  Trace
> experiments can be run.  Trace frames can be examined...
>
> Why does GDB need a stopped thread when it connects to the
> target?
>
>

Does setting "may-interrupt" to "off" help?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.