From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5726 invoked by alias); 5 Nov 2002 00:00:24 -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 5719 invoked from network); 5 Nov 2002 00:00:23 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 5 Nov 2002 00:00:23 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id gA4Nbsw04655 for ; Mon, 4 Nov 2002 18:37:55 -0500 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id gA500Fl31689; Mon, 4 Nov 2002 19:00:15 -0500 Received: from redhat.com (reddwarf.sfbay.redhat.com [172.16.24.50]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id gA500FD12599; Mon, 4 Nov 2002 16:00:15 -0800 Message-ID: <3DC70A0F.CB818723@redhat.com> Date: Mon, 04 Nov 2002 16:00:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Accept-Language: en MIME-Version: 1.0 To: Andrew Cagney CC: gdb-patches@sources.redhat.com Subject: Re: [wanted] Test of GDB modifying a value in a register References: <3DC31374.5060902@redhat.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-11/txt/msg00034.txt.bz2 Andrew Cagney wrote: > > Hello, > > In doing a further cleanup of the frame code, I discovered that the > current testsuite isn't testing the codepaths that write a value in a > register. > > That is, things like: > > (gdb) set $pc = 10 > register int i; > (gdb) set i = 10; > > Anyone interested in comming up with, or have a test case? Well, $pc is the only one I can think of that we can count on being defined on all targets -- and based on some past conversations with you, I'm wondering if even that is a safe assumption? Basically, we have almost no tests of register functionality, and yes it would be good if we did.