From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21677 invoked by alias); 27 Jul 2002 01:58:34 -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 21668 invoked from network); 27 Jul 2002 01:58:31 -0000 Received: from unknown (HELO potter.sfbay.redhat.com) (205.180.83.107) by sources.redhat.com with SMTP; 27 Jul 2002 01:58:30 -0000 Received: from romulus.sfbay.redhat.com (IDENT:lr/Dx27clmcXptscE0JwhcJHRuRZO75d@romulus.sfbay.redhat.com [172.16.27.251]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id g6R1wgQ07444 for ; Fri, 26 Jul 2002 18:58:42 -0700 Received: (from kev@localhost) by romulus.sfbay.redhat.com (8.11.6/8.11.6) id g6R1wSg20927 for gdb-patches@sources.redhat.com; Fri, 26 Jul 2002 18:58:28 -0700 Date: Fri, 26 Jul 2002 19:08:00 -0000 From: Kevin Buettner Message-Id: <1020727015827.ZM20926@localhost.localdomain> To: gdb-patches@sources.redhat.com Subject: [PATCH] ui-out.c: Remove some unnecessary casts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-07/txt/msg00544.txt.bz2 I've just committed the patch below. The casts in question were causing the upper bits of addresses to be chopped off when displaying addresses for a 64-bit target on a 32-bit host. * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in calls to local_hex_string_custom(). Index: ui-out.c =================================================================== RCS file: /cvs/src/src/gdb/ui-out.c,v retrieving revision 1.22 diff -u -p -r1.22 ui-out.c --- ui-out.c 5 May 2002 03:17:21 -0000 1.22 +++ ui-out.c 27 Jul 2002 01:49:58 -0000 @@ -497,9 +497,9 @@ ui_out_field_core_addr (struct ui_out *u based on TARGET_ADDR_BIT. */ /* print_address_numeric (address, 1, local_stream); */ if (TARGET_ADDR_BIT <= 32) - strcpy (addstr, local_hex_string_custom ((unsigned long) address, "08l")); + strcpy (addstr, local_hex_string_custom (address, "08l")); else - strcpy (addstr, local_hex_string_custom ((unsigned long) address, "016l")); + strcpy (addstr, local_hex_string_custom (address, "016l")); ui_out_field_string (uiout, fldname, addstr); }