aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2002-12-13 23:28:28 +0000
committerMichael Snyder <msnyder@vmware.com>2002-12-13 23:28:28 +0000
commit3197744f240d7eb8c29e338a2fdb60e5597cd02a (patch)
treeab1af6b6876a87cb6bbd82e6b6918155b1f72fa8
parent6baff1d2e51f12744175867f6355b17d0b61ab05 (diff)
downloadgdb-3197744f240d7eb8c29e338a2fdb60e5597cd02a.zip
gdb-3197744f240d7eb8c29e338a2fdb60e5597cd02a.tar.gz
gdb-3197744f240d7eb8c29e338a2fdb60e5597cd02a.tar.bz2
2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
* thread-db.c (thread_from_lwp): Uniquify error msg. (lwp_from_thread): Ditto. (check_event): Ditto. (find_new_threads_callback): Ditto. (thread_db_pid_to_str): Ditto.
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/thread-db.c14
2 files changed, 17 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index eef2d2e..ffcd7b0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
+
+ * thread-db.c (thread_from_lwp): Uniquify error msg.
+ (lwp_from_thread): Ditto.
+ (check_event): Ditto.
+ (find_new_threads_callback): Ditto.
+ (thread_db_pid_to_str): Ditto.
+
2002-12-13 Andrew Cagney <ac131313@redhat.com>
* frame.h (get_frame_saved_regs): Declare.
diff --git a/gdb/thread-db.c b/gdb/thread-db.c
index 8140437..9f4cde7 100644
--- a/gdb/thread-db.c
+++ b/gdb/thread-db.c
@@ -250,7 +250,8 @@ thread_from_lwp (ptid_t ptid)
err = td_thr_get_info_p (&th, &ti);
if (err != TD_OK)
- error ("Cannot get thread info: %s", thread_db_err_str (err));
+ error ("thread_from_lwp: cannot get thread info: %s",
+ thread_db_err_str (err));
return BUILD_THREAD (ti.ti_tid, GET_PID (ptid));
}
@@ -272,7 +273,8 @@ lwp_from_thread (ptid_t ptid)
err = td_thr_get_info_p (&th, &ti);
if (err != TD_OK)
- error ("Cannot get thread info: %s", thread_db_err_str (err));
+ error ("lwp_from_thread: cannot get thread info: %s",
+ thread_db_err_str (err));
return BUILD_LWP (ti.ti_lid, GET_PID (ptid));
}
@@ -685,7 +687,8 @@ check_event (ptid_t ptid)
err = td_thr_get_info_p (msg.th_p, &ti);
if (err != TD_OK)
- error ("Cannot get thread info: %s", thread_db_err_str (err));
+ error ("check_event: cannot get thread info: %s",
+ thread_db_err_str (err));
ptid = BUILD_THREAD (ti.ti_tid, GET_PID (ptid));
@@ -950,7 +953,8 @@ find_new_threads_callback (const td_thrhandle_t *th_p, void *data)
err = td_thr_get_info_p (th_p, &ti);
if (err != TD_OK)
- error ("Cannot get thread info: %s", thread_db_err_str (err));
+ error ("find_new_threads_callback: cannot get thread info: %s",
+ thread_db_err_str (err));
if (ti.ti_state == TD_THR_UNKNOWN || ti.ti_state == TD_THR_ZOMBIE)
return 0; /* A zombie -- ignore. */
@@ -993,7 +997,7 @@ thread_db_pid_to_str (ptid_t ptid)
err = td_thr_get_info_p (&th, &ti);
if (err != TD_OK)
- error ("Cannot get thread info for thread %ld: %s",
+ error ("thread_db_pid_to_str: cannot get thread info for %ld: %s",
(long) GET_THREAD (ptid), thread_db_err_str (err));
if (ti.ti_state == TD_THR_ACTIVE && ti.ti_lid != 0)