From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20034 invoked by alias); 5 Jan 2011 22:51:35 -0000 Received: (qmail 20026 invoked by uid 22791); 5 Jan 2011 22:51:35 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD 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; Wed, 05 Jan 2011 22:51:30 +0000 Received: (qmail 25261 invoked from network); 5 Jan 2011 22:51:29 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 5 Jan 2011 22:51:29 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [patch] Add "debug jit" for easier tracing of JIT support internals Date: Wed, 05 Jan 2011 22:51:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.33-29-realtime; KDE/4.4.5; x86_64; ; ) Cc: Paul Pluzhnikov , Eli Zaretskii References: <20110105193621.A8CBF190B3A@elbrus2.mtv.corp.google.com> <83mxnfm5ld.fsf@gnu.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201101052251.26251.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: 2011-01/txt/msg00095.txt.bz2 On Wednesday 05 January 2011 21:53:11, Paul Pluzhnikov wrote: > One question: is '%zu' appropriate format for printing size_t ? Nope, %z is C99. GDB is currently written in C90. AFAICS, the size_t you're talking about holds the size of an object on the target, while 'size_t' is about sizes of objects on the host. E.g., on a 32-bit GDB (cross) debugging a 64-bit inferior, size_t will usually be a 32-bit type. I think it'd be better to make that a ULONGEST throughout (and then use phex or pulongest) -- Pedro Alves