[RFC] Print thread id in hex.
Daniel Jacobowitz
drow@false.org
Mon Jun 13 03:29:00 GMT 2005
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
More information about the Gdb-patches
mailing list