This is the mail archive of the gdb-cvs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

src/gdb ChangeLog thread-db.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	kettenis@sources.redhat.com	2000-12-27 13:37:57

Modified files:
	gdb            : ChangeLog thread-db.c 

Log message:
	Fix debugging programs statically linked against the thread library.
	* thread-db.c: Various comment fixes and additions.
	Include "bfd.h", "symfile.h" and "objfiles.h".
	(keep_thread_db): New variable.
	(find_new_threads_callback): Remove prototype.
	(thread_db_find_new_threads): New prototype.
	(thread_db_push_target, thread_db_unpush_target): Remove
	functions.
	(deactivate_target): New function.
	(thread_db_new_objfile): If OBJFILE == NULL, force deactivation of
	target vector.  Activate target vector directly instead of calling
	thread_db_push_target.  Set keep_thread_db if thread library is
	detected in the main symbol file.  Only enable thread event
	reporting if there actually is a child process.  Likewise for
	detecting new threads, done by calling thread_db_find_new_threads
	instead of iterating over the threads ourselves.
	(thread_db_detach): Call deactivate_target instead of
	thread_db_unpush_target.
	(thread_db_wait): Bail out early if we're not debugging the
	multi-threaded child process yet.
	(thread_db_post_startup_inferior): New function.
	(thread_db_mourn_inferior): Call deactivate_target instead of
	thread_db_unpush_target.
	(init_thread_db_ops): Add thread_db_post_startup_inferior to
	thread_db_ops.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.865&r2=1.866
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/thread-db.c.diff?cvsroot=src&r1=1.2&r2=1.3


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]