From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27730 invoked by alias); 20 Jan 2004 16:50:09 -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 27700 invoked from network); 20 Jan 2004 16:50:08 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 20 Jan 2004 16:50:08 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 365112B8F; Tue, 20 Jan 2004 11:50:06 -0500 (EST) Message-ID: <400D5C3E.9000100@gnu.org> Date: Tue, 20 Jan 2004 16:50:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 MIME-Version: 1.0 To: Eli Zaretskii Cc: Daniel Jacobowitz , gdb-patches@sources.redhat.com Subject: Re: [RFC]: remove inconsistency in printcmd.c: print_scalar_formatted References: <3FDA26B1.6010704@redhat.com> <1031212221704.ZM22539@localhost.localdomain> <3FDA636F.30204@redhat.com> <400C58E6.4070908@redhat.com> <400C60C0.9040702@gnu.org> <20040119231853.GA6132@nevyn.them.org> <400C7948.9060300@gnu.org> <20040120012252.GA4828@nevyn.them.org> <400C8CC0.3040706@gnu.org> <20040120054836.GA23548@nevyn.them.org> <2427-Tue20Jan2004085108+0200-eliz@elta.co.il> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-01/txt/msg00557.txt.bz2 > Daniel, do you object to having the feature you wanted in `x', rather > than in `print'? If you do, could you please explain why? > > If having this on `x' is not something we agree to, how about a > `maint' command, or a new format letter for `print' that would > specifically be designed to reveal the bit pattern of the value as it > would be stored in memory? Try: (gdb) x 1.0 0x000001: 0x12345678 (gdb) x/v 1.0 0x000000: 0xc0000000 or more notably: (gdb) print struct_val { i = 1, j = 2, k = 1.0 } (gdb) info location struct_val struct_val is a dwarf2 location expression, its value is scattered across memory and registers (gdb) x/v struct_val 0x00000000: 0x00010002 0xc0000000 Andrew