Patch to fix thread support for Solaris x86

Peter.Schauer Peter.Schauer@regent.e-technik.tu-muenchen.de
Sat Feb 26 04:28:00 GMT 2000


This patch fixes thread support for Solaris x86 platforms.

The patch gets rid of the following testsuite fail and causes no regressions:
FAIL: gdb.threads/pthreads.exp: continue to bkpt at common_routine in thread 2

2000-02-26  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>

	* config/i386/tm-i386sol2.h (MERGEPID):  Define.

*** ./config/i386/tm-i386sol2.h.orig	Tue Jan 11 04:07:28 2000
--- ./config/i386/tm-i386sol2.h	Sat Feb 26 11:32:13 2000
***************
*** 45,49 ****
--- 51,56 ----
  /* Macros to extract process id and thread id from a composite pid/tid */
  #define PIDGET(pid) ((pid) & 0xffff)
  #define TIDGET(pid) (((pid) >> 16) & 0xffff)
+ #define MERGEPID(pid, tid) (((tid) << 16) | (pid))
  
  #endif /* ifndef TM_I386SOL2_H */

-- 
Peter Schauer			pes@regent.e-technik.tu-muenchen.de


More information about the Gdb-patches mailing list