From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2204 invoked by alias); 7 May 2002 13:19:10 -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 2135 invoked from network); 7 May 2002 13:19:04 -0000 Received: from unknown (HELO maxipes.logix.cz) (217.11.251.37) by sources.redhat.com with SMTP; 7 May 2002 13:19:04 -0000 Received: (qmail 10025 invoked from network); 7 May 2002 13:19:02 -0000 Received: from styx.suse.cz (HELO suse.cz) (hajzl@213.210.157.162) by broucek.logix.cz with SMTP; 7 May 2002 13:19:02 -0000 Message-ID: <3CD7D446.5020800@suse.cz> Date: Tue, 07 May 2002 06:19:00 -0000 From: Michal Ludvig Organization: SuSE CR User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc1) Gecko/20020417 X-Accept-Language: cs, cz, en MIME-Version: 1.0 To: Brian Taylor CC: gdb-patches@sources.redhat.com, Andrew Cagney Subject: [RFC] Re: Proposed fix to gdb for printing 64-bit addresses References: <3CCD8E01.2020500@model.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00148.txt.bz2 Hi, unfortunately this produces quite ugly output on x86-64 where the debugged code usually lives on low addresses and thus the PC is prepended with a long string of zeros. Now: #0 0x00000000004000d3 in cpyptrs () at dwarf.c:11 #1 0x00000000004000f8 in func () at dwarf.c:19 I propose to change the format string from "016l" to just "l" so that only valid digits will be printed: #0 0x4000d3 in cpyptrs () at dwarf.c:11 #1 0x4000f8 in func () at dwarf.c:19 Than there is no need for different handling of 32/64b archs. Comments? Michal Ludvig -- * SuSE CR, s.r.o * mludvig@suse.cz * +420 2 9654 5373 * http://www.suse.cz Brian Taylor wrote: > Problem: > 64-bit addresses reported by 'info break' and 'backtrace' are truncated > when debugging a 64-bit executable on AIX 4.3. > > ChangeLog entry: > 2002-04-29 Brian Taylor > > * ui-out.c (ui_out_field_core_addr): Use the function > 'longest_local_hex_string_custom' to format addresses > 32 bits > wide. >