2002-11-22 Michael Snyder <msnyder@redhat.com>

* thread-db.c (thread_db_load): Tell the user what's going on
	if dlopen fails on libthread_db.
This commit is contained in:
Michael Snyder 2002-11-23 01:34:43 +00:00
parent b85e4829fa
commit f7c1e0f3da
2 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2002-11-22 Michael Snyder <msnyder@redhat.com>
* thread-db.c (thread_db_load): Tell the user what's going on
if dlopen fails on libthread_db.
2002-11-23 Andreas Schwab <schwab@suse.de>
* m68k-tdep.c (m68k_register_virtual_type): Use architecture

View file

@ -292,7 +292,13 @@ thread_db_load (void)
handle = dlopen (LIBTHREAD_DB_SO, RTLD_NOW);
if (handle == NULL)
return 0;
{
fprintf_filtered (gdb_stderr, "\n\ndlopen failed on '%s' - %s\n",
LIBTHREAD_DB_SO, dlerror ());
fprintf_filtered (gdb_stderr,
"GDB will not be able to debug pthreads.\n\n");
return 0;
}
/* Initialize pointers to the dynamic library functions we will use.
Essential functions first. */