aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-thread-db.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-12-31 20:20:13 +0000
committerDaniel Jacobowitz <drow@false.org>2006-12-31 20:20:13 +0000
commit59f80f10887fdfa0299b22f33b11efa4ec069fee (patch)
tree0a34fbd27be9ade6b1081bbab5c3ea4efce4d344 /gdb/linux-thread-db.c
parent2fa63963cdcc84d690264e4dcf8dd3d7fbacf7d6 (diff)
downloadgdb-59f80f10887fdfa0299b22f33b11efa4ec069fee.zip
gdb-59f80f10887fdfa0299b22f33b11efa4ec069fee.tar.gz
gdb-59f80f10887fdfa0299b22f33b11efa4ec069fee.tar.bz2
* configure.ac: Add tests for TD_VERSION and TD_NOTLS.
* linux-thread-db.c (thread_db_err_str): Recognize TD_NOTALLOC, TD_VERSION, and TD_NOTLS. * configure, config.in: Regenerated.
Diffstat (limited to 'gdb/linux-thread-db.c')
-rw-r--r--gdb/linux-thread-db.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
index fe75a83..4b0aef7 100644
--- a/gdb/linux-thread-db.c
+++ b/gdb/linux-thread-db.c
@@ -209,6 +209,18 @@ 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 THREAD_DB_HAS_TD_NOTALLOC
+ case TD_NOTALLOC:
+ return "thread has not yet allocated TLS for given module";
+#endif
+#ifdef THREAD_DB_HAS_TD_VERSION
+ case TD_VERSION:
+ return "versions of libpthread and libthread_db do not match";
+#endif
+#ifdef THREAD_DB_HAS_TD_NOTLS
+ case TD_NOTLS:
+ return "there is no TLS segment in the given module";
+#endif
default:
snprintf (buf, sizeof (buf), "unknown thread_db error '%d'", err);
return buf;