* [RFA] aix-thread.c: Allow retargeting of threaded targets
@ 2002-08-22 7:49 Corinna Vinschen
[not found] ` <vinschen@redhat.com>
0 siblings, 1 reply; 3+ messages in thread
From: Corinna Vinschen @ 2002-08-22 7:49 UTC (permalink / raw)
To: gdb-patches
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-08-22 15:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-22 7:49 [RFA] aix-thread.c: Allow retargeting of threaded targets Corinna Vinschen
[not found] ` <vinschen@redhat.com>
2002-08-22 8:15 ` Kevin Buettner
2002-08-22 9:35 ` Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox