This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug gdb/9755] Thread id printed in negative


------- Additional Comments From drow at false dot org  2009-01-17 16:10 -------
Subject: Re:  New: Thread id printed in negative

On Sat, Jan 17, 2009 at 03:27:48PM -0000, naaaag at gmail dot com wrote:
> %ld is wrong. It should be %lu. 

No, %ld in what you posted is used for the LWP ID.  Those are
generally only 16-bit positive integers.

> It is kind of fixed in 6.8 with a %lx , rather can we print it in %lu format
> itself ? 

No, %lx is right.  Nowadays they are pointer values (in NPTL).  Why
should we change it?



-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9755

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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