Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gnu.org>
To: Pedro Alves <pedro@codesourcery.com>
Cc: Ulrich Weigand <uweigand@de.ibm.com>,
	gdb@sourceware.org, 	"Alfred M. Szmidt" <ams@gnu.org>,
	bug-hurd@gnu.org
Subject: Re: [PATCH?] GDB HEAD (partly) broken for GNU/Hurd
Date: Tue, 14 Oct 2008 15:49:00 -0000	[thread overview]
Message-ID: <20081014154610.GJ21737@fencepost.gnu.org> (raw)
In-Reply-To: <200810131935.35253.pedro@codesourcery.com>

[-- Attachment #1: Type: text/plain, Size: 2221 bytes --]

Hello!

On Mon, Oct 13, 2008 at 07:35:34PM +0100, Pedro Alves wrote:
> Thanks Thomas :-)  One thing I asked myself was, if gnu-nat.c couldn't be using
> the port's id as thread ids instead of a locally auto-generated number.  Maybe
> the thread id of the main thread would be preserved across execs this way, but,
> this is off-scope for now.

I can't tell without having a detailed look at that -- for which I
absolutely don't have the time at the moment, unfortunately.  I made this
a TODO item:
<http://www.bddebian.com/~wiki/hurd/open_issues/gdb_thread_ids/>


> On Monday 13 October 2008 17:40:25, Ulrich Weigand wrote:
> > Hmm.  It would appear that "set exec-wrapper" is currently broken with
> > the gnu-nat.c target, right?
> 
> Yeah, it appears so.  Don't know if it's possible to get rid of the local
> pending execs handling in gnu-nat.c.  An alternative would be to make
> pending_execs a property of inferior.h:`struct inferior' instead of of
> gnu-nat.c:`struct inf'.

Another TODO item:
<http://www.bddebian.com/~wiki/hurd/open_issues/gdb_pending_execs/>


> (I also notice that when going through the shell in non-stop
> mode, it would be more correct to resume all threads --- we
> don't want non-stop and its scheduler-locking to apply to the shell.
> Basically, non-stop should be off if there are pending execs.
> This was an existing issue, and doesn't affect linux today, so I'll
> just ignore that for now, as it needs more tweaking to fix.)

And non-stop mode isn't even supported with gnu-nat.c -- yet another TODO
item: <http://www.bddebian.com/~wiki/hurd/open_issues/gdb_non-stop_mode/>


> What do you guys think?  Thomas, could you try the attached patch
> on the Hurd, please?  I just gave it a spin on x86-64-unknown-linux-gnu
> without regressions.

> 2008-10-13  Pedro Alves  <pedro@codesourcery.com>
> 
> 	* fork-child.c (startup_inferior): Only set threads not-executing
> 	after getting all the pending execs.  On TARGET_WAITKIND_IGNORE,
> 	keep waiting, don't resume.  On all other cases but
> 	TARGET_WAITKIND_SIGNALLED and TARGET_WAITKIND_EXITED, switch to
> 	the event ptid.

Fine on Hurd as well, thanks!


Regards,
 Thomas

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 191 bytes --]

  reply	other threads:[~2008-10-14 15:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-09  9:37 Thomas Schwinge
2008-10-09 11:47 ` Alfred M. Szmidt
2008-10-09 12:46   ` Commit access for me? (was: GDB HEAD (partly) broken for GNU/Hurd) Thomas Schwinge
2008-10-09 13:21     ` Joel Brobecker
2008-10-09 11:55 ` GDB HEAD (partly) broken for GNU/Hurd Pedro Alves
2008-10-11  2:49   ` Thomas Schwinge
2008-10-11  2:50     ` Pedro Alves
2008-10-11 17:29       ` Thomas Schwinge
2008-10-11 17:43         ` [PATCH?] " Thomas Schwinge
2008-10-13 16:41           ` Ulrich Weigand
2008-10-13 18:35             ` Pedro Alves
2008-10-14 15:49               ` Thomas Schwinge [this message]
2008-10-11 17:47         ` Pedro Alves
2008-10-11 17:49           ` Thomas Schwinge

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=20081014154610.GJ21737@fencepost.gnu.org \
    --to=tschwinge@gnu.org \
    --cc=ams@gnu.org \
    --cc=bug-hurd@gnu.org \
    --cc=gdb@sourceware.org \
    --cc=pedro@codesourcery.com \
    --cc=uweigand@de.ibm.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