This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] Print thread id in hex.
- From: Daniel Jacobowitz <drow at false dot org>
- To: Manoj Iyer <manjo at austin dot ibm dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sun, 12 Jun 2005 23:29:17 -0400
- Subject: Re: [RFC] Print thread id in hex.
- References: <Pine.LNX.4.58.0506071258360.13058@lazy>
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 <manjo@austin.ibm.com>
>
> * linux-thread-db.c (thread_db_pid_to_str): Print thread id in hex.
--
Daniel Jacobowitz
CodeSourcery, LLC