[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gdb-friendly tfork



patch this and gdb is no longer confused when you attach to tfork childs...

Index: thread.c
@@ -72,6 +72,15 @@
 #ifdef __MBASE__
 	fixmbasep((long) (b->p_bbase));
 #endif /* __MBASE__ */
+#if 1
+	/* copy from parents basepage for debuggers... */
+	b->p_tbase = _base->p_tbase;
+	b->p_tlen = _base->p_tlen;
+	b->p_dbase = _base->p_dbase;
+	b->p_dlen = _base->p_dlen;
+	b->p_bbase = _base->p_bbase;
+	b->p_blen = _base->p_blen;
+#endif
 	Pterm((*func)(arg));
 }
 
-- 
J"urgen Lock / nox@jelal.north.de / UUCP: ..!uunet!unido!uniol!jelal!nox
								...ohne Gewehr
PGP public key fingerprint =  8A 18 58 54 03 7B FC 12  1F 8B 63 C7 19 27 CF DA