From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13161 invoked by alias); 9 Jan 2002 09:25:00 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 13113 invoked from network); 9 Jan 2002 09:24:59 -0000 Received: from unknown (HELO cerbere.u-strasbg.fr) (130.79.112.7) by sources.redhat.com with SMTP; 9 Jan 2002 09:24:59 -0000 Received: from laocoon (laocoon.u-strasbg.fr [130.79.112.72]) by cerbere.u-strasbg.fr (8.9.3/8.8.7) with ESMTP id KAA18553; Wed, 9 Jan 2002 10:24:48 +0100 Message-Id: <4.2.0.58.20020109102139.020a5d80@ics.u-strasbg.fr> X-Sender: muller@ics.u-strasbg.fr X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Wed, 09 Jan 2002 01:25:00 -0000 To: Eli Zaretskii , Pierre Muller From: Pierre Muller Subject: Re: [RFA/RFC] Add i386_cleanup_dregs at program exit. Cc: gdb-patches@sources.redhat.com In-Reply-To: References: <4.2.0.58.20020109091949.00a49380@ics.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-SW-Source: 2002-01/txt/msg00165.txt.bz2 At 10:20 09/01/2002 , Eli Zaretskii a écrit: >On Wed, 9 Jan 2002, Pierre Muller wrote: > > > The patch simply calls i386_cleanup_dregs > > in breakpoint_init_inferior if context is inf_exited. > >Is this really necessary? Why do we need to propagate processor-specific >issues into breakpoint.c? Because there is no i386 common code that is called at program exit, so otherwise this would need a much bigger change, with adding processor specific mourn_inferior functions for OS that have a generic one like linux. >I thought there was a simpler solution back when we discussed this. >Something that would leave this issue where it belongs: in the >x86-specific files. > > > I have no idea if other processor might need a similar > > cleanup of debug registers > >They probably don't, since we didn't hear anything from their users. But they might wake up later.... Pierre Muller Institut Charles Sadron 6,rue Boussingault F 67083 STRASBOURG CEDEX (France) mailto:muller@ics.u-strasbg.fr Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99