From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22271 invoked by alias); 13 Jun 2005 03:29:23 -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 22251 invoked by uid 22791); 13 Jun 2005 03:29:20 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 13 Jun 2005 03:29:20 +0000 Received: from drow by nevyn.them.org with local (Exim 4.50) id 1DhfdV-0006ad-Dv; Sun, 12 Jun 2005 23:29:17 -0400 Date: Mon, 13 Jun 2005 03:29:00 -0000 From: Daniel Jacobowitz To: Manoj Iyer Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC] Print thread id in hex. Message-ID: <20050613032917.GK9288@nevyn.them.org> Mail-Followup-To: Manoj Iyer , gdb-patches@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-06/txt/msg00146.txt.bz2 On Tue, Jun 07, 2005 at 01:10:36PM -0500, Manoj Iyer wrote: > > From the earlier discussion sub: "debugging threaded apps. thread ID > missing in corefile." I wrote this patch to print the thread ids in HEX > (%#lx) instead of decimal (%ld). This is OK, with two trivial changes: please use 0x%lx instead of %#lx, and please cast to unsigned long instead of long. Neither of these makes a real difference, but they're both a little clearer. Thanks! > 2005-06-07 Manoj Iyer > > * linux-thread-db.c (thread_db_pid_to_str): Print thread id in hex. -- Daniel Jacobowitz CodeSourcery, LLC