From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11289 invoked by alias); 17 Mar 2002 01:04:27 -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 11225 invoked from network); 17 Mar 2002 01:04:26 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.135.44) by sources.redhat.com with SMTP; 17 Mar 2002 01:04:26 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id DB0813EC1 for ; Sat, 16 Mar 2002 20:04:19 -0500 (EST) Message-ID: <3C93EB92.2030003@cygnus.com> Date: Sat, 16 Mar 2002 17:04:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.8) Gecko/20020210 X-Accept-Language: en-us MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [patch] ``struct value'' cleanups Content-Type: multipart/mixed; boundary="------------060106050803080702090601" X-SW-Source: 2002-03/txt/msg00264.txt.bz2 This is a multi-part message in MIME format. --------------060106050803080702090601 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 217 Hello, The attatched are some simple cleanups for ``struct value''. Committed. Andrew PS: As far as I can tell, the unused bit of code was added '94 and from day one it included the comment ``when is this used'. --------------060106050803080702090601 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 1201 2002-03-16 Andrew Cagney * value.h (struct value): Delete field ``substring_addr''. Change aligner fields to force_doublest_align, force_longest_align, force_core_addr_align and force_pointer_align. Index: value.h =================================================================== RCS file: /cvs/src/src/gdb/value.h,v retrieving revision 1.27 diff -u -r1.27 value.h --- value.h 2002/03/16 02:57:42 1.27 +++ value.h 2002/03/17 00:52:51 @@ -125,14 +125,6 @@ list. */ struct value *next; - /* ??? When is this used? */ - union - { - CORE_ADDR memaddr; - char *myaddr; - } - substring_addr; - /* Register number if the value is from a register. Is not kept if you take a field of a structure that is stored in a register. Shouldn't it be? */ @@ -166,9 +158,10 @@ union { long contents[1]; - double force_double_align; - LONGEST force_longlong_align; - char *literal_data; + DOUBLEST force_doublest_align; + LONGEST force_longest_align; + CORE_ADDR force_core_addr_align; + void *force_pointer_aligh; } aligner; /* Do not add any new members here -- contents above will trash them */ --------------060106050803080702090601--