From: Daniel Jacobowitz <drow@mvista.com>
To: gdb-patches@sources.redhat.com, jimb@redhat.com
Subject: RFA: gdb/568, messy thread exits
Date: Wed, 31 Jul 2002 09:55:00 -0000 [thread overview]
Message-ID: <20020731163910.GA5622@nevyn.them.org> (raw)
Jim, what do you think about this change? This fixes a whole class of
problems for me, by not longjmp'ing out of attempts to kill/detach/quit/etc.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
2002-07-31 Daniel Jacobowitz <drow@mvista.com>
Fix PR gdb/568
* thread-db.c (lwp_from_thread): Only warn if unable to find
the thread.
Index: thread-db.c
===================================================================
RCS file: /cvs/src/src/gdb/thread-db.c,v
retrieving revision 1.22
diff -u -p -r1.22 thread-db.c
--- thread-db.c 23 Mar 2002 17:38:13 -0000 1.22
+++ thread-db.c 31 Jul 2002 16:29:52 -0000
@@ -260,6 +260,12 @@ lwp_from_thread (ptid_t ptid)
return ptid;
err = td_ta_map_id2thr_p (thread_agent, GET_THREAD (ptid), &th);
+ if (err == TD_ERR)
+ {
+ warning ("Cannot find thread %ld: %s",
+ (long) GET_THREAD (ptid), thread_db_err_str (err));
+ return ptid;
+ }
if (err != TD_OK)
error ("Cannot find thread %ld: %s",
(long) GET_THREAD (ptid), thread_db_err_str (err));
next reply other threads:[~2002-07-31 16:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-31 9:55 Daniel Jacobowitz [this message]
2002-07-31 13:28 ` Jim Blandy
2002-07-31 13:47 ` Daniel Jacobowitz
2002-07-31 14:01 ` Jim Blandy
2002-07-31 14:04 ` Daniel Jacobowitz
2002-08-12 9:14 ` Daniel Jacobowitz
2002-08-13 15:00 ` Mark Kettenis
2002-08-13 15:13 ` Daniel Jacobowitz
2002-08-26 18:33 ` Michael Snyder
2002-08-26 19:05 ` Daniel Jacobowitz
2002-08-29 15:50 ` Jim Blandy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020731163910.GA5622@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb-patches@sources.redhat.com \
--cc=jimb@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox