This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb.texinfo patch


On 05/15/2014 12:48 PM, David Taylor wrote:
Luis Machado <lgustavo@codesourcery.com> wrote:

On 05/15/2014 12:25 PM, David Taylor wrote:
In writing a new stub (to replace our old stub), I have discovered what
I believe to be the rule for how GDB chooses which thread to stop during
the initial connection.  Knowing this sooner would have saved my some
grief.  Hoping to help the next person avoid that same grief, here's a
patch (as a unified diff against gdb/doc/gdb.texinfo of GDB 7.7) to
document it.

[...]

Does GDB always want to stop the thread, even when "may-interrupt" is=20
set to "off"?

I wasn't aware of that variable, so I don't know.  It will require some
investigation.  Certainly with non-stop mode turned on and may-interrupt
at the default value, it stops it.


Yeah. Unfortunately it is another one of those obscure settings. :-)

Given we have this option, it may be worth mentioning it in the piece you are patching, just for the sake of completeness. Otherwise folks may think GDB will always stop the threads when connecting.

It will stop most of the time anyway, since it is the default after all.

Luis


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]