From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3366 invoked by alias); 21 May 2008 15:14:58 -0000 Received: (qmail 3358 invoked by uid 22791); 21 May 2008 15:14:57 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate1.de.ibm.com (HELO mtagate1.de.ibm.com) (195.212.29.150) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 21 May 2008 15:14:36 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate1.de.ibm.com (8.13.8/8.13.8) with ESMTP id m4LFEXFo205066 for ; Wed, 21 May 2008 15:14:33 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m4LFEWHM4321468 for ; Wed, 21 May 2008 17:14:32 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m4LFEWDs002126 for ; Wed, 21 May 2008 17:14:32 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id m4LFEW6N002120; Wed, 21 May 2008 17:14:32 +0200 Message-Id: <200805211514.m4LFEW6N002120@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Wed, 21 May 2008 17:14:32 +0200 Subject: Re: [patch]: Add endianess to valprint routines To: deuling@de.ibm.com (Markus Deuling) Date: Wed, 21 May 2008 18:35:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org (GDB Patches) In-Reply-To: <4833CD89.4070900@de.ibm.com> from "Markus Deuling" at May 21, 2008 09:21:45 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: 2008-05/txt/msg00635.txt.bz2 Markus Deuling wrote: > * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars, > print_binary_chars, print_char_chars): Add byte_order parameter and > replace gdbarch_byte_order. > (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their > expressions and remove them. Remove unused TWO_TO_FOURTH. > (val_print_type_code_int): Introduce gdbarch_byte_order to get at the > endianness. Update call to print_hex_chars. > * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars, > print_binary_chars, print_char_chars): Add byte_order parameter. > * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to > get at the endianness. Update print_*_char calls to use byte_order. Minor coding style issue in the ChangeLog: please always use two spaces after '.'. Otherwise, this is OK. Thanks, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com