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/gdbserver ChangeLog lynx-low.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2013-10-01 10:56:51

Modified files:
	gdb/gdbserver  : ChangeLog lynx-low.c 

Log message:
	[gdbserver/LynxOS]: Incomplete thread list after --attach
	
	The current implementation is forgetting to populate the thread list
	when attaching to the process. This results in an incomplete list of
	threads when debugging a threaded program.
	
	Unfortunately, as the added comments hints, there appears to be
	no way of getting the list of threads via ptrace, other than by
	spawning the "ps" command, and parsing its output. Not great,
	but it appears to be the best we can do.
	
	gdb/gdbserver/ChangeLog:
	
	* lynx-low.c (lynx_add_threads_after_attach): New function.
	(lynx_attach): Remove call to add_thread.  Add call to
	lynx_add_threads_after_attach instead.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbserver/ChangeLog.diff?cvsroot=src&r1=1.774&r2=1.775
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbserver/lynx-low.c.diff?cvsroot=src&r1=1.22&r2=1.23


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