This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Print thread id in hex.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]