Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <vladimir@codesourcery.com>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Inform about new thread in a single place.
Date: Fri, 14 Dec 2007 19:21:00 -0000	[thread overview]
Message-ID: <200712142207.19754.vladimir@codesourcery.com> (raw)
In-Reply-To: <200712141847.lBEIljv2008865@brahms.sibelius.xs4all.nl>

On Friday 14 December 2007 21:47:45 Mark Kettenis wrote:
> > From: Vladimir Prus <vladimir@codesourcery.com>
> > Date: Fri, 14 Dec 2007 20:09:08 +0300
> > 
> > We have lots of place where "[New thread XXX]" is printed.
> > This patch makes add_thread responsible for that. OK?
> 
> No, there are places in the code where add_thread() is called where we
> should not print the "[New thread xxx]" message.  For example in
> bsd-uthread.c, where the main thread is added to the list of threads
> to associate process ID and thread ID.

Do you mean this code:

  /* HACK: Twiddle INFERIOR_PTID such that the initial thread of a
     process isn't recognized as a new thread.  */
  if (ptid_get_tid (ptid) != 0 && !in_thread_list (ptid)
      && ptid_get_tid (inferior_ptid) == 0)
    {
      add_thread (ptid);
      inferior_ptid = ptid;
    }

? I've just re-checked, and it appears that:

1. The modules that called add_thread without printing
a message about new thread, prior to my patch are:

	- aix-thread.c
	- bsd-uthread.c
	- corelow.c
	- hpux-thread.c
	- nto-procfs.c
	
Looking at those, it seems like the place you've pointed
at is the only one where reporting of new thread is undesirable.

What about me adding 'add_thread_silent' function that will
not print any message, and using it in bds-uthread.c?

- Volodya


  reply	other threads:[~2007-12-14 19:07 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 [this message]
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
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=200712142207.19754.vladimir@codesourcery.com \
    --to=vladimir@codesourcery.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=mark.kettenis@xs4all.nl \
    /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