* linux-thread-db.c (set_libthread_db_search_path): New function.

(_initialize_thread_db): Add setter for libthread-db-search-path.

	gdbserver/
	* thread-db.c (thread_db_handle_monitor_command): Handle elided path.

	doc/
	* gdb.texinfo (Threads): If an empty path is provided for
	libthread-db-search-path it is reset to its default value.
	(Server): Ditto.
This commit is contained in:
Doug Evans
2011-05-10 16:53:23 +00:00
parent 7e665af3af
commit 84e578fbe6
6 changed files with 41 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2011-05-10 Doug Evans <dje@google.com>
* gdb.texinfo (Threads): If an empty path is provided for
libthread-db-search-path it is reset to its default value.
(Server): Ditto.
2011-05-09 Doug Evans <dje@google.com>
* gdb.texinfo (Requirements): Fix typo. Mention --with-iconv-bin.

View File

@ -2855,7 +2855,7 @@ watchpoints in programs with multiple threads.
If this variable is set, @var{path} is a colon-separated list of
directories @value{GDBN} will use to search for @code{libthread_db}.
If you omit @var{path}, @samp{libthread-db-search-path} will be reset to
an empty list.
its default value.
On @sc{gnu}/Linux and Solaris systems, @value{GDBN} uses a ``helper''
@code{libthread_db} library to obtain information about threads in the
@ -16369,7 +16369,7 @@ protocol (@pxref{Remote Protocol}).
When this command is issued, @var{path} is a colon-separated list of
directories to search for @code{libthread_db} (@pxref{Threads,,set
libthread-db-search-path}). If you omit @var{path},
@samp{libthread-db-search-path} will be reset to an empty list.
@samp{libthread-db-search-path} will be reset to its default value.
@item monitor exit
Tell gdbserver to exit immediately. This command should be followed by