From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13893 invoked by alias); 18 Jul 2002 15:35:08 -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 13886 invoked from network); 18 Jul 2002 15:35:07 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 18 Jul 2002 15:35:07 -0000 Received: from dsl254-114-118.nyc1.dsl.speakeasy.net ([216.254.114.118] helo=nevyn.them.org ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17VDJ4-0000xj-00; Thu, 18 Jul 2002 10:35:06 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17VDJ7-0006cP-00; Thu, 18 Jul 2002 11:35:09 -0400 Date: Thu, 18 Jul 2002 09:24:00 -0000 From: Daniel Jacobowitz To: Michal Ludvig Cc: GDB Patches Subject: Re: [RFA] gdbserver bits Message-ID: <20020718153509.GA24669@nevyn.them.org> Mail-Followup-To: Michal Ludvig , GDB Patches References: <3D36D7E7.5080607@suse.cz> <20020718150834.GA29860@nevyn.them.org> <3D36DFC4.6060406@suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D36DFC4.6060406@suse.cz> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-07/txt/msg00390.txt.bz2 On Thu, Jul 18, 2002 at 05:33:24PM +0200, Michal Ludvig wrote: > Daniel Jacobowitz wrote: > >Go ahead. Doesn't GDB have the same problem with CS and SS? > > Well, yes actually. But in GDB it doesn't make problems, because there > the regbuf is zeroed after allocation so it cannot happen, that you'd > write something wrong to CS or SS (at least on x86-64 the kernel doesn't > permit setting CS since it uses it for it's own purposes). > Consider cleaning the newly allocated regbuf in gdbserver as well... I don't think I will; writing arbitrary zeros is just as damaging as writing a bad regset. The whole thing needs to be set. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer