From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3725 invoked by alias); 17 Mar 2008 18:28:48 -0000 Received: (qmail 3715 invoked by uid 22791); 17 Mar 2008 18:28:48 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 17 Mar 2008 18:28:30 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id E34523C991; Mon, 17 Mar 2008 11:28:28 -0700 (PDT) Subject: Re: [RFA] Remove ignoring leading exec events code. From: Michael Snyder To: Daniel Jacobowitz Cc: Vladimir Prus , gdb-patches@sources.redhat.com In-Reply-To: <20080314180611.GB31663@caradoc.them.org> References: <200803141212.31845.vladimir@codesourcery.com> <20080314180611.GB31663@caradoc.them.org> Content-Type: text/plain Date: Mon, 17 Mar 2008 18:28:00 -0000 Message-Id: <1205778508.19253.948.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-7.fc7) Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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-03/txt/msg00237.txt.bz2 On Fri, 2008-03-14 at 14:06 -0400, Daniel Jacobowitz wrote: > On Fri, Mar 14, 2008 at 12:12:31PM +0300, Vladimir Prus wrote: > > > > GDB has some code to handle a case where target reports more > > that one exec event when execing. However, it turns out that > > all target say that exactly one event is reported, and > > therefore that code is of no use. The comments for that code > > is dated 2002-12-05 and mentions HP-UX, which I presume had this > > bug fixed. Even if some new target appears with the same bug, > > as the comment say, it's better to handle this in target_wait, > > not in the generic infrun code. > > > > OK? > > OK. Hmm, just a cautionary note. The code / practice that you're talking about stretches WAAAAY back in history. I'm pretty sure it was not only for HP-UX. There may be other (possibly historical) targets that depend on this. I can remember that code being there (and being necessary) in the mid-1990's. I don't necessarily remember on what targets it came into play, but I might guess that SunOS (perhaps solaris or perhaps before) was one of them.