Bug 8868 - schedlock.c and thread-specific.c have signed/unsigned confusion
Summary: schedlock.c and thread-specific.c have signed/unsigned confusion
Status: ASSIGNED
Alias: None
Product: gdb
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 6.2
: P3 normal
Target Milestone: ---
Assignee: unasigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-27 11:28 UTC by Michael Elizabeth Chastain
Modified: 2014-09-16 20:37 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Elizabeth Chastain 2004-08-27 11:28:01 UTC
[Converted from Gnats 1763]

In gdb/testsuite/gdb.threads/schedlock.c and thread-specific.c, the "args" array is of type "unsigned int", but it's accessed with an "int" pointer.  The code then does arithmetic to the limits of the signed bit.

Just making "args" signed int won't do it, because that would confuse the test script, which is not expecting any minus signs in the output.

This is not very important until we get to some platform where it will be important.

Release:
gdb 6.2
Comment 1 Sergio Durigan Junior 2014-09-16 20:37:53 UTC
Still valid.