Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: vladimir@codesourcery.com
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Inform about new thread in a single place.
Date: Fri, 14 Dec 2007 20:37:00 -0000	[thread overview]
Message-ID: <200712141954.lBEJsSIZ006435@brahms.sibelius.xs4all.nl> (raw)
In-Reply-To: <200712142240.20597.vladimir@codesourcery.com> (message from 	Vladimir Prus on Fri, 14 Dec 2007 22:40:20 +0300)

> From: Vladimir Prus <vladimir@codesourcery.com>
> Date: Fri, 14 Dec 2007 22:40:20 +0300
> 
> > > What about me adding 'add_thread_silent' function that will
> > > not print any message, and using it in bds-uthread.c?
> > 
> > That'd be acceptable to me.  I'm not absolutely true that none of the
> > modules you mention above don't need this, but we can fix those when
> > we notice the problem.
> 
> Here's the revised patch. OK?

I don't think so.  Look at the output from debugging a threaded
program and ask yourself if you really have that many new threads ;)

Also, this makes some platforms now print the message, where it didn't
before (for example on win32).  Please make sure you get approval from
the relevant maintainers for any changed behaviour.

Cheers,

Mark

> 	* thread.c (add_thread_silent): Renamed
> 	from add_thread.
> 	(add_thread): Announce new thread.
> 	* gdbthread.h (add_thread_silent): Declare.
> 	* inf-ttrace.c (inf_ttrace_wait): Don't
> 	inform about new thread, as add_thread is always
> 	called too, and will take care of that.
> 	* infrun.c (handle_inferior_event): Likewise.
> 	* procfs.c (procfs_wait): Likewise.
> 	* remote.c (remote_currthread): Likewise.
> 	* sol-thread.c (sol_thread_wait): Likewise.
> 	* win32-nat.c (get_win32_debug_event): Likewise.
> 	* gdb/linux-nat.c (lin_lwp_attach_lwp): Likewise.
> 	* linux-thread-db.c (attach_thread): Don't inform
> 	about new thread.  This is called only from
> 	linux-thread-db.c:attach_thread, which will take care.


  parent reply	other threads:[~2007-12-14 19:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-14 17:14 Vladimir Prus
2007-12-14 19:07 ` Mark Kettenis
2007-12-14 19:21   ` Vladimir Prus
2007-12-14 19:42     ` Mark Kettenis
2007-12-14 19:47       ` Vladimir Prus
2007-12-14 19:55         ` Daniel Jacobowitz
2007-12-14 20:45           ` Vladimir Prus
2007-12-16 20:06           ` Eli Zaretskii
2007-12-14 20:37         ` Mark Kettenis [this message]
2007-12-14 20:49           ` Vladimir Prus

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=200712141954.lBEJsSIZ006435@brahms.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=gdb-patches@sources.redhat.com \
    --cc=vladimir@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