From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [209.51.188.92]) by sourceware.org (Postfix) with ESMTPS id A18903858D39 for ; Thu, 10 Mar 2022 17:54:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A18903858D39 Received: from [2001:470:142:3::e] (port=60558 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSMzI-0000U0-6z; Thu, 10 Mar 2022 12:54:08 -0500 Received: from [87.69.77.57] (port=3239 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSMzG-0006A5-1m; Thu, 10 Mar 2022 12:54:07 -0500 Date: Thu, 10 Mar 2022 19:54:05 +0200 Message-Id: <831qz9els2.fsf@gnu.org> From: Eli Zaretskii To: Tom Tromey Cc: aburgess@redhat.com, gdb-patches@sourceware.org In-Reply-To: <87h785ogzq.fsf@tromey.com> (message from Tom Tromey on Thu, 10 Mar 2022 10:27:21 -0700) Subject: Re: [PATCH] Change how "print/x" displays floating-point value References: <20220217212957.1747537-1-tromey@adacore.com> <874k4xdqwl.fsf@redhat.com> <87k0dsqg47.fsf@tromey.com> <83v8xcyuob.fsf@gnu.org> <87h785ogzq.fsf@tromey.com> X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2022 17:54:09 -0000 > From: Tom Tromey > Cc: Tom Tromey , aburgess@redhat.com, > gdb-patches@sourceware.org > Date: Thu, 10 Mar 2022 10:27:21 -0700 > > The meaning of it is to take the bytes that constitute the > floating-point value, then print those as if they constituted an integer > value with the same number of bytes. That is, it shows the raw bytes of > the floating-point value. > > Would it be more clear to say > > Print the underlying bytes of the value as if they were an integer? Yes. I think I would even lose the "as if they were an integer" part. Or maybe something like this: Print the binary representation of the value in decimal.