Tue 24 Jul 2001 02:28:00 PM Trevor Forbes <t4bs@hotmail.com>

* thread.cc (verifyable_object_isvalid): Don't validate
	PTHREAD_MUTEX_INITIALIZER pointer as it will cause an exception
	in IsBadWritePtr() when running GDB.
This commit is contained in:
Robert Collins 2001-07-25 23:46:25 +00:00
parent 09ff05f7f9
commit 811bf2902d
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Tue 24 Jul 2001 02:28:00 PM Trevor Forbes <t4bs@hotmail.com>
* thread.cc (verifyable_object_isvalid): Don't validate
PTHREAD_MUTEX_INITIALIZER pointer as it will cause an exception
in IsBadWritePtr() when running GDB.
Wed 25 Jul 2001 23:46:00 Corinna Vinschen <corinna@vinschen.de>
* localtime.c: Changed whole file to become C++ clean. Rename to

View File

@ -747,7 +747,7 @@ check_valid_pointer (void *pointer)
int
verifyable_object_isvalid (verifyable_object * object, long magic)
{
if (!object)
if (!object || object == PTHREAD_MUTEX_INITIALIZER)
return 0;
if (check_valid_pointer (object))
return 0;