From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4697 invoked by alias); 18 Mar 2010 17:47:39 -0000 Received: (qmail 4635 invoked by uid 22791); 18 Mar 2010 17:47:38 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Mar 2010 17:47:33 +0000 Received: (qmail 6176 invoked from network); 18 Mar 2010 17:47:31 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 18 Mar 2010 17:47:31 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [RFC] Why does ui_out_field_core_addr pad with leading zeroes? Date: Thu, 18 Mar 2010 17:47:00 -0000 User-Agent: KMail/1.12.2 (Linux/2.6.31-19-generic; KDE/4.3.2; x86_64; ; ) Cc: Doug Evans References: <20100318173015.6765784413@ruffy.mtv.corp.google.com> In-Reply-To: <20100318173015.6765784413@ruffy.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201003181747.29518.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00672.txt.bz2 On Thursday 18 March 2010 17:30:15, Doug Evans wrote: > I couldn't find an explanation of why ui_out_field_core_addr pads > the address with leading zeroes. > > Does anyone know? Personally, I find that zeros on the left serve as a hint at the largest possible address width in the architecture. That'd be my educated guess. It also aids visual alignment I suppose. Try also adding a breakpoint in a shared library in your example, and redoing `info break'. The column is presently aligned left. I suspect it won't look as neat after your patch. -- Pedro Alves