From: Corinna Vinschen <vinschen@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: [RFA] aix-thread.c: Allow retargeting of threaded targets
Date: Thu, 22 Aug 2002 07:49:00 -0000 [thread overview]
Message-ID: <20020822155402.I26346@cygbert.vinschen.de> (raw)
Hi,
the following problem occurs on AIX, when the user examines a core file
of a threaded target:
$ gdb -nw application core
[...]
(gdb) run
Starting program: application
You can't do that without a process to debug.
(gdb) quit
The program is running. Exit anyway? (y or n) y
You can't do that without a process to debug.
(gdb)
Even detaching from the core doesn't help since the current code
doesn't detach in a way so that the aix-thread code would be able
to reinitializes on "run".
The following fix corrects the detach command in that case, so that
the user can run and/or quit gdb by explicitely detaching.
This doesn't solve the still outstanding problem, that the "run"
command should implicitely detach from the previous target, if that
was a core file.
Corinna
ChangeLog:
2002-08-21 Corinna Vinschen <vinschen@redhat.com>
* aix-thread.c (aix_thread_detach): Disable thread debugging on
detach to allow reinitialization.
Index: aix-thread.c
===================================================================
RCS file: /cvs/src/src/gdb/aix-thread.c,v
retrieving revision 1.13
diff -u -p -r1.13 aix-thread.c
--- aix-thread.c 27 Jul 2002 00:06:19 -0000 1.13
+++ aix-thread.c 22 Aug 2002 13:41:35 -0000
@@ -926,7 +926,7 @@ aix_thread_attach (char *args, int from_
static void
aix_thread_detach (char *args, int from_tty)
{
- pd_deactivate ();
+ pd_disable ();
base_target.to_detach (args, from_tty);
}
--
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen@redhat.com
next reply other threads:[~2002-08-22 13:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-22 7:49 Corinna Vinschen [this message]
[not found] ` <vinschen@redhat.com>
2002-08-22 8:15 ` Kevin Buettner
2002-08-22 9:35 ` Corinna Vinschen
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=20020822155402.I26346@cygbert.vinschen.de \
--to=vinschen@redhat.com \
--cc=gdb-patches@sources.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