From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19398 invoked by alias); 9 Aug 2008 23:19:30 -0000 Received: (qmail 19389 invoked by uid 22791); 9 Aug 2008 23:19:29 -0000 X-Spam-Check-By: sourceware.org Received: from hiauly1.hia.nrc.ca (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 09 Aug 2008 23:18:52 +0000 Received: by hiauly1.hia.nrc.ca (Postfix, from userid 1000) id 9A9454DCB; Sat, 9 Aug 2008 19:18:49 -0400 (EDT) Subject: Re: ttrace: Protocal error To: pedro@codesourcery.com (Pedro Alves) Date: Sat, 09 Aug 2008 23:19:00 -0000 From: "John David Anglin" Cc: gdb-patches@sourceware.org In-Reply-To: <200808092351.01974.pedro@codesourcery.com> from "Pedro Alves" at Aug 9, 2008 11:51:01 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20080809231849.9A9454DCB@hiauly1.hia.nrc.ca> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00264.txt.bz2 > On Saturday 09 August 2008 23:45:23, Pedro Alves wrote: > > > Hope I haven't broken anything badly. I've never in my live logged in > > to an HP-UX system, so wear sunglasses. > > And of course, I meant to say that this applies on top of my other > patch to register the main thread; and that this is an alternative > patch for consideration. It's fine with me to go the other simpler > route, as per your recent patch. I always work at a distance in case thing blow... My patch isn't a perfect solution. While EPROTO is the most frequent error when resuming, I have also seen EINVAL and ESRCH. Then, if I pound real hard trying to make vla6.x3g fail: (gdb) r Starting program: /mnt/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libgomp/testsuite/vla6.x3g vfork: Resource temporarily unavailable. (gdb) r Starting program: /mnt/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libgomp/testsuite/vla6.x3g vfork: Resource temporarily unavailable. ... -bash-3.2$ ps -ef|grep vla|wc 73 585 8121 For some reason, the vla6.x3g processes aren't exiting when run under gdb in spite of the fact that gdb says they exited normally. I'll look at your patches. Dave -- J. David Anglin dave.anglin@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602)