Re: svn commit: r224683 - head/lib/libthread_db

2011-08-07 Thread Marius Strobl
On Sat, Aug 06, 2011 at 07:35:49PM -0700, Marcel Moolenaar wrote: On Aug 6, 2011, at 4:24 PM, Marius Strobl wrote: On Sun, Aug 07, 2011 at 01:06:48AM +0300, Andriy Gapon wrote: on 07/08/2011 00:41 Garrett Cooper said the following: It's not just i386. It's other architectures like arm,

Re: svn commit: r224683 - head/lib/libthread_db

2011-08-07 Thread Bjoern A. Zeeb
On Aug 7, 2011, at 11:52 AM, Marius Strobl wrote: On Sat, Aug 06, 2011 at 07:35:49PM -0700, Marcel Moolenaar wrote: On Aug 6, 2011, at 4:24 PM, Marius Strobl wrote: On Sun, Aug 07, 2011 at 01:06:48AM +0300, Andriy Gapon wrote: on 07/08/2011 00:41 Garrett Cooper said the following: It's

Re: svn commit: r224683 - head/lib/libthread_db

2011-08-07 Thread Marius Strobl
On Sun, Aug 07, 2011 at 12:22:02PM +, Bjoern A. Zeeb wrote: On Aug 7, 2011, at 11:52 AM, Marius Strobl wrote: On Sat, Aug 06, 2011 at 07:35:49PM -0700, Marcel Moolenaar wrote: On Aug 6, 2011, at 4:24 PM, Marius Strobl wrote: On Sun, Aug 07, 2011 at 01:06:48AM +0300, Andriy

Re: svn commit: r224683 - head/lib/libthread_db

2011-08-07 Thread Marcel Moolenaar
On Aug 7, 2011, at 4:52 AM, Marius Strobl wrote: Okay, but then I don't know how to properly fix this given that thr_p{read,write}_long() still seem to do the wrong thing as they supply sizeof(long) rather than the size of a long on the target to thr_p{read,write}() as the size of the value

svn commit: r224683 - head/lib/libthread_db

2011-08-06 Thread Marius Strobl
Author: marius Date: Sat Aug 6 17:48:30 2011 New Revision: 224683 URL: http://svn.freebsd.org/changeset/base/224683 Log: The tid member of struct pthread actually is long so read it as such. Accessing it as an int causes failure on big-endian LP64, i.e. mips64be, powerpc64 and sparc64.

Re: svn commit: r224683 - head/lib/libthread_db

2011-08-06 Thread Ruslan Mahmatkhanov
Marius Strobl wrote on 06.08.2011 21:48: Author: marius Date: Sat Aug 6 17:48:30 2011 New Revision: 224683 URL: http://svn.freebsd.org/changeset/base/224683 Log: The tid member of struct pthread actually is long so read it as such. Accessing it as an int causes failure on big-endian

Re: svn commit: r224683 - head/lib/libthread_db

2011-08-06 Thread Andriy Gapon
on 07/08/2011 00:41 Garrett Cooper said the following: It's not just i386. It's other architectures like arm, mips, and pc98 according to the tinderbox reports (this list is potentially incomplete). Yeah, confusingly enough thr_pread_long() is declared to take uint64_t* as its third argument,

Re: svn commit: r224683 - head/lib/libthread_db

2011-08-06 Thread Garrett Cooper
On Sat, Aug 6, 2011 at 1:34 PM, Ruslan Mahmatkhanov cvs-...@yandex.ru wrote: Marius Strobl wrote on 06.08.2011 21:48: Author: marius Date: Sat Aug  6 17:48:30 2011 New Revision: 224683 URL: http://svn.freebsd.org/changeset/base/224683 Log:   The tid member of struct pthread actually is

Re: svn commit: r224683 - head/lib/libthread_db

2011-08-06 Thread Marcel Moolenaar
On Aug 6, 2011, at 4:24 PM, Marius Strobl wrote: On Sun, Aug 07, 2011 at 01:06:48AM +0300, Andriy Gapon wrote: on 07/08/2011 00:41 Garrett Cooper said the following: It's not just i386. It's other architectures like arm, mips, and pc98 according to the tinderbox reports (this list is