diff options
author | Daniel Jacobowitz <dan@debian.org> | 2005-09-17 23:14:37 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2005-09-17 23:14:37 +0000 |
commit | ba4553fc6d54812635c778c3924977e4e7a42091 (patch) | |
tree | ec3d54f12fbd8bd6a6645c507cce50218751387c /gdb/gdbserver/thread-db.c | |
parent | 787a916fb805a7d8aac52ce10501acdd3b46a559 (diff) | |
download | gdb-ba4553fc6d54812635c778c3924977e4e7a42091.tar.gz |
* 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 c6e0c2de3a7..5a2194d1534 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; |