Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [doco/threads] document internal thread signals on gnu/linux
Date: Fri, 24 Oct 2003 01:49:00 -0000	[thread overview]
Message-ID: <20031024014922.GA17970@nevyn.them.org> (raw)
In-Reply-To: <200310240123.h9O1N3iw010450@duracef.shout.net>

On Thu, Oct 23, 2003 at 09:23:03PM -0400, Michael Elizabeth Chastain wrote:
> This patch adds some doco about the existence and side effects
> of thread internal signals in GNU/Linux systems.
> 
> It should be, errr, self-documenting.  If you can't figure out
> what I'm talking about, then I need to rewrite this.
> 
> I'm motivated to write this because one of our test programs actually
> has a coding error in it, and this doco explains why the test program is
> badly written and what happens when such a program is run under gdb.
> 
> I'm looking for two kinds of comments: (1) is the content okay,
> and (2) is the formatting okay.

Close, but not quite.

It's not extra signals that are the problem.  The thread library
(nowadays!) generates no more signals under GDB than otherwise, but it
does generate a lot of signals.  GDB knows how to ignore them.

However, at some events the thread library calls a function where GDB
puts a breakpoint.  This causes GDB to stop all threads.

Gdbserver does not suffer from this problem with such severity.  I hope
to free GDB from it eventually also, but the internals have a long way
to go first.

It can still happen if you stop the program for another reason, of
course, like a normal breakpoint.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2003-10-24  1:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-24  1:23 Michael Elizabeth Chastain
2003-10-24  1:49 ` Daniel Jacobowitz [this message]
2003-10-24 14:52 ` Eli Zaretskii

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=20031024014922.GA17970@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb-patches@sources.redhat.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