This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

[RFA] Output a warning when inferior load in a stripped libpthread.so make multi-thread debug not ok


Hi,

I met a lot of people that have trouble with GDB multithread debug
just because their libpthread.so is stripped.
So I make a patch to output a warning when the libpthread.so is stripped.

2009-02-11  Hui Zhu  <teawater@gmail.com>

	* linux-thread-db.c (LIBPTHREAD_SO): New macro for
	the name of libpthread.
	(check_for_thread_db): Add a argument "objfile".
	If td_ta_new_p return TD_NOLIBTHREAD
	and "objfile->obfd->filename" include LIBPTHREAD_SO,
	output a warning.
	(thread_db_new_objfile): Add a argument "objfile" to
	"check_for_thread_db".
	* linux-nat.h (check_for_thread_db): Ditto.
	* linux-nat.c (linux_child_post_attach): Ditto.
	(linux_child_post_startup_inferior): Ditto.
	(linux_child_follow_fork): Ditto.


OK to in?


Thanks,
Hui

Attachment: linux-thread-db-warning.txt
Description: Text document


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