2010-09-06 Yao Qi <yao@codesourcery.com>
authorYao Qi <yao@codesourcery.com>
Mon, 6 Sep 2010 15:10:15 +0000 (15:10 +0000)
committerYao Qi <yao@codesourcery.com>
Mon, 6 Sep 2010 15:10:15 +0000 (15:10 +0000)
* linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
on return.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c

index d0fbbb535b0d5f927c8d865b6224dbad95c835b4..4cdabefb69211940a027dfa5448a85e8c573bdba 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-06  Yao Qi  <yao@codesourcery.com>
+
+       * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
+       on return.
+
 2010-09-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
index f2177ff354d44ca68695566ba618c76255fb0614..76a4df17337c2c23c28c205be2d2ebbdf27b08fb 100644 (file)
@@ -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;
 }
 
This page took 0.032741 seconds and 4 git commands to generate.