From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 0) id 1970E394880F; Sat, 21 Mar 2020 05:27:15 +0000 (GMT) Resent-From: Christopher Faylor Resent-Date: Sat, 21 Mar 2020 05:27:15 +0000 Resent-Message-ID: <20200321052715.GA59879@server2.sourceware.org> Resent-To: gdb-patches@sourceware.org Received: from gateway30.websitewelcome.com (gateway30.websitewelcome.com [192.185.197.25]) by sourceware.org (Postfix) with ESMTPS id CFD62385F02A for ; Fri, 20 Mar 2020 21:52:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CFD62385F02A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=tom@tromey.com Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway30.websitewelcome.com (Postfix) with ESMTP id B3DA652DD for ; Fri, 20 Mar 2020 16:52:02 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id FPYgjlGxAXVkQFPYgj2CRC; Fri, 20 Mar 2020 16:52:02 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=fz6SSyI38XD9ztozQIlT2QKwruj7Z3O2PwDHu0NMY6g=; b=YNDOoBIzPun6HaE1XozXZ1RqBf poctU9IfSP7o4U1HJnyiNKfm/UfCxyHyxTBVm/mWA7yLO1cpCHRdlk+VVIsEmwpxsLnrP79tt3oOb 5rZ8TLuh34EvwIXa32xmhBuMD; Received: from 97-118-117-21.hlrn.qwest.net ([97.118.117.21]:56948 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1jFPYg-003bHS-6x; Fri, 20 Mar 2020 15:52:02 -0600 From: Tom Tromey To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 5/7] Allow printing of complex integers References: <20200307152246.32630-1-tom@tromey.com> <20200307152246.32630-6-tom@tromey.com> X-Attribution: Tom Date: Fri, 20 Mar 2020 15:52:01 -0600 In-Reply-To: <20200307152246.32630-6-tom@tromey.com> (Tom Tromey's message of "Sat, 7 Mar 2020 08:22:44 -0700") Message-ID: <8736a2u22m.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: Sat, 21 Mar 2020 05:27:16 -0000 >>>>> "Tom" == Tom Tromey writes: Tom> GCC allows complex integers, but gdb could not print them. The Tom> problem was that generic_val_print_complex assumed that complex Tom> numbers have floating point components. This patch corrects this Tom> error. Tom> gdb/ChangeLog Tom> 2020-03-07 Tom Tromey Tom> * valprint.c (generic_val_print_complex): Use Tom> val_print_scalar_formatted. It turns out I already fixed this in the val_print removal series, so this patch is no longer needed. Tom