diff options
author | Daniel Jacobowitz <drow@false.org> | 2005-09-17 23:14:37 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2005-09-17 23:14:37 +0000 |
commit | 3db0444b44b5218917e326666590c22c03405916 (patch) | |
tree | 7282cd24bbb1e36a6c6963ade42e8e6681e118af /gdb/gdbserver/thread-db.c | |
parent | 4b9c52dc3f431aee1757785a92c6a4c26f7c1146 (diff) | |
download | fsf-binutils-gdb-3db0444b44b5218917e326666590c22c03405916.zip fsf-binutils-gdb-3db0444b44b5218917e326666590c22c03405916.tar.gz fsf-binutils-gdb-3db0444b44b5218917e326666590c22c03405916.tar.bz2 |
* acinclude.m4: Correct quoting.
* aclocal.m4: Regenerated.
Suggested by SZOKOVACS Robert <szo@ies.hu>:
* thread-db.c (thread_db_err_str): Handle TD_VERSION.
(thread_db_init): Call thread_db_err_str.
* configure.ac: Check for TD_VERSION.
* config.in, configure: Regenerated.
Diffstat (limited to 'gdb/gdbserver/thread-db.c')
-rw-r--r-- | gdb/gdbserver/thread-db.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/gdbserver/thread-db.c b/gdb/gdbserver/thread-db.c index c6e0c2d..5a2194d 100644 --- a/gdb/gdbserver/thread-db.c +++ b/gdb/gdbserver/thread-db.c @@ -1,5 +1,5 @@ /* Thread management interface, for the remote server for GDB. - Copyright 2002 + Copyright 2002, 2004, 2005 Free Software Foundation, Inc. Contributed by MontaVista Software. @@ -103,6 +103,10 @@ thread_db_err_str (td_err_e err) return "only part of register set was written/read"; case TD_NOXREGS: return "X register set not available for this thread"; +#ifdef HAVE_TD_VERSION + case TD_VERSION: + return "version mismatch between libthread_db and libpthread"; +#endif default: snprintf (buf, sizeof (buf), "unknown thread_db error '%d'", err); return buf; @@ -361,7 +365,8 @@ thread_db_init () return 1; default: - warning ("error initializing thread_db library."); + warning ("error initializing thread_db library: %s", + thread_db_err_str (err)); } return 0; |