This is the mail archive of the gdb-cvs@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]

src/gdb ChangeLog linux-thread-db.c target.c t ...


CVSROOT:	/cvs/src
Module name:	src
Changes by:	tromey@sourceware.org	2013-07-25 14:28:15

Modified files:
	gdb            : ChangeLog linux-thread-db.c target.c target.h 

Log message:
	don't call add_target for thread_db_ops
	
	Right now, "help target" will include this line:
	
	target multi-thread -- Threads and pthreads support
	
	However, it doesn't make sense to invoke "target multi-thread".
	
	This patch fixes the problem by not registering the multi-thread
	target.  add_target does some needed initialization of the target_ops,
	so I broke this out into a new function.
	
	It isn't clear to me whether this patch requires a test case or not.
	I'm not sure whether there are other unregistered targets; but if
	there are, it seems unlikely that we test for their absence from the
	help.
	
	Built and regtested on x86-64 Fedora 18.
	
	* linux-thread-db.c (init_thread_db_ops): Call
	complete_target_initialization.
	(_initialize_thread_db): Don't call add_target.
	* target.c (complete_target_initialization): New function.
	(add_target_with_completer): Call it.
	* target.h (complete_target_initialization): Declare.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15828&r2=1.15829
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/linux-thread-db.c.diff?cvsroot=src&r1=1.112&r2=1.113
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/target.c.diff?cvsroot=src&r1=1.341&r2=1.342
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/target.h.diff?cvsroot=src&r1=1.268&r2=1.269


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