* [gdbserver, patch] Restore current_inferior on return
@ 2010-09-06 14:58 Yao Qi
2010-09-06 15:20 ` Pedro Alves
0 siblings, 1 reply; 3+ messages in thread
From: Yao Qi @ 2010-09-06 14:58 UTC (permalink / raw)
To: gdb-patches; +Cc: Pedro Alves
[-- Attachment #1: Type: text/plain, Size: 218 bytes --]
Hi,
This patch is to fix a bug revealed when my patch "Remove unused
variables" is reviewed.
http://sourceware.org/ml/gdb-patches/2010-09/msg00081.html
--
Yao Qi
CodeSourcery
yao@codesourcery.com
(650) 331-3385 x739
[-- Attachment #2: restore_current_inferior.patch --]
[-- Type: text/x-patch, Size: 802 bytes --]
gdbserver/
* linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
on return.
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index f2177ff..76a4df1 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -1244,6 +1244,7 @@ Checking whether LWP %ld needs to move out of the jump pad.\n",
fprintf (stderr, "\
Checking whether LWP %ld needs to move out of the jump pad...it does\n",
lwpid_of (lwp));
+ current_inferior = saved_inferior;
return 1;
}
@@ -1314,6 +1315,8 @@ Checking whether LWP %ld needs to move out of the jump pad...it does\n",
fprintf (stderr, "\
Checking whether LWP %ld needs to move out of the jump pad...no\n",
lwpid_of (lwp));
+
+ current_inferior = saved_inferior;
return 0;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gdbserver, patch] Restore current_inferior on return
2010-09-06 14:58 [gdbserver, patch] Restore current_inferior on return Yao Qi
@ 2010-09-06 15:20 ` Pedro Alves
2010-09-06 16:12 ` Yao Qi
0 siblings, 1 reply; 3+ messages in thread
From: Pedro Alves @ 2010-09-06 15:20 UTC (permalink / raw)
To: Yao Qi; +Cc: gdb-patches
On Monday 06 September 2010 15:51:27, Yao Qi wrote:
> Hi,
> This patch is to fix a bug revealed when my patch "Remove unused
> variables" is reviewed.
> http://sourceware.org/ml/gdb-patches/2010-09/msg00081.html
>
>
Okay, thanks.
--
Pedro Alves
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gdbserver, patch] Restore current_inferior on return
2010-09-06 15:20 ` Pedro Alves
@ 2010-09-06 16:12 ` Yao Qi
0 siblings, 0 replies; 3+ messages in thread
From: Yao Qi @ 2010-09-06 16:12 UTC (permalink / raw)
To: gdb-patches
Pedro Alves wrote:
> On Monday 06 September 2010 15:51:27, Yao Qi wrote:
>> Hi,
>> This patch is to fix a bug revealed when my patch "Remove unused
>> variables" is reviewed.
>> http://sourceware.org/ml/gdb-patches/2010-09/msg00081.html
>>
>>
>
> Okay, thanks.
>
Thanks for your quick review. Committed to GDB mainline.
http://www.cygwin.com/ml/gdb-cvs/2010-09/msg00046.html
--
Yao Qi
CodeSourcery
yao@codesourcery.com
(650) 331-3385 x739
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-06 15:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-06 14:58 [gdbserver, patch] Restore current_inferior on return Yao Qi
2010-09-06 15:20 ` Pedro Alves
2010-09-06 16:12 ` Yao Qi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).