From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from resqmta-po-08v.sys.comcast.net (resqmta-po-08v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:167]) by sourceware.org (Postfix) with ESMTPS id C510D3858012 for ; Wed, 14 Apr 2021 00:09:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C510D3858012 Received: from resomta-po-11v.sys.comcast.net ([96.114.154.235]) by resqmta-po-08v.sys.comcast.net with ESMTP id WSy6lxvtwArcZWT5alOK9k; Wed, 14 Apr 2021 00:09:02 +0000 Received: from pkoning.akdesign.com ([73.60.223.101]) by resomta-po-11v.sys.comcast.net with ESMTPSA id WT5Xlau5MMmGaWT5YlTm7D; Wed, 14 Apr 2021 00:09:02 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgeduledrudeltddgvdekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuvehomhgtrghsthdqtfgvshhipdfqfgfvpdfpqffurfetoffkrfenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurheptggguffhjgffgffkfhfvofesthhqmhdthhdtvdenucfhrhhomheprfgruhhlucfmohhnihhnghcuoehprghulhhkohhnihhnghestghomhgtrghsthdrnhgvtheqnecuggftrfgrthhtvghrnhepvddtveejueehhfeivdetffejueffheekgfduuedtvefffeekieejleefveeuhfegnecukfhppeejfedriedtrddvvdefrddutddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghlohepphhkohhnihhnghdrrghkuggvshhighhnrdgtohhmpdhinhgvthepjeefrdeitddrvddvfedruddtuddpmhgrihhlfhhrohhmpehprghulhhkohhnihhnghestghomhgtrghsthdrnhgvthdprhgtphhtthhopehjhhgssehfrhgvvggsshgurdhorhhgpdhrtghpthhtoheplhhsihigsehlrghntggvlhhothhsihigrdgtohhmpdhrtghpthhtohepghgusgdqphgrthgthhgvshesshhouhhrtggvfigrrhgvrdhorhhg X-Xfinity-VMeta: sc=-100.00;st=legit Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: [PATCH 2/2] ptype: add option to use hexadecimal notation From: Paul Koning In-Reply-To: <8c431340-2115-c1f8-9568-620a175b35c9@FreeBSD.org> Date: Tue, 13 Apr 2021 20:08:58 -0400 Cc: Lancelot SIX , gdb-patches@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: <6B65B8A7-546B-4BA3-8810-3494A1AF4278@comcast.net> References: <20201231125324.14779-1-lsix@lancelotsix.com> <20201231125324.14779-3-lsix@lancelotsix.com> <8c431340-2115-c1f8-9568-620a175b35c9@FreeBSD.org> To: John Baldwin X-Mailer: Apple Mail (2.3445.104.17) X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Wed, 14 Apr 2021 00:09:05 -0000 > On Apr 13, 2021, at 7:18 PM, John Baldwin wrote: >=20 > On 12/31/20 4:53 AM, Lancelot SIX via Gdb-patches wrote: >> This commit adds a flag to the ptype command in order to print the >> offsets and sizes of struct members using the hexadecimal notation. = The >> 'x' flag ensures use of the hexadecimal notation while the 'X' flag >> ensures use of the decimal notation. The default is to use decimal >> notation. "X" for decimal is rather non-obvious. How about "d" instead? Usually = X means uppercase hexadecimal. paul