From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31665 invoked by alias); 1 Apr 2010 22:42:27 -0000 Received: (qmail 31629 invoked by uid 22791); 1 Apr 2010 22:42:19 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45,TW_XS X-Spam-Check-By: sourceware.org Received: from mail-vw0-f41.google.com (HELO mail-vw0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 01 Apr 2010 22:42:15 +0000 Received: by vws4 with SMTP id 4so958628vws.0 for ; Thu, 01 Apr 2010 15:42:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.90.201 with HTTP; Thu, 1 Apr 2010 15:42:13 -0700 (PDT) Date: Thu, 01 Apr 2010 22:42:00 -0000 Received: by 10.220.123.68 with SMTP id o4mr798763vcr.128.1270161733536; Thu, 01 Apr 2010 15:42:13 -0700 (PDT) Message-ID: Subject: Missing 0x in phex_nz output From: "H.J. Lu" To: GDB Content-Type: text/plain; charset=ISO-8859-1 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-04/txt/msg00030.txt.bz2 Hi, phex_nz returns a string of hex number. But 0x is missing in many outputs: m32r-rom.c: monitor_printf ("%s mw\r", phex_nz (section_base, addr_size)); monitor.c: monitor_printf ("%s\r", phex_nz (val, reg_size)); monitor.c: monitor_printf ("%s\r", phex_nz (val, reg_size)); remote.c: xsnprintf (buf, get_remote_packet_size (), "P%s=", phex_nz (reg->pnum, 0)); remote.c: sprintf (p, "pc:%s", phex_nz (addr1, 0)); remote.c: sprintf (p, "range:%s:%s", phex_nz (addr1, 0), phex_nz (addr2, 0)); remote.c: sprintf (p, "outside:%s:%s", phex_nz (addr1, 0), phex_nz (addr2, 0)); scm-valprint.c: fprintf_filtered (stream, " #X%s>", phex_nz (svalue, SCM_SIZE)); There may be more cases like the above. -- H.J.